Hi folks,
I am going CRAZY from this, any help MUCH appreciated!!!
I have a perl script that creates a tex file.. Now after the tex file is completed I want to convert it it pdf via pdflatex....
So I call:
system "/usr/bin/pdflatex -output-directory /tmp /tmp/perl.tex";
system "mv /tmp/perl.pdf /export/www/html/auth/download/";
Now what happens is that the generated pdf is unreadable (.log file says :
[1{/usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map
Error: /usr/bin/pdflatex (file /usr/share/texmf-var/fonts/map/pdftex/u
+pdmap/pdf
tex.map): fflush() failed
==> Fatal error occurred, the output PDF file is not finished!
The funny part is that when I log in via ssh (and even change my user to apache by typing "su apache") then pdflatex works just fine... If I run those two command outside of perl
$ /usr/bin/pdflatex -output-directory /tmp /tmp/perl.tex
$ mv /tmp/perl.pdf /export/www/html/auth/download/
=> this works np. Why the heck is perl not able to call the system properly?! Any ideas? Anybody who created pdfs this wat and can help? PLLLLS :)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.