On Mon, 30 Jan 2006, Arnd Baecker wrote:

> So an `aptitude  install gs-afpl`
> and `cd /etc/alternatives ; rm gs ; ln -s /usr/bin/gs-afpl gs`
> gives me gs-afpl as default.
>
> And I get the same speed as with your file.
>
> Thanks a lot - that was the solution!!

Well, no solution without a drawback ;-):
The resulting file works fine with acroread 7.
But with acroread 5.5 I get:
  "There was an error processing a page. Invalid pattern"

(Note that this also happens, when using `c.writePDFfile(" ...")`)

Is there maybe a workaround, so that the file would
work with acroread 5.5 ?

Now you may ask, why I want acroread 5 if acroread 7 is already out.
The reason is the following (sorry, this *is* clearly
off-topic wrt PyX, but still people might encounter
the problem as well ...):

Quoting Steve Schwartz
  http://www.tug.org/pipermail/texhax/2005-September/004624.html
"""
I use hyperref to insert run commands into a pdf using pdflatex, so that
I can show movies within beamer presentations. The syntax is:

\href{run:/movie_script.sh}{Click Here}

where movie_script.sh is a shell script to play the movie (I have it run
mplayer on my linux laptop, with various options).

On clicking the hyperlink, acroread 7.0 throws up a box complaining that
"Adobe Reader could not open 'movie_script.sh' because it is either not
a supported file type or because the file has been damaged..." On
clicking the OK button, the movie then plays! Not very slick.
"""

I contacted Steve last night, and there has been no solution
to his problem (only many mails asking him about a solution ;-).
He has reported the problem to Adobe (but no answer ...)

The minimal example to reproduce the problem is this one:

%%% acroread_href_problem.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% latex acroread_href_problem ; dvips acroread_href_problem
% ps2pdf acroread_href_problem.ps ;  acroread acroread_href_problem.pdf
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{run:start1.cmd}{START cmd}\\
\href{run:start2.exe}{START exe}\\
\href{run:start3.sh}{START sh}\\
\href{run:start4}{START}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Any ideas/solutions/workarounds are of course very much welcome!
(Maybe there is some trick with mime types?)


Best, Arnd



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to