Skip to main content

I have a workspace runner that runs a process to do a rough geo-referencing of multiple CAD drawings using a base polygon layer where each polygon matches each drawing.

At the end of each drawing, I want to create a simple report with a bunch of attributes and a map / image of the CAD drawing overlayed on my reference polygon to visually see how close it is.

I have hundreds of these drawings and don’t want hundreds of reports / images. Is it possible to append a page to a PDF or HTML report after each iteration of the process?

 

 

 

Hi Dean,
Appending content to an existing PDF or HTML report isn’t straightforward in FME.
A simpler approach might be to store your log or report data in a database (for example, SQLite), and then generate the full HTML report on demand whenever you need it.


Just a quick idea:

You could write HTML reports as you did to a certain location. After all WorkspaceRunner ran (put a Sampler or DuplicateFilter after it), you could then use a Text File Reader pointed to that certain location and read in all the reports. Group the text lines by input file, send them to an HTMLLyouter and write the output as an HTML file.

 


I’ve done something almost identical, also to verify georeferenced CAD drawings.

However, my process regenerates the entire multi-page PDF each time, rather than appending to an existing file. If that is an option to you, you simply need to set a value for the format attribute pdf_page_number for each single feature reaching the writer, so that FME knows on which page to render the feature.


Reply