You are here: Foswiki>Tasks Web>Item1680 (08 Jan 2015, GeorgeClark)Edit Attach

Item1680: GenPDFPrincePlugin has an error in the pdf holding the documentation

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PatternSkin
Branches:
Reported By: IngoKappler
Waiting For:
Last Change By: GeorgeClark
GenPDFPrincePlugin pdf docu error.png
Picture of the error

The PDF cannot be viewed.

-- IngoKappler - 03 Jun 2009

Ups, I made a screenshot and then found this line in the topic code:

Here's the complete Foswiki documentation in [[%SCRIPTURL{"view"}%/%SYSTEMWEB%/CompleteDocumentation?contenttype=application/pdf][PDF]].

Obviously one must have the plugin installed in order to get this working. Can the complete documentation be attached to the topic directly? Then users which have not installed the plugin will be able to view it too. The test link can be kept too but should be clearly marked as such.

-- IngoKappler - 03 Jun 2009

Ok, another misunderstanding. :-| You are referring with complete Foswiki documentation not to the complete Foswiki GenPDFPrincePlugin configuration but to the real Foswiki documenation about Foswiki. Could have seen that directly but had in mind this all refers to the plugin.

Anyhow, maybe it could be expressed in a way which is less confusing for people like me unless you believe I am the only problem here. wink

In the meantime I installed it even and it basically works. But using the link:
%SCRIPTURL{"view"}%/%SYSTEMWEB%/CompleteDocumentation?contenttype=application/pdf
creates this PDF with just 2 pages not even holding the full TOC. I also looked at other topics which where not completely presented either. It seems only 1 page is rendered and the second will only hold the footer.

-- IngoKappler - 03 Jun 2009

I can reproduce this using PatternSkin.

Try
%SCRIPTURL{"view"}%/%SYSTEMWEB%/CompleteDocumentation?contenttype=application/pdf;skin=plain

There might be a problem with PatternSkin's css for print media. Using skin=plain will at least work around it.

-- MichaelDaum - 03 Jun 2009

The work around you suggested works, therefore I added to the GenPDFPrincePlugin topic in my installation the following:

Get a PDF by adding =contenttype=application/pdf;skin=plain= to the view url like this if the former link has issues as listed in [[http://foswiki.org/Tasks/Item1680][Item1680]]:
<verbatim class="tml">
%SCRIPTURL{"view"}/%WEB%/%TOPIC%?contenttype=application/pdf;skin=plain
</verbatim>

Here's the complete Foswiki documentation in [[%SCRIPTURL{"view"}%/%SYSTEMWEB%/CompleteDocumentation?contenttype=application/pdf;skin=plain][PDF with appended ;skin=plain]]

This confirms to move the issue from GenPDFPrincePlugin to PatternSkin.

-- IngoKappler - 04 Jun 2009

This may be related to Item8615. Changing state to confirmed.

-- MichaelTempest - 24 Jun 2010

Item8615 was fixed in 1.0.10 and 1.1.0, so a retest should confirm this. Waiting for me now.

-- IngoKappler - 15 Apr 2011

3+ years, no feedback, setting to No Action.

-- GeorgeClark - 08 Jan 2015

ItemTemplate edit

Summary GenPDFPrincePlugin has an error in the pdf holding the documentation
ReportedBy IngoKappler
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component PatternSkin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
GenPDFPrincePlugin_pdf_docu_error.pngpng GenPDFPrincePlugin_pdf_docu_error.png manage 35 K 03 Jun 2009 - 13:01 IngoKappler Error in the pdf documentation
https___wiki.pdfpdf https___wiki.pdf manage 39 K 03 Jun 2009 - 14:05 IngoKappler Only 2 pages from CompleteDocumentation topic
Topic revision: r7 - 08 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy