SID-00782: Using genPDF
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
5.10.0 |
| Category: |
GenPDFAddOn |
Server OS: |
Ubuntu OS 9.10 |
Last update: |
15 years ago |
Hello All,
I have a question about using genpdf. I installed it and got it working for a while.
1. Major question: it just produces a blank white page .
The error.log messages have this:
[Tue Mar 16 11:29:51 2010] genpdf: Use of uninitialized value in string eq at /var/www/twiki/lib/TWiki/Users/TWikiUserMapping.pm line 471.
2. Minor question: I edited the /var/www/twiki/templates/viewtopicactionbuttons.tmpl file and added this line
%TMPL:DEF{"action_printablepdf"}%%TMPL:P{"printablepdf"}%%TMPL:P{"sep"}%%TMPL:END%
%TMPL:DEF{"printablepdf"}%<span><a href="%SCRIPTURLPATH%/genpdf%SCRIPTSUFFIX%/%WEB%/%TOPIC%?pdftitle=%TOPIC%" rel='nofollow' %MAKETEXT{"title='PDF version of this topic' accesskey='P'>&Print PDF"}%</a></span>%TMPL:END%
%TMPL:DEF{"activatable_printablepdf"}%%TMPL:P{"printablepdf"}%%TMPL:END%
and get the Print PDF button at the bottom. How do I also get a button at the top along with the "EDIT" and "ATTACH" buttons.
Many thanks.
--
KarthikB - 2010-03-16
Discussion and Answer
I had a problem where generated PDFs were blank in Adobe 8.1 (but not FoxitReader) because of embedded fonts: removing those makes for smaller but less portable PDF files. I had to modify
/lib/TWiki/Contrib/GenPDF.pm (down near the end, where all the other arguments are added) to add an extra argument.
push @htmldocArgs
, "--no-embedfonts"; # required with Adobe 8.1.
--
SeanCMorgan - 2010-03-18
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-05-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.