Skip to main content

Hello all !

 

I'm trying to build a pdf report.

In the end it should contain map content as well as a table out of the spatial data attribute table.

By now i'am failing at the simple point to write an attribute to pdf.

 

Create a Text Attribute --> fill this attribute with text --> Style it with pdf Styler --> route to PDF pageFormatter and place the Object on the pge --> route to pdf Writer

 

The pdf is always empty, no matter what i try.

Any idea, i guess the Adobe Geospatial pdf writer needs a kick in any way.

Version: 2020

 

Regards

Al

Do the objects you try to write actually have geometry?

To place texts out of attributes you could use a TableAdder custom transformer, or do it the hard way and fake coordinates to line everything up. That can be as simple as a VertexCreator / LabelPointReplacers / PDFStyler / PDFPageFormatter.

Screenshot 2020-10-21 at 10.56.04I've used both methods here to create a page with a table (filled from attributes) and a footer.


 

Hello and thx !

 

Actually I try both:

Writing Text without Geometry fails, no text appears in the pdf.

Text out of Geodata works, but

the TableAdder seems to be buggy. It ads the table and fills it with text, but the table itself is always shifted

like this:tableregards

 


 

Hello and thx !

 

Actually I try both:

Writing Text without Geometry fails, no text appears in the pdf.

Text out of Geodata works, but

the TableAdder seems to be buggy. It ads the table and fills it with text, but the table itself is always shifted

like this:tableregards

 

The TableAdder is a bit buggy indeed, I don't think I can help you much with that one I'm afraid.

 

In order to write text to a PDF you need to have it tied to geometry. The coordinate system doesn't matter at all, but keep in mind it will scale the geometry to fit within the area you specify in the PDFPageFormatter.


So far I've had only one project where I needed to create a PDF file.

 

As the PDF Writers did not give me the output I wanted, in the end I used a PowerPoint Writer, and I created the PDF file in PowerPoint.

For the PowerPoint Writer I used a template presentation with an A4 size portrait page (of cause a Letter size will work as well).

I was quite content with the results.

 

So you may want to look into the PowerPoint Writer, it may fulfill your PDF wishes as well.


I 'm not very familiar at creating reports, maybe its my fault.

But I'm surprised that there are no out of the box Transformers, getting a Report isn't such a strange thing....

 

Thanks4 that hint with the PowerPoint writer, i 'll give this a try.

 


Reply