Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: PostScript Parser #285

Open
cornejong opened this issue Apr 7, 2024 · 2 comments
Open

Feature request: PostScript Parser #285

cornejong opened this issue Apr 7, 2024 · 2 comments

Comments

@cornejong
Copy link

Would be great if there was also support for parsing PostScript.

@tdewolff
Copy link
Owner

tdewolff commented Apr 7, 2024

I agree that would be a good addition. There is already quite some code related to (compressed) PostScript inside OTF fonts in https://github.com/tdewolff/font/blob/master/sfnt_cff.go#L259, the only difference would be reading a text encoded stream and expanding the operator set. The complete operator set is fairly big though. This would open the door to converting EPSs and PDFs to Canvas (rendering EPS and PDF files), and further integration with the TeX tool set.

What is your use-case out of curiosity?

Additionally, I wish to improve the SVG to Canvas functionality, it's quite ad-hoc at this point. Unfortunately I don't have much free time to add new features soon, though I prioritize fixing bugs...

@cornejong
Copy link
Author

Currently working on a project for a client where we need to generate raster preview images for a bunch of different, customer supplied, input file formats (eps, svg, ai, psd, pdf, etc..) and trying to keep it all in pure go. So not really touching the majority of the functionality. Althouh i seem to find new usecases for it everyday since i discoverd it.

I'm kinda new to the whole "working with graphics". But it caught my interest.

Yeah totaly agree on prioritizing bug fixes over new features. I might see if i can find/make some time to dive into this. Could be a fun project to divert some time to. Although my spare time seems to shrink by the minute, but i'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants