Skip to main content
Solved

Using output of PDFPageFormatter

  • June 29, 2016
  • 2 replies
  • 82 views

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.

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

redgeographics
Celebrity
Forum|alt.badge.img+62
  • 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

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