Skip to main content
Solved

Adding titles in PDFPageFormatter


ako_tde

Hello FME enthusiasts,

 

I am slowly getting better within FME – but now and then I simply get stuck.

 

In my example, I load a simple .xlsx File with a borehole identifier (BID) and a complementing link to its online available drilling profile (URL).

 

The goal is to extract the profile for each BID via ImageFetcher and to write it into a single .pdf File via the fanout option.

 

Works great so far, but I just cannot figure out how to provide the BID as additional information (here: headline directly in each .pdf) via the PDFPageFormatter. Whatever I do, only the fetched raster image is written as .pdf File.

 

This is more a general question, as more information could be added to the .pdf File (e. g. date and time of image extraction).

 

Please see my attached FME template file.

 

I am quite sure the solution is simple, but I need some help/hints.

 

Thank you in advance!

 

Kind Regards

Alexander

Best answer by redgeographics

You'll need to create a feature with geometry in order for the PDFPageFormatter to pick it up. So the features that go in to the Query port should first go through a VertexCreator (just have it create a point at 0,0) and then a TextAdder to add whatever you want to put in that label and then optionally a PDFStyler if you want to style it nicely.

 

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Best Answer
  • August 4, 2022

You'll need to create a feature with geometry in order for the PDFPageFormatter to pick it up. So the features that go in to the Query port should first go through a VertexCreator (just have it create a point at 0,0) and then a TextAdder to add whatever you want to put in that label and then optionally a PDFStyler if you want to style it nicely.

 


ako_tde
  • Author
  • August 5, 2022
redgeographics wrote:

You'll need to create a feature with geometry in order for the PDFPageFormatter to pick it up. So the features that go in to the Query port should first go through a VertexCreator (just have it create a point at 0,0) and then a TextAdder to add whatever you want to put in that label and then optionally a PDFStyler if you want to style it nicely.

 

@Hans van der Maarel​ :

Thanks for your support.

Your remarks & explanations helped me to accomplish my desired output – I understood the missing part and learned something new.

 

Thank you & much appreciation for your time :)

 

Kind Regards

Alexander


Reply


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