Skip to main content

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?

 

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.


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


Reply