Xojo verison full#
Type the following code in the associated Code Editor for the method: Static backgroundfilling As LinearGradientBrushīackgroundfilling = New LinearGradientBrushīackgroundfilling.StartPoint = New Point(g.Width / 2, 0)īackgroundfilling.EndPoint = New Point(g.Width / 2, g.Height)ī(New Pair(0.0, &c000000))ī(New Pair(0.7, &c000000))ī(New Pair(1.0, &ccccccc))Īll this code does is create a LinearGradientBrush instance ranging from full black to some degree of gray at the bottom of the page. For convenience, create a new method for it using the following values in the Inspector Panel: Use a linear gradient brush to fill in the background of all the slides. ViewerOptions.FullScreen = True Drawing the Background of the Page so the document will set that view size And set the FullScreen property to True Var ViewerOptions As New PDFViewerOptions Since it’s a presentation, you’ll likely want the document to be opened in Full Screen mode by default, so let’s make that happen: // Let's create a new Instance from the PDFViewerOptions class
Xojo verison pdf#
The next lines of code will set the default for the View mode of the document when it is opened in Acrobat Reader or any other PDF reader. PDF is opened in a device that doesn't have that document, so there are no unexpected problems when the Let's make sure that the fonts used are embedded in the Var Presentation As New PDFDocument(1920, 1080) Write the following lines of code in the associated Code Editor: // Let's create a new PDFDocument instance with Next, add the Opening Event Handler to the default DesktopWindow/WebWindow/MobileScreen, or choose the Run Event Handler if you chose to create a new Console Project. Start by creating a new project for the target you’re most comfortable with – Xojo’s PDFDocument is cross-platform and supported on Desktop, Web, iOS and Console projects. You’ll need to change the font names (and any other item) to those you are using and that are installed in your computer. In this example project I will create a shortened version of the slides I used in the Using Xojo’s PDFDocument presentation. There is one current issue to watch out for, currently there’s a bug on macOS where Acrobat Reader is not able to apply the assigned transitions on Big Sur and later they still work under Catalina and previous versions of macOS. The content is vectorial (except for images), what means that it will look great no matter the screen resolution of the display/projector used for playing the presentation. Why, you ask? What are the advantages of using a PDF for your presentations? PDF is portable, meaning you can distribute these files easily, usually, with a small file footprint.
Xojo verison how to#
I know, I know, it’s not the usual thing to do when making presentations, but did you know that it is possible to create presentations using Xojo’s and PDF? If you’re interested in this little experiment, read on and I’ll show you how to do it using Xojo’s PDFDocument.