A very old post seemed to say PDF was compiled in to the browser, so one assumes no Add-on nor external package was needed. However File - Open - PDF works by launching a plugin DLL provided by a separate PDF program here. Other browsers here use various other methods to display PDF.
Problem: a bank-like site provides its statements by generating a PDF on the fly. Except the generation is done by jsPDF, which runs in the browser and not on the server. That is insane to me. When the page downloads a javascript from a CDN or central server, that's a recipe for a supply-chain attack against all financial data served by this site.
Anyway the site's PDF functionality fails in my preferred browsers, starting with PM. Using a very simple script, all browsers here, except for two, generate PDFs as expected. PM 33.2.1/64 fails hardest, and SeaMonkey 2.53.13 is the runner-up. The code is like
Code: Select all
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js" ></script>
const { jsPDF } = window.jspdf ; //
var objPdf = new jsPDF( { format: [ 8.5, 11 ], unit: "in", } ) ; // instantiate PDF object as Letter size
Code: Select all
strPdf = objPdf.output( 'pdfobjectnewwindow' ) ; // emit PDF to new browser window/tab