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

Problems building PDF #234

Open
tulsileathers opened this issue Sep 12, 2016 · 7 comments
Open

Problems building PDF #234

tulsileathers opened this issue Sep 12, 2016 · 7 comments

Comments

@tulsileathers
Copy link

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?

@mikewesthad
Copy link
Member

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

@arturoc
Copy link
Member

arturoc commented Sep 13, 2016

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

@tulsileathers
Copy link
Author

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

@arturoc
Copy link
Member

arturoc commented Sep 13, 2016

i think inkscape

@bonsoirval
Copy link

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

@bonsoirval
Copy link

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

@hamoid
Copy link
Contributor

hamoid commented Mar 28, 2017

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.

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

5 participants