unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.46k stars 250 forks source link

[BUG] incorrect object position when draw svg graphics #540

Closed dhalkin closed 4 months ago

dhalkin commented 7 months ago

Description

Svg graphics object has incorrect position on result pdf file. Problem reproduced after v3.51.0 versions

Expected Behavior

Drawing svg object in properly coordinates

Actual Behavior

The SVG object is drawn with an offset

Attachments

Image and svg graphics has the same coordinates but drawn in different position.

Screenshot 2023-12-05 at 18 53 36

hello_world.pdf

github-actions[bot] commented 7 months ago

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/

sampila commented 6 months ago

Hi @dhalkin, could you share the SVG file also?

dhalkin commented 6 months ago

Hello @sampila, here is it.

stamp

sampila commented 6 months ago

Hello @sampila, here is it.

stamp

Thanks for sharing the SVG file, currently we are investigating this issue.

sampila commented 6 months ago

Hi @dhalkin,

We released new UniPDF version v3.53.0 https://github.com/unidoc/unipdf/releases/tag/v3.53.0 to solve this issue.

We closing this issue for now and you re-open the issue if this issue still not resolved after updating UniPDF to the latest version.

Best regards, UniDoc team.

sampila commented 6 months ago

Hi @dhalkin,

We apologize, the fix for this issue will be released on the next release, not included in v3.53.0.

We re-open the issue for now.

sampila commented 4 months ago

Hi @dhalkin,

we released new UniPDF version to solve this issue, release detail can be seen at https://github.com/unidoc/unipdf/releases/tag/v3.54.0