ofBook icon indicating copy to clipboard operation
ofBook copied to clipboard

Problems building PDF

Open tulsileathers opened this issue 9 years ago • 7 comments

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'. } l.17958 ...cs{../chapters/memory/images/int_i.svg}

pandoc: Error producing PDF Error in building of ../output/ofBook.pdf

Any clue as to why this is?

tulsileathers avatar Sep 12 '16 21:09 tulsileathers

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.)

mikewesthad avatar Sep 13 '16 03:09 mikewesthad

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 avatar Sep 13 '16 07:09 arturoc

@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.

tulsileathers avatar Sep 13 '16 14:09 tulsileathers

i think inkscape

arturoc avatar Sep 13 '16 15:09 arturoc

mikewesthad thank you so very much for making the ofbook.pdf available at https://github.com/openframeworks/ofBook/releases/tag/v1.0.0

bonsoirval avatar Dec 28 '16 18:12 bonsoirval

@mikewesthad thank you so very much for making the ofbook.pdf available at https://github.com/openframeworks/ofBook/releases/tag/v1.0.0

bonsoirval avatar Dec 28 '16 18:12 bonsoirval

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.

hamoid avatar Mar 28 '17 15:03 hamoid