Skip to main content
Solved

Remove Geospatial PDF White Collar

  • June 14, 2024
  • 2 replies
  • 52 views

rudystricklan1
Contributor
Forum|alt.badge.img+2

Is there a way to specify removal of “white collar” areas in Adobe Geospatial PDF outputs? I don’t see any options in the Page Size parameters to restrict the output to be just the extents of the Reader-specified image source.

Best answer by debbiatsafe

Hello @rudystricklan1 ,

If the pdf_frame_rectangle format attribute isn’t set on the features, the PDF writer will center incoming features and leave a buffer of white space around them.

You can use the PDFPageFormatter to create a frame that covers the entire PDF page. If the extents of the raster and the output PDF page size are different, there will be white spaces when the raster’s aspect ratio is maintained. You can choose to not maintain the aspect ratio for the frame and the raster will be stretched to eliminate the white spaces.

If you want to maintain aspect ratio and do not mind a custom PDF page size in the output, you can use the raster’s column and row property to set the PDF page size and frame. This ensures there is no white space in the output PDF while the raster’s aspect ratio is maintained.

Attached is an example workspace that demonstrates both these approaches, and I hope it helps.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • June 18, 2024

Hello @rudystricklan1 ,

If the pdf_frame_rectangle format attribute isn’t set on the features, the PDF writer will center incoming features and leave a buffer of white space around them.

You can use the PDFPageFormatter to create a frame that covers the entire PDF page. If the extents of the raster and the output PDF page size are different, there will be white spaces when the raster’s aspect ratio is maintained. You can choose to not maintain the aspect ratio for the frame and the raster will be stretched to eliminate the white spaces.

If you want to maintain aspect ratio and do not mind a custom PDF page size in the output, you can use the raster’s column and row property to set the PDF page size and frame. This ensures there is no white space in the output PDF while the raster’s aspect ratio is maintained.

Attached is an example workspace that demonstrates both these approaches, and I hope it helps.


rudystricklan1
Contributor
Forum|alt.badge.img+2

Debbie, thank you very much. Very detailed solution, and the fmwt file inclusion made it very clear.

BTW, if you run into Dale Lutz, please tell him that you are an FME technical support star! Say to Dale that this is a personal recommendation from a longtime acquaintance, Rudy Strlcklan in Arizona. 😀