Generalcannot open pdf with acrobat

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
PieterMestdagh
Posts: 2
Joined: Mon Nov 12, 2012 7:01 pm

cannot open pdf with acrobat

Post by PieterMestdagh »

Hi,

I'm relatively new to LaTex. I created a pdf using R Sweave and pdfLaTex on a Mac. Preview opens the pdf but Acrobat doesn't so I can't share the file with Windows users.
I then tried the most simple script to make sure it's not due to any of the figures that are generated:

Code: Select all

\documentclass{article}
\begin{document}
\SweaveOpts{concordance=TRUE}
Hello
\end{document}
Still, the result is the same, acrobat can't open the file. The error message is as follows:

There was an error opening this document. The file is damaged and could not be repaired.


Any help would be highly appreciated!

Pieter
Last edited by cgnieder on Mon Nov 12, 2012 7:29 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

cannot open pdf with acrobat

Post by hugovdberg »

Perhaps you should upload the output file you are trying to open with acrobat as an attachment to your post. Also please post the commands you use to generate the output. Also have you tried the even more minimalistic example to rule out the possibility that Sweave generates the error?

Code: Select all

\documentclass{article}
\begin{document}
Hello
\end{document}
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
PieterMestdagh
Posts: 2
Joined: Mon Nov 12, 2012 7:01 pm

Re: cannot open pdf with acrobat

Post by PieterMestdagh »

Output file attached (tmp.pdf).
I just fixed the problem by changing the pdf compiler in Sweave from pdfLaTex to XeLaTex. Not sure why this helps though.
Attachments
tmp.pdf
(10.24 KiB) Downloaded 365 times
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Re: cannot open pdf with acrobat

Post by hugovdberg »

I guess it really is a problem of how Sweave and pdflatex work together, because I have never had problems with pdflatex and Acrobat Reader, and the file you posted works fine in my viewer (evince on Debian Linux). But I'm glad to hear using XeLaTeX fixes the problem.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Post Reply