Menu

Image DPI

2006-08-16
2013-04-23
  • Robin Bonin

    Robin Bonin - 2006-08-16

    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?

     
    • peterBERNDTS

      peterBERNDTS - 2006-08-23

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.