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

Install epstopdf to resolve ! xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object. #161

Closed
2 of 3 tasks
boltomli opened this issue Dec 6, 2019 · 2 comments
Closed
2 of 3 tasks

Comments

@boltomli
Copy link
Contributor

boltomli commented Dec 6, 2019

Minimal example to be found. I hit the problem trying rbook. This is a pretty vague problem so probably won't fix, but it won't hurt to report anyway and I'll give the workaround below in case.

The error message:

! xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.

Issue happens when EPS file is inserted but epstopdf not installed. Install the package and it can go on. But in the log there's no obvious error. I found this blog, and since I have tinytex in my PATH, I'd give it a try and installed epstopdf and it worked.

By the way, the error is easier to be found by xelatex log, but epstopdf works in lualatex. What a mess.


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.name/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@yihui yihui closed this as completed in 5ce50e3 Dec 6, 2019
@yihui
Copy link
Member

yihui commented Dec 6, 2019

Could you help me test the fix I just submitted?

tinytex::tlmgr_remove('epstopdf')
remotes::install_github('yihui/tinytex')

Then recompile the book and see if epstopdf could be automatically installed by tinytex. Thanks!

@boltomli
Copy link
Contributor Author

boltomli commented Dec 7, 2019

I believe the pattern is correct, thanks!

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

2 participants