Skip to main content

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?

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.


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.

 

 


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?


Reply