tags:

views:

12

answers:

0

In Processing, I can use the PDF library to output graphics into a PDF file.

I have two questions about this:

  1. Is there a way to set the dots per inch (DPI) of the PDF file?
  2. The width and height are given in pixels. How do I compute a number of pixels that will correspond to various page sizes? For example, if I want to output an 8.5" x 11" PDF page, what does that translate into for pixels? (The answer would be dependent on the DPI)