Skip to main content
Solved

Orientation of PDF Output


Forum|alt.badge.img

Good day,

I create one map per ship showing its track of the last month. The map is output as pdf (Adobe Geospatial PDF Writer). By default the page orientation is portrait. I would like to dynamically change the orientation to landscape depending of the map's bounding box (width/length). How can I do it?

Best answer by debbiatsafe

Hi @kat

You can use a Tester or TestFilter to route features based on the bounding box ratio (eg. if width greater than length = portrait, etc.) to an appropriately configured PDFPageFormatter. You will be able to determine the page size and orientation using the PDFPageFormatter.

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

3 replies

debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • June 6, 2018

Hi @kat

You can use a Tester or TestFilter to route features based on the bounding box ratio (eg. if width greater than length = portrait, etc.) to an appropriately configured PDFPageFormatter. You will be able to determine the page size and orientation using the PDFPageFormatter.


Forum|alt.badge.img
  • Author
  • June 7, 2018
debbiatsafe wrote:

Hi @kat

You can use a Tester or TestFilter to route features based on the bounding box ratio (eg. if width greater than length = portrait, etc.) to an appropriately configured PDFPageFormatter. You will be able to determine the page size and orientation using the PDFPageFormatter.

Thanks. Working fine. I even don't need the PDFPageFormatter. I only create the pdf_page_size attribute.

 

 


deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • July 15, 2019
kat wrote:
Thanks. Working fine. I even don't need the PDFPageFormatter. I only create the pdf_page_size attribute.

 

 

Hello @kat, I am trying to do the same thing, so was wondering if you could do a screen shot of what you did to solve this issue please?


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