Sorry for the silly question, but I am having a difficult time understanding the PDF class for web projects. I do understand the need to set up a new PDFDocument and use the graphics class to create whatever you want, but what I am stuck on is how do you display it in the browser? On desktop, you can save it to a folder, but how do you just display it? Bonus for displaying it in a new tab.
I couldn’t find any examples that were web-specific. All were desktop and iOS, unless I missed it. Searching the forum, it looks like there used to be an example in the EEWeb for PDF, but the current example does not seem to have this
Not every browser supports displaying PDF directly the way that blog post suggests. Availability of that functionality depends on the system and installed software.
There are Javascript controls that reliably display PDF. It would benefit Xojo to add one. You could look at PDF.js or if you’re able to use Google services within your Web App you can embed their document viewer in a HTMLViewer with a URL pattern like this:
Between @Anthony_G_Cyphers’s GraffitiSuite and the open source control shared by @Jean-Yves_Pochez, that should be enough, but as we have a MobilePDFViewer, please feel free to create a Feature Request to add a PDF Viewer to Web and/or desktop projects.