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.
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.
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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.