Scaling PDF output
in
Core Library Questions
•
2 years ago
I need to be able to output from a sketch to PDF. The output is a mixture of vector lines and text and raster images. This in itself is not a problem using the standard approach of creating a PGraphicsPDF object:
PGraphicsPDF pdf = (PGraphicsPDF)createGraphics(pWidth, Math.round(pWidth*1.41f), PDF, "report.pdf");
In order to maintain a decent resolution for my raster images (ie greater than 72 dpi), I have to set fairly large pWidth (e.g. 2000 pixels). This will produce the desired level of detail in the PDF, but the document itself is then way bigger than the A4 I need for output.
I realise I can scale down the PDF when printing so that it fits on an A4 page, but my question is, is there any way of creating a PDF with a resolution of greater than 72 dpi that is A4 size by default?
1