Skip to main content

Hello,

I am using an Adobe Geospatial PDF writer (pdf2d) to create a PDF with a map where layers can be turned on and off from within the PDF. Alongside the map, I am also putting in borders, logos, and the map licence. I am using the PDFPageFormatter transformer to place all these as I wish.

My problem is that every feature type is appearing in the layer control within the PDF. That is to say, even features like logo images, page borders and map licence can be switched on and off by the user from within the PDF.

What is the best way to make some feature types not appear in the layer list in the PDF, while still being visible?

Hi @ironchariot I dont know if it is possible to exclude layers, you can control the layers order with the format parameter Layer Order and the visibility with Layer Visibility on Opening

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/pdf2d/format_parameters_w.htm

Hope this helps.


Hi @ironchariot I dont know if it is possible to exclude layers, you can control the layers order with the format parameter Layer Order and the visibility with Layer Visibility on Opening

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/pdf2d/format_parameters_w.htm

Hope this helps.

Hi @itay, thanks for the reply. The layer order and layer visibility functionality are useful and I currently make use of them in my work. I'm sorry to hear that it might not be possible to exclude layers - I can't have my user being able to hide the map licence or company logo from the map in the PDF...

 


It's possible to lock a layer in Acrobat (the full version, not the free reader) which makes it impossible for a user to change the visibility (unless they have Acrobat and reverse that trick...). It still appears in the layer list though.

(note the lock for the layer "logo", right-click on a layer in Acrobat leads to a layer properties window where this can be set)

It doesn't look like this is possible through FME, you can make an idea out of this so it can be taken on board as a feature request.

So a short term workaround would be to either use Acrobat to manually set that option (but that's not feasible in many workflows) or... include the logo etc on every layer...


Hi @itay, thanks for the reply. The layer order and layer visibility functionality are useful and I currently make use of them in my work. I'm sorry to hear that it might not be possible to exclude layers - I can't have my user being able to hide the map licence or company logo from the map in the PDF...

 

Hi, I would then try and rasterize the map licence and logo into the map itself, so that theyare always visible with the map.

 

You can use the MapnikRasterizer for that.

 

 


Hi, I would then try and rasterize the map licence and logo into the map itself, so that theyare always visible with the map.

 

You can use the MapnikRasterizer for that.

 

 

That's also true! Unfortunately for my use I cannot rasterize the map, so I cannot use this approach, but I'll keep it in mind if I ever need to do something similar where I can rasterize the map. Thanks!

 

 


Reply