Image DPI
PDFsharp is a .NET library for creating and modifying PDF documents.
Brought to you by:
pdfsharp,
stefan_lange
I see that 72 is hard coded in many areas of the code.
I need to generate a PDF containing images displayed at 600 DPI.
Is there an option to do this that I am missing?
The PDFsharp FAQ tells you that
"PDFsharp comes with a preview control designed to visualize drawing operations of the XGraphics object, but it cannot render PDF files.
Further the DrawImage function can be used to draw so called form XObjects in PDF pages.
If you try to render such an object in the preview, only the bounding box is drawn to show that it cannot be rendered."
Preview means 72 dpi, so there you are...
For your purpose, take e.g. "pdftoppm.exe" from the xpdf toolkit and go from there. Seems to produce quite good quality.