Skip to main content
Question

write to PDF


boubcher
Contributor
Forum|alt.badge.img+11

How can I write attribute MSG to a PDF as text

ID MSG1inside the polygon2outside the area3close to the event area4comment

6 replies

taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • June 14, 2018

You need to first add the output coordinates of the text, then apply PDFStyler to determine the color of the text (if you need), and finally PDF output to PDF Writer.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • June 14, 2018

how the position of th text is defined on the pdf


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • June 14, 2018
taojunabc wrote:

You need to first add the output coordinates of the text, then apply PDFStyler to determine the color of the text (if you need), and finally PDF output to PDF Writer.

how the position of th text is defined on the pdf

 

 


redgeographics
Celebrity
Forum|alt.badge.img+49
boubcher wrote:
how the position of th text is defined on the pdf

 

 

The VertexCreator makes fake geometry to attach the text to. You could add a PDFPageFormatter right before the writer to determine where the text ends up on the page.

 

 


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • June 14, 2018
taojunabc wrote:

You need to first add the output coordinates of the text, then apply PDFStyler to determine the color of the text (if you need), and finally PDF output to PDF Writer.

I get an error message ( invalid geometry ) just after the vertex transformer, is there any reason?

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 14, 2018

use "replace" as parameter on the vertexcreator (not "add")


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