I need to be able to toggle on/off different layers on top of a floorplan drawing. Any info is appreciated!

Thanks,

Grant

If your image is 720*720 pixels and you want its size on the page to be 2*2 inches, then you create a PDF file that is 2*2 inches and draw the image in it. The resolution of the embedded image will be 720/2 = 360dpi. When you print the PDF file it will always be 2*2 inches, no matter the dpi of the printer. The higher the printer dpi, the more details you will have in the printout, but the printout size will always be 2*2 inches. ]]>

I thought this: PDF uses the reference of 72 points = 1 inch. If you will embed a 720 x 720 pixels in a 72 x 72 context, then, each inch will be 720 dpi when printed at 72 dpi. If I print it at 600 dpi the final printing will have 1.2 inches, right?

so, what context should I have to generate a PDF that will print at 100 % scale to be 2 x 2 inches?

]]>double pageWidth = image.size.width * image.scale * 72 / horzRes;

double pageHeight = image.size.height * image.scale * 72 / vertRes;

on this code horzRez and vertRez are divisors. That means that if you increase the resolution your final variables will have smaller values. As far as I know, higher resolutions will always give bigger contexts.

so, I suppose these lines have to be

double pageWidth = image.size.width * image.scale * horzRes / 72;

double pageHeight = image.size.height * image.scale * vertRes / 72;

isn’t it?

]]>The scripts can either be given arguments on the command line, or used to create Automator workflows.

https://github.com/benwiggy/PDFsuite ]]>