Processing Forum
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?