6 ms·
Regulatory requirements mandate that. Stock brokers in India are required to generate this document called “Contract Notes” which includes all the trades done b
by mr-karan 2y ago
Regulatory requirements mandate that. Stock brokers in India are required to generate this document called “Contract Notes” which includes all the trades done by the user on the stock exchanges. It also contains a breakdown of all charges incurred by the user (brokerage, various taxes etc). And this has to be emailed to every user before the next trading session begins.
- bjourne 2y agoThere are of course way more efficient methods for generating templated pdfs than using a typesetter.
- cameroncooper 2y agoI'm interested to hear what you would propose.
- abound 2y agoNot sure what GP had in mind, but one can programmatically generate PDFs directly, without using something like Typst as a "middleman".
- the_mitsuhiko 2y agoHave you tried doing that? It’s no fun at all and far from easy. I don’t quite see a benefit in doing it without some utility.
- a57721 2y agoBesides, the generation of PDF reports is usually decoupled from the templates, so you will have to work on your own "middleman".
- wolfi1 2y agoI guess some webkit solution like wkhtmltopdf
- mr_mitm 2y agoHow is that more efficient than Typst exactly?
- bjourne 2y agoApache iText, for example.
- IshKebab 2y agoDoes the law specify PDF? I would have thought pain text or even HTML would be sufficient.
- the_mitsuhiko 2y agoI don’t know the situation in India but brokers in Austria and Germany do the same. The law does not stipulate the format but PDF is what everyone uses. I assume it’s because it can be signed and archived and will outlast pretty much anything. You need to keep these for 7 years.
- mr-karan 2y agoYes, in India, the law mandates that ECNs (electronic contract notes) need to be digitally signed with a valid certifying authority. While it's true that XML/docx/xls files could also support digital signatures, but I think PDFs are prevalent and also allow clients to verify this on their end, quite easily.
- yukeabu 2y agoPDF is less likely to contain executable malicious code than other formats.
- radicality 2y agoIs it? More so than say .csv file ? I was under the impressions that pdfs are not that safe. I thought they can do stuff like execute a subset of PostScript and Javascript.
- yukeabu 2y agoLook, when it comes to corporate reporting, PDFs are pretty much the gold standard. Sure, they've got some potential security issues, but any decent company's IT department has them well in hand. Think about it - you want your reports to look sharp, right? PDFs deliver that professional look every time, no matter who opens them or on what device. Plus, they've got all those nifty features like password protection and digital signatures that the big guys love. CSV files? They're great for crunching numbers, but let's face it - they look about as exciting as a blank wall. Try sending a CSV report to the board of directors and watch their eyes glaze over. So, yes, for reporting in a company that's got its security act together, PDFs are your best bet. They're like the well-dressed, security-savvy cousin of other file formats - they look good and keep things safe.