Text Example for PDFDocument Class

Is there an example for creating a PDFDocument that has text, especially styled text?
The examples are for objects, and a partial example that uses JSON. I don’t know JSON but will learn,

MBS Xojo DynaPDF Plugin has WriteStyledText methods in DynaPDFMBS class to write styled text on a document, even with wrap for multiple pages:

  • method WriteStyledText(Align as Integer, StyledText as StyledText, LeadingFactor as double = -1) as Boolean
  • method WriteStyledText(Align as Integer, TextArea as TextArea, LeadingFactor as double = -1) as Boolean
  • method WriteStyledTextEx(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, StyledText as StyledText, LeadingFactor as double = -1) as Boolean
  • method WriteStyledTextEx(PosX as Double, PosY as Double, Width as Double, Height as Double, Align as Integer, TextArea as TextArea, LeadingFactor as double = -1) as Boolean

Hi @Arthur_Gabhart,

You can find some example projects inside the “Example Projects > PDF” folder. Probably you can inspect the one under the “PageLayout” folder.

Thanks Christian. I think I might consider using an MBS plugin.

Thanks. I missed that example. I also miss the catalog of examples. It wouldn’t be too hard to put something together I think.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.