Skip to main content
Question

Has anyone had problems trying to 'fit' a raster map image into Bounding Box with PDFpageformatter?


Forum|alt.badge.img

I have quite a complex workbench which works well apart from one thing. I need to pass a raster map and point to the same object in each page in PDFpageformatter. I created a Bounding Box to try to set the position and expected the raster and point to 'fit' into this. However the position seems to shift as the pages go on. See attachments. It seems to be basing the position on the overall combined raster footprint rather than the Bounding Box.

I hope that makes sense? I've attached a snippet of my workbench for info.

4 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • February 1, 2021

It seems to mess with the pdf_frame_rectangle attribute. Check if you edit that along the way.

Try clipping the raster with a buffer of the point and send that to the PDFPageFormatter.


Forum|alt.badge.img
  • Author
  • February 2, 2021
caracadrian wrote:

It seems to mess with the pdf_frame_rectangle attribute. Check if you edit that along the way.

Try clipping the raster with a buffer of the point and send that to the PDFPageFormatter.

Thanks I already buffer points and clip raster with it. See attached. Where do I find the pdf_frame_rectangle attribute?


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • February 2, 2021
cbrown wrote:

Thanks I already buffer points and clip raster with it. See attached. Where do I find the pdf_frame_rectangle attribute?

The PDFPageFormatter sets it.


Forum|alt.badge.img
  • Author
  • February 2, 2021
cbrown wrote:

Thanks I already buffer points and clip raster with it. See attached. Where do I find the pdf_frame_rectangle attribute?

You mean this?


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