Resolution
#684
Replies: 1 comment
-
Offhand there doesn't seem to be a way of getting the DPI from the document itself - but the assumption is that it is 72dpi. If you use the UglyToad.PdfPig.Rendering.Skia extension, using document.GetPageAsPng (index, scale, color), you can set the scale to multiply the DPI, so setting the scale option to 2 will cause the rendered PNG to be at 144dpi. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ,
any methode to get the dpi of the pdf file ( the idea is to save an image with this resolution using GhostscriptRasterizer )
Thanks
Beta Was this translation helpful? Give feedback.
All reactions