Display single-page PDF file

I want to display a single-page PDF file in a Mac/Windows desktop application. If I load the file into an HTMLViewer control on MacOS, all is well: it displays the single page as an image without any adornments. However, on Windows (11), it displays the page, but includes a thumbnail and a bunch of adornments for printing, etc. which I don’t want.

Any suggestions as to displaying the page on Windows without all the accompanying greebles?

No, I don’t want to use plugins since I don’t want to invest any more moolah into a product I can no longer afford to update.

If you have Foxit Reader, Adobe Pro, or the MBS Plugins (I know, but…) then you can set the initial view properties for the PDF.

These are not ‘set in stone’, but act as suggestions for the software that opens and displays the PDF.

    1. Step-by-step guide
      1. Open the PDF in a program like Adobe Acrobat or Foxit Reader.

      2. Access Document Properties:

        • Go to File > Properties or File > Info > Description > Properties.

        • Alternatively, press Ctrl+D (Windows) or Cmd+D (Mac).

      3. Go to the Initial View tab and choose your desired settings:

        • Page Layout: Select how pages are displayed, such as Single Page, Continuous, or Facing.

        • Magnification: Choose a zoom level like Fit Page, Fit Width, or a specific percentage.

        • Page: Enter the page number you want the PDF to open to.

        • Navigation Tab: Select which panel appears by default, such as Bookmarks or Pages.

Well, I think you have an older MBS licenses. So no purchase needed!

So you could check out the Windows PDF classes, that I made for 23.2 release. You could use them to render PDF pages to images and show them.

or maybe check the WinPreviewControlMBS control, which exists since 23.3. This provides a control where the user can scroll in a desktop app.

On macOS, to display a downloaded pdf file, I use:

ImageViewer1.Image = pict

Pict holds the downloaded pdf.

ImageViewer resize the passed pict to its current size.

And URLConnection to download it.

Is it OK for you ?

OK, I should’ve mentioned that the PDFs I’m looking at are being produced programmatically, so the solution proposed by @Jeff_Tullin doesn’t really work (I don’t have access to the required software anyway). However, @Christian_Schmitz has pointed out that I do have access to Windows PDF classes in his plugins, so I will try that. Thanks all.

Great.

So check out pdf.setViewerPreferences

I cant find the right page in the Monkeybread docs, but I suspect what you need will be in here somewhere

//vpNonFullScrPageMode = 0x00000040
// TViewPrefAddVal; #define avNone 0x00000000
//#define avNonFullScrUseNone 0x00000001
//#define avNonFullScrUseOutlines 0x00000002
//#define avNonFullScrUseThumbs  0x00000004
call pdf.SetViewerPreferences &h40, 0