Skip to main content
Solved

Using output of PDFPageFormatter


Forum|alt.badge.img

I'm using a PDFPageFormatter. From the output, I'm using a writer to create my pdf file.

I want to use this pdf file to merge it with another, thanks to my python script. I know I can write my python script in WorkspaceParameters/Advanced/ShutdownPythonScript.

But I don't feel it's a clean method.

I'd like to directly connect the output of the PDFPageFormatter into a PythonCaller and use the pdf file as an attribute for the PythonCaller.

Does anybody have a knowing process to handle that?

 

Best answer by redgeographics

Assuming the PDF file you want to merge your PDFPageFormatter output with is an existing one (i.e. not being generated at the same time as your FME process) and you're using some external app to do the merging I think your current solution is the only way to do it.

The only exception would be if you would use a FeatureWriter to write your PDF to a temporary location and then a PythonCaller to merge that temporary PDF with the existing one and clean up the temporary files afterwards. But that'd essentially be the same process.

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

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Best Answer
  • June 29, 2016

Assuming the PDF file you want to merge your PDFPageFormatter output with is an existing one (i.e. not being generated at the same time as your FME process) and you're using some external app to do the merging I think your current solution is the only way to do it.

The only exception would be if you would use a FeatureWriter to write your PDF to a temporary location and then a PythonCaller to merge that temporary PDF with the existing one and clean up the temporary files afterwards. But that'd essentially be the same process.


Forum|alt.badge.img
  • Author
  • June 29, 2016
redgeographics wrote:

Assuming the PDF file you want to merge your PDFPageFormatter output with is an existing one (i.e. not being generated at the same time as your FME process) and you're using some external app to do the merging I think your current solution is the only way to do it.

The only exception would be if you would use a FeatureWriter to write your PDF to a temporary location and then a PythonCaller to merge that temporary PDF with the existing one and clean up the temporary files afterwards. But that'd essentially be the same process.

Ok, thanks for your answer


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