-
Notifications
You must be signed in to change notification settings - Fork 200
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
Problems building PDF #234
Comments
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 |
…ssue openframeworks#234: Problems building PDF
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. |
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?
The text was updated successfully, but these errors were encountered: