Every Indian mutual fund investor can get a CAS: a PDF from CAMS or KFintech listing every folio and every transaction, locked with a password you choose when you ask for it. I wanted a portfolio view built from it, and I didn't want the PDF to touch a server. Mine or anyone's. I built Sachfolio to do that, and this is the stuff I didn't expect.
A CAS isn't a table. It's text placed at x/y positions. pdf.js gives you runs of text with coordinates, and you rebuild lines yourself. KFintech statements sometimes draw the same text twice, slightly offset, so you have to drop the twin without dropping a real repeated value. Some pages come out rotated if the user rotated them in a viewer and saved. Nothing in the PDF tells you it's a CAMS detailed statement rather than a KFintech summary; you find out from headers and markers on the first pages.
I use the legacy pdf.js build on purpose. The modern build leans on very new JavaScript.…