Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 19.6 ('Memorable Passwords')
Instant purchase and download via GumRoad!


Things you can do with DynaPDF

The MBS DynaPDF Plugin is more powerful than you think

Issue: 19.6 (November/December 2021)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 18,559
Starting Page Number: 12
Article Number: 19602
Resource File(s):

Download Icon project19602.zip Updated: 2021-10-31 22:33:43

Related Link(s): None

Excerpt of article text...

Are you curious about what's possible with the MBS DynaPDF plugin for Xojo? Here's a selection of just some of the possibilities. If you don't wish to read the entire article, just look through the following topics to find the features that interest you.

Create a New PDF

If we want to work with DynaPDF we first need to decide how to handle errors. We can make a class that has the class DynaPDFMBS as superclass. Here we can, for example, define different outputs for the error event. To make it easier you can copy the MyDynaPDFMBS class from an example project and adjust it to your needs.

Alternatively, you can just use DynaPDF and the plugin raises an exception of class DynaPDFErrorExceptionMBS, so you don't miss an exception.

In the methods or events in which you want to work with DynaPDF, you have to create an instance of this class for a new PDF environment. With the method CreateNewPDF we create a new PDF document. We add a new empty page with the method Append. While this page is open, we can draw some content on it. This may involve setting color with the SetFillColor or SetStrokeColor methods and calling drawing methods like MoveTo and LineTo to draw a line. With Rectangle, DrawArc, Bezier_1_2_3, and our other drawing methods, you may build complex vector graphics.

To write text you can use WriteText for simple text. Or you use a method like WriteStyledTextEx to fill in some styled text from Xojo directly into a rectangle on the page.

...End of Excerpt. Please purchase the magazine to read the full article.