Tags:
create new tag
view all tags

SID-00782: Using genPDF

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Using genPDF
SupportCategory GenPDFAddOn
TWiki version 4.3.2
Server OS Ubuntu OS 9.10
Web server Apache 2.2.12
Perl version 5.10.0
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2010-05-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.