ofBook
ofBook copied to clipboard
Problems building PDF
I'm trying to build the pdf using the script I'm getting the following error
➜ scripts git:(master) ✗ python2.7 createPDFBook.py Generating ../output/ofBook.pdf from:
Successful building of ../output/ofBook.tex
pandoc: Unable to convert ../chapters/memory/images/int_i.svg' for use with pdflatex. pandoc: Unable to convert../chapters/memory/images/int_i_equals_0.svg' for use with pdflatex.
pandoc: Unable to convert ../chapters/memory/images/pointer.svg' for use with pdflatex. pandoc: Unable to convert../chapters/memory/images/int_i.svg' for use with pdflatex.
pandoc: Unable to convert ../chapters/memory/images/objects_java_c.svg' for use with pdflatex. pandoc: Unable to convert../chapters/memory/images/object_pointers.svg' for use with pdflatex.
pandoc: Unable to convert ../chapters/memory/images/array.svg' for use with pdflatex. pandoc: Unable to convert../chapters/memory/images/vector_inserting.svg' for use with pdflatex.
pandoc: Unable to convert `../chapters/memory/images/list.svg' for use with pdflatex.
! Unable to load picture or PDF file '../chapters/memory/images/int_i.svg'.
pandoc: Error producing PDF Error in building of ../output/ofBook.pdf
Any clue as to why this is?
Re #232, the PDF build process was not really actively maintained (purposefully) in favor of focusing on the web book. The problem with the build is that the latex setup doesn't understand SVGs, so it is breaking in the memory chapter. There used to be a hack in place to work around that, but something has changed and it isn't working any more. I don't have the bandwidth to look into it at the moment.
If you need a PDF representing the current state of the PDF build process, here it is: https://github.com/openframeworks/ofBook/releases/tag/v1.0.0. (It's a build where I temporarily modified the memory chapter to not use SVGs.)
hey, i don't have time right now to look into it but if someone want's to fix it it would just be a matter of converting the svg's in the memory chapter and the links in the text to pngs
@arturoc How were these svgs made? I open them in Sketch to convert and they appear corrupted i.e. not as they are in the book.
i think inkscape
mikewesthad thank you so very much for making the ofbook.pdf available at https://github.com/openframeworks/ofBook/releases/tag/v1.0.0
@mikewesthad thank you so very much for making the ofbook.pdf available at https://github.com/openframeworks/ofBook/releases/tag/v1.0.0
I learned a few days ago that Inkscape has a "save optimized" option. It produces smaller files, with better web compatibility I think. In case it can help with this issue.