Item11035: Only first page of PDF printed from complete Foswiki documentation

pencil
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Extension
Component: PatternSkin
Branches: trunk
Reported By: MichaelMcGuire
Waiting For:
Last Change By: CrawfordCurrie
When printing test pdf of complete Foswiki documentation from extension page, only the first page is printed to PDF.

OS: Linux foswiki 2.6.32-26-generic-pae #47-Ubuntu SMP (under WinXP VirtualBox) Foswiki Version 1.1.2, build 9940 PatternSkin Prince 7.1

I thought it might be the "height:100%" issue (http://www.princexml.com/bb/viewtopic.php?f=4&t=2571&view=next), so I overrode the CSS for body and #patternOuter, but this didn't make any difference. When I save the HTML of the page to the Windows host, I can use the installed version of Prince to make the full PDF and all pages come through (later edit: this only worked because the saved version didn't load any css).

I'll keep researching this in case it is an error with my system. Will also install latest version of Foswiki to Slackware machine at home and see if problem occurs there.

Update and Fix

Testing on Slackware 13.0 revealed same issue.

I wrote the following fix using CSS overrides:

@media print {
    html, body { height: auto }
    #patternFloatWrap { float: none }
}

Prince will print out the entire document. This handles the issue for me (though I wonder what the changes to the css values does to the design?). Further information on the Prince issues can be found in the following Prince forum threads:

I'm not even sure if this should qualify as a bug -- and if it does, does that "bug" apply more to PatternSkin than GenPDFPrincePlugin?

-- MichaelMcGuire - 14 Aug 2011

I applied the patch for 1.2.0 but don't have Prince to test. I'm closing this because PDF printing is working fine for me, with just the features of the core.

-- CrawfordCurrie - 13 Mar 2014
 

ItemTemplate edit

Summary Only first page of PDF printed from complete Foswiki documentation
ReportedBy MichaelMcGuire
Codebase 1.1.3, 1.1.2
SVN Range
AppliesTo Extension
Component PatternSkin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:69a324e1131a
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches trunk
trunkCheckins distro:69a324e1131a
Release01x01Checkins
Topic revision: r5 - 13 Mar 2014, CrawfordCurrie
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