Quoth [email protected]: > On Mon, Jun 02, 2025 at 11:27:40AM -0700, Skip Tavakkolian wrote: > > Edouard, I tried viewing the main.pdf from your gitlab.com repo using > > page (9legacy/386 and p9p) and it exists with a "stack underflow" > > error. Searching for similar errors, it seems like it is due to the > > page command's inability to handle embedded images. I'm not sure if > > there's a workaround. > > > > The problem is gs(1) behind page. It is old and if something is using > transparency, for example, it can't handle it---and no: I don't > volunteer to update Ghostscript ;-) The question being in fact if > an intermediate step could not be a pdf library---the only thing > that may really need Ghostscript full capacities as a programming > language could be pic(1) (I haven't looked if it is the case) pic(1). > > I know that with kerTeX, John Hobby's MetaPost generates PostScript > but in fact it could be converted to PDF because the programming > capabilities (variables, flow control, conditionals and so on) are > handled by MetaPost itself. The result is a description of a fixed > image with few primitives.
For PDF rendering, there's https://git.sr.ht/~pixelherodev/pdffs/ . It's incomplete, but I suspect Noam would appreciate patches towards making it complete. I think the biggest missing piece for it is font rendering. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T273587b7cce74ef5-M2182ba69084ac3a029b1a761 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
