Skip to main content
Solved

How to avoid Manual X/Y Adjustments in PDF page formatter

  • April 17, 2025
  • 1 reply
  • 50 views

gogopotter90
Contributor
Forum|alt.badge.img+13

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 .

Best answer by debbiatsafe

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.

View original
Did this help you find an answer to your question?

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • April 23, 2025

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings