Skip to content

Tag: PDF

PDFDocument: Margins, Merging in a Table and the new Completed method

Xojo 2022r3 included the ability to easily add tables to PDF documents created with Xojo. Now, starting with Xojo 2022r4, this feature has been improved so you can to merge the cells in table’s row! Additionally, you can now set a page’s upper and lower margins and get informed when the table has finished drawing itself. Continue reading to learn how to do all these things!

Comments closed

PDFDocument Improvements

While PDFTable and PDFDataTableSource ease the way to render tables in your PDF documents on Desktop, Web, Raspberry Pi and Console projects (iOS to come!) and are the big new features for PDFDocument in Xojo 2022r3, that’s not all that improved. There are additional features added to PDFDocument you might find helpful such as more control while using PDFForm and improvements to dealing with TOC indexes. Learn more about how to get advantage of these additions!

Comments closed

PDFDocument: How to Add New Content to a Given Page

When we create a PDF document is impossible (in most of the cases) to anticipate how many pages it will have. And yet, that is something that we are going to need if, for example, we want to add a footer reflecting the current page number over the total of pages in the document. The solution is using the PageCount and CurrentPage properties in the PDFDocument class.

Comments closed

Graphics: Right and Center Aligned Text

The DrawText method from the Graphics class offers a simple way to left-align text at the given X and Y coordinates, even applying a wrap value to wrap every line of the text block at the provided width value. Wouldn’t it be great to be able to do the same thing while aligning blocks of text to the right and center? Continue reading and I will show you a technique you can use as the starting point which you can fine-tune to your specific needs.

Comments closed