Skip to main content

Hello ,

Is it possible to control the position of Upper left x and Upper left  y in a PDF formatter by setting their values in an attribute beforehand, so that the PDF formatter reads and uses them directly?

I don’t want to keep adjusting the x and y positions directly inside the PDF page formatter every time I find that the output is not properly aligned.
 

Do you have any tricks or suggestions to help me arrange my PDF layout more quickly?
It takes a long time to design the PDF layout .

 

Thanks in advance .

Hello ​@gogopotter90 

It is possible to the location of a page object in the PDFPageFormatter directly in the Edit Page Object dialog using the Upper Left X and Upper Left Y fields. However, it is not possible to set these values from attributes.

The PDFPageFormatter does set the format attribute pdf_frame_rectangle, which is a result of the Page Object settings. You can try setting these directly using an AttributeCreator or AttributeManager--the value needs to be in the format  <lowerLeftX> <lowerLeftY> <upperRightX> <upperRightY> in page point units. However, you will also need to set the other format attribute like pdf_world_rectangle, pdf_page_number, etc. if you decide to set PDF2D format attributes directly and skip using a PDFPageFormatter.

It may also be helpful to use transformer parameter presets if you are working with a few predetermined layouts in the PDFPageFormatter.

I hope this information helps.