In Processing, I can use the PDF library to output graphics into a PDF file.
I have two questions about this:
- Is there a way to set the dots per inch (DPI) of the PDF file?
- 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)