Skip to main content
Question

write to PDF

  • June 14, 2018
  • 6 replies
  • 103 views

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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

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+62
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

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")