Skip to main content
Solved

Join PNG images (North arrow, logo, etc.) to multiple PDF files?

  • May 9, 2017
  • 6 replies
  • 64 views

fme4ever
Forum|alt.badge.img

Hi everybody I desperately need some help!! Here is my problem... So far I've been able to generate a bunch of different networks from my water pipes. I've also been able to use a fanout to extract them all to multiple PDF files, based on their network ID. Now, I'm simply trying to add some PNG images (North arrow, logo, etc.) on each PDF files, without any success?! At this point I've tried many things, but I'm now running out of ideas...

As suggested on another thread (https://knowledge.safe.com/questions/2403/adding-a-logo-to-a-pdf-when-using-fanout.html) I was under the impression that by using a Cloner to get as many images as I had networks, then by using the PDFPageFormater to add the images to each PDF files or a RasterGeoreferencer to specify where I want the images to be located on the page, I would be able to achieve that but I couldn't figure out how... And speaking of the RasterGeoreferencer, I didn't find out how to use page units instead of real coordinates, is it even possible?!

Please, tell me that there is a nice and easy way to achieve that with FME! :) Thanks in advance for your time!!

Best answer by gio

transparency is not supported by writer, as it uses a jpeg2000 isfai understand .

Cloning objects to as many pages is correct.

But you need to use the counter as pagenumber. SO you must set pdf_page_number (for multipage pdf) on the obejcts that need to be on the same page.

else fan-out on layer name

For instance using a cloner and the a featuremerger.

Page units can be calculated. Extract bounding box (or rasterextent) and calculate (1inch/72points) to get worldframe size.

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.

6 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • May 9, 2017

Hi,

This old article might be helpful on how to place certain elements into a PDF .

Hope this helps.

https://knowledge.safe.com/articles/19757/creating-pdf-cartographic-output.html


geospatiallover
Participant
Forum|alt.badge.img+6
  • Participant
  • 70 replies
  • August 4, 2017

Have you resolved your issue yet? I have the same problem. I found a newer article and I'm going to try this newer one on my workspace: https://community.safe.com/s/article/creating-pdf-cartographic-output

 


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • August 4, 2017

I seem to recall there being an issue with using transparent png's in PDF. Can you try with jpg's instead, see if that makes a difference?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • Best Answer
  • August 7, 2017

transparency is not supported by writer, as it uses a jpeg2000 isfai understand .

Cloning objects to as many pages is correct.

But you need to use the counter as pagenumber. SO you must set pdf_page_number (for multipage pdf) on the obejcts that need to be on the same page.

else fan-out on layer name

For instance using a cloner and the a featuremerger.

Page units can be calculated. Extract bounding box (or rasterextent) and calculate (1inch/72points) to get worldframe size.


fme4ever
Forum|alt.badge.img
  • Author
  • 10 replies
  • October 26, 2017

Hi,

This old article might be helpful on how to place certain elements into a PDF .

Hope this helps.

https://knowledge.safe.com/articles/19757/creating-pdf-cartographic-output.html

Hi Itay, thanks for the info, I've initially created my workbench after reading this very useful article! But unfortunately it didn't help me resolving that problem...

 

 


fme4ever
Forum|alt.badge.img
  • Author
  • 10 replies
  • October 27, 2017

@geospatiallover after countless attempts, I finally managed to generate these PDF... As @gio suggested, I used a cloner to add a title and an image to all my PDF:

Give it a try, and let me know if you have questions/problems with this...

Cheers!