Skip to main content
Question

Print Excel file to PDF (after FeatureWriter)


galigis
Enthusiast
Forum|alt.badge.img+20

Hi All,

I have successfully developed an automation process that customises and exports a table to Excel format. The final transformer in the workflow is a FeatureWriter, which generates the Excel file.

I am now looking to convert this Excel output into a PDF format. However, my attempts using the available FME PDF transformers have not been successful.

Could anyone advise on how to achieve this using FME? I have read that SystemCaller or a PythonCaller script might be viable options.

Thanks :)

2 replies

david_r
Celebrity
  • June 19, 2025

Have a look at the brand new Document PDF Writer package from Safe, it replaces the old PDF writer and is a big improvement: https://hub.safe.com/publishers/safe/packages/documentpdf


alexbiz
Enthusiast
Forum|alt.badge.img+13
  • Enthusiast
  • June 19, 2025

Else, you could use a PythonCaller after your FeatureWriter. I think the xlwings python module can print excel files :
 

import xlwings as xw

wb = xw.Book(r"C:\path\to\yourfile.xlsx")

wb.api.ExportAsFixedFormat(0, r"C:\path\to\yourfile.pdf")

wb.close()

 


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