facebooktwittermenuarrow-up

GemBox Support Forum

Generated PDF document size issue and format issue

Hi,

I generated a Word document using Gembox.Document containing HTML fragment and pictures. When I save the document using PDF export options, the document is 5 times bigger in size and some formatting is broken.
But when I used Word “save as PDF” option from the generated document, the produced PDF is similar to its word counterpart and also in size.

I am using the latest version of the DLL.

Anyone has experienced that?
Thanks.

Hi Omid,

Try using this save option:

DocumentModel document = ...
document.Save("output.pdf", new PdfSaveOptions() { ImageDpi = 220 });

Does this solve your issue?

Regards,
Mario

Hi Mario,

Thanks, it works like a charm!

Omid.