Bug 165553 - Incorrect import pdf with nonzero fill rule path
Summary: Incorrect import pdf with nonzero fill rule path
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: zllangty
URL:
Whiteboard: target:25.8.0
Keywords: filter:pdf
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2025-03-03 16:51 UTC by zllangty
Modified: 2025-03-23 10:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
source svg (486 bytes, image/svg+xml)
2025-03-03 16:52 UTC, zllangty
Details
test pdf (1.16 KB, application/pdf)
2025-03-03 16:52 UTC, zllangty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zllangty 2025-03-03 16:51:30 UTC
Description:
Import pdf with nonzero fill rule path, the path always use evenodd fill rule.
that's cause the visual is incorrect

Steps to Reproduce:
1.Create new svg file with nonzero fill rull path. eg:(https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule)
2.Use Firefox/Edge open the svg file. 
3.Ctrl + P and select "print to pdf" to convert it to pdf
4.Open the pdf and observe 

Actual Results:
All path display with evenodd fill rull

Expected Results:
Should display according the path's fill rule


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.5.2 (X86_64) / LibreOffice Community
Build ID: fddf2685c70b461e7832239a0162a77216259f22
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: en-US
Calc: threaded
Comment 1 zllangty 2025-03-03 16:52:18 UTC
Created attachment 199587 [details]
source svg
Comment 2 zllangty 2025-03-03 16:52:56 UTC
Created attachment 199588 [details]
test pdf
Comment 3 m_a_riosv 2025-03-04 01:09:10 UTC
Reproducible
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a91494780bb59afe8c971003e6b809f1e66df050
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-GB
Calc: CL threaded
Comment 4 Xisco Faulí 2025-03-04 09:21:17 UTC
Also reproduced in

Version: 6.4.0.0.alpha1+
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3; 
Locale: en-US (es_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 5 Commit Notification 2025-03-11 00:32:40 UTC
langty committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/19ac1ce1531e4ff6977cca1321c73494c0ffaef1

tdf#165553 Fix Draw import of nonzero paths from pdf

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.