Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PDF Creation not working as expected #536

Open
hjo33 opened this issue Nov 8, 2023 · 3 comments
Open

[BUG] PDF Creation not working as expected #536

hjo33 opened this issue Nov 8, 2023 · 3 comments

Comments

@hjo33
Copy link

hjo33 commented Nov 8, 2023

Description

My team and I use a commercial unidoc/unipdf license. We use it to replace certain merge fields in a word document from a json body. Additionally we add a barcode or qrcode to the document. This works as expected and the data is added to the word document.

However if we want to generate a pdf from the given word document the rendering is completly thrown off. Converting the word document to pdf with libreoffice --headless gives the expected outcome.
Pictures and tables are also not rendered correctly and the barcode/qrcode is missing.

Expected Behavior

Expected the created pdf look similar to the one created by libreoffice

Actual Behavior

Steps to reproduce the behavior:

  1. Create a word template or use the attached
  2. Use mailMerge to replace template fields with (_egac *Document )MailMerge
  3. Save doc with (_bddd *Document )SaveToFile
  4. Convert the doc to pdf with ConvertToPdf (d *_g .Document )

Attachments

Word template:
example_template.docx
Generated Unipdf:
PDF_unidpdf.pdf
Generated PDF with libreoffice
PDF_libreoffice.pdf

Copy link

github-actions bot commented Nov 8, 2023

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
Copy link
Collaborator

sampila commented Dec 19, 2023

Hi @hjo33,

Currently we are working to improve the DOCX to PDF conversion, however we still need to works on the .emf media image processing.

Here's the current results we got so far when convert example_template.docx to PDF
example_template.pdf

@TheGoderGuy
Copy link

Heyho @sampila,

we became aware of unioffice release 1.29.1 with the "DOCX to PDF image position overlapped with text" fix.
We upgraded our service with the new version, but the PDF export looks the same as before.
Could you give us an Update for this Bug ?

Thanks and have a good Day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants