Bug 740123 - "Draft" watermark displays in PDF by default
Summary: "Draft" watermark displays in PDF by default
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.7
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
Depends On:
TreeView+ depends on / blocked
Reported: 2011-09-21 02:07 UTC by Michael Doyle
Modified: 2011-09-26 23:54 UTC (History)
7 users (show)

Fixed In Version: 2.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-09-26 23:54:51 UTC

Attachments (Terms of Use)

Description Michael Doyle 2011-09-21 02:07:13 UTC
Description of problem:

The "Draft" watermark displays in PDF builds even when the <book status="draft"> tag is NOT included.

This means all PDF version include "Draft" by default.

HTML is not affected.

Version-Release number of selected component (if applicable):

publican 2.7-1.fc14

How reproducible:


Steps to Reproduce:
1. Make sure you do not have <book status="draft">
2. Build a PDF
3. Open PDF
Actual results:

"Draft" appears in the document.

Expected results:

No watermark in PDF build unless specified with the <book status="draft"> tag.

Additional info:

Comment 1 Stephen Gordon 2011-09-21 02:13:28 UTC
Also reproduced in the F15 package, moved to correct Product/Component.

Comment 2 Jeff Fearn 🐞 2011-09-21 02:44:40 UTC
Turns out the HTML and PDF have different logic. Overrode PDF XSL to use same logic as HTML.

Changes applied to publican-2x.

Committed revision 1891.

Comment 3 Ruediger Landmann 2011-09-21 03:24:30 UTC
Verified fixed in publican.noarch 0:2.8-0.fc15.t1

Without the "draft" attribute in the XML, the PDF and HTML versions do not show the watermark. 

Adding the "draft" attribute means that the PDF and HTML versions show the watermark.

Note You need to log in before you can comment on or make changes to this bug.