Perspective PDF Fit Options

I am having a much harder time solving this problem that I thought I would've, and would like to throw it out there to see if anyone has found a solution for it.

A few years back, our team developed a signage system powered through Vision. The project has the ability to pull PDFs and display them on TVs we have around our facility. This has worked well, but as our development efforts continue to shift into Perspective, I have been working on the process of translating our Vision project design into the web.

This has gone pretty smoothly for the most part. I can load PDFs through a basic webdev getBlob module, where I pull stored PDF bytes in a SQL table, load them into a PDF webpage

	queryString = "SELECT fileBytes FROM signage_data WHERE id = " + ID
	data = system.db.runScalarPrepQuery(queryString)
	return {'contentType':'application/pdf', 'bytes':data}

My initial plan was to simply pass this web dev request page into the src value of the PDF viewer. This worked and the PDF loads into my web page cycling through a list of PDFs each PC needs to display. The issue is the actual display of the PDF.

With the Vision PDF Viewer component, there was an option to fit the PDF to the height of the web page. This automatically scaled the PDF and allowed the entire height to be visible on the screen. This was critical for us, as we would display many different sized PDFs around the plant. The perspective viewer does not appear to have a way to auto scale the display of the PDF, meaning different sizes are chopped off the screen. Given these are displayed on a TV, there is no way to display cut off content.

Is there anyway to get the width and height of the PDF in order to scale the viewer to display the contents properly with the PDF viewer? If not, the I-Frame might be an option. The problem with that, however, is that I don't know if it would even be possible to cycle through multiple pages of the PDF through scripting.

Any thoughts would be appreciated. Thanks.