-
Notifications
You must be signed in to change notification settings - Fork 166
Something bad happened inside TeX when including PDF image #58
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
Comments
i have the same issue here, when insert '.pdf' ext picture file. But i got the right result file, where all pics(.pdf) embeded correctly. (Tectonic 0.1.5) output:
|
pkgw
added a commit
to pkgw/tectonic
that referenced
this issue
Nov 16, 2017
This has been bugging me for a while. We'd just fail to parse certain included PDF images that were just fine in other programs. As might have been guessed, my new I/O layer was at fault. The way in which PDFs are read in involves ungetc() commands followed by seeks followed by reads. I forgot to clear the "ungetc" buffer when seeking, which meant that those reads erroneously pulled out the most recent ungetc()ed character, which broke the PDF parsing. Note that `seek(SEEK_CUR, 0)` must *not* clear the ungetc buffer in order for the current PDF parsing code to work. Fixes tectonic-typesetting#58.
Merged
This fix will be deployed in the imminent 0.1.7 release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem with Tectonic 0.1.6-dev on Linux/AMD64.
Output from tectonic:
The input file (with file FonCSI.pdf in the current directory, downloadable from https://filebin.ca/3ObTUBGTUmmZ/FonCSI.pdf):
The text was updated successfully, but these errors were encountered: