Rough draft/example for using Chrome web browser's PDF rendering library

Sorry if this is the wrong place for this but I quickly put together a small example to render PDF files in an oF application using google’s recently open sourced PDFium project. It’s the rendering library they use in their web browser. Seems to work pretty well. Again this is just a small, rough example of it being used in an oF app. I did the example in Windows but the library is cross platform I believe.

https://drive.google.com/file/d/0B9DYn1WIZjA5QkJjOGtkWTJwTDQ/edit?usp=sharing

1 Like

you can actually render any OF output (mostly 2D) in a PDF by doing:

ofBeginSaveScreenAsPDF(filename);
// call to any OF drawing function
ofEndSaveScreenAsPDF();

Sorry I may have explained it wrong, but PDFium is for rendering a PDF file to the screen rather than rendering the screen to a PDF file