Skip to main content

Good day Safers,

I’m cutting my teeth on the new DocumentPDF Writer in FME 2025.1 

 

Trying to set up a “Ledger” (17x11  inches) page in the styler

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/Transformers/documentpdfstyler-pkg.htm

Not really clear how to do this with the Page Properties.

I know this is a work in progress so hopefully this can be worked out.  

Please advise.

Best, Reed

@reedwhit 

Since you have not provided details about your entire FME workflow, I am assuming that you are writing to Adobe PDF using the Adobe Geospatial PDF

If you look at the Write Parameters, there is an option to set the Page Size.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/pdf2d/pdf2d_writer.htm

For Ledger it will be 1224x792 (paper size is in points)

This parameter is ignored if the pdf_page_size is set in the workspace. For example, the Page Size parameter in the PDFPageFormatter transformer takes precedence over this parameter.

PDFPageFormatter prepares features for output to PDF by providing a convenient interface to set the scale and location of features on a page.

A single PDFPageFormatter transformer is intended to format one page of a PDF document. Using multiple PDFPageFormatter transformers will allow writing to the same PDF document.

If you are using the DocumentPDFStyler, I think you will need to use the Custom Page Size and set the values for the Ledger paper size.

Happy FME:-) ing

Cheers

SRG


Thx for the reply SRG,

Actually this is the new DocumentPDF Writer and using the new DocumentPDFStyler from the hub.

https://hub.safe.com/publishers/safe/packages/documentpdf

 

According to the docs

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/pkg-documentpdf/Feature_Representation.htm

The DocumentPDF Format Attributes to set are:

 

The pages still come out 8.5 x 11.  I can send a test workspace if needed.

 


Hi ​@reedwhit , seeing the same behavior here. Did you add those two attributes? I was expecting them to be built-in since they are Format attributes but I wasn’t seeing them and so I added to test but am not seeing any change to page size either. Even tried using the predefined A3 size...still comes out Letter sized.


@reedwhit 

I checked the DocumentPDFWriter with PDFStyler and PDFPageFormatter in FME 2025.0.2 and I am also getting the letter size pages in the output pdf.

I am not sure if this is only with me, I did not see the documentpdf_page_size and the documentpdf_page_size_unit format attributes in the DocumentPDF Writer featuretype “format attributes tab”

SRG


Yeah I noticed the documentpdf_page_size and documentpdf_page_unit missing from the Format attributes list, but thought you could just add them as user attributes anyway. But it’s not working regardless.


thx ​@dbaldacchino1  ​@raghavendrans  for confirming my suspicion, I think the documentation might be ahead of the release.  notice most of the format attributes are hidden.  and some of the writer parameters from the docs are not in the writer.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/pkg-documentpdf/documentpdf_writer.htm

 

for example Page Size is not shown in the Writer Parameters.

 


Documentation is ahead, eh?! That’s very unusual in the software business 🤣


Update on this.  There is an update on the hub.  I can confirm that you can set the page size in the writer parameters.  

https://hub.safe.com/publishers/safe/packages/documentpdf