Skip to main content
Question

Error when writing a selected polygon (via TestFilter) to PDF

  • April 29, 2025
  • 1 reply
  • 35 views

scarter
Contributor
Forum|alt.badge.img+9

Hello Forum,

 

I’m experimenting with using FME Form to create a PDF showing the result of a TestFilter query on a read-in feature (polygon dataset). I have this…

 

  • Creator
  • FeatureReader
    • Reads in the polygon dataset
  • TestFilter
    • Finds a specified record in the source dataset by specifying an attribute and a value. This produces the required selection.
  • PDF Styler
  • PDF Page Formatter
  • FeatureWriter
    • Writes to type=Adobe Geospatial PDF
  • NOT YET ADDED: I will eventually bring in base mapping and add titles etc. But I don’t need to get to that stage yet

 

However, when I run the workspace this error is generated…

 

‘PDFPageFormatter_2 (PDFLayoutFactory): Invalid page object 'PDFStyled' parameters 'MINX;-117;MINY;803;WIDTH;112;HEIGHT;39;FIXED_ASPECT;Yes;CLIPPING_ENABLED;No'.  All point positions must be a positive number’

 

I’ve looked in the settings of the PDFPageFormatter_2 transformer but I cannot see values such as MINX, MINY, WIDTH, HEIGHT, FIXED_ASPECT or CLIPPING_ENABLED. But the error is saying that these need to be positive numbers. I’ve looked in the other PDF related transformers too.

 

Can you advise, please.

 

Thanks,

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20

Hello ​@scarter

I suspect the PDFPageFormatter error you are seeing is related to an incorrectly configured page object in the PDFPageFormatter_2 transformer. The page object should look like the circled object in the screenshot below. 

I tested entering a negative value for MINX (representing distance from left edge of page) but was unable to as the Workbench correctly flagged any negative values as invalid. Are you able to test deleting the PDFPageFormatter transformer and then adding another to the workspace again?

 


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