You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/07/13 23:26:22 UTC
DO NOT REPLY [Bug 45390] New: PDF Extensions - Prototype
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
Summary: PDF Extensions - Prototype
Product: Fop
Version: 1.0dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: adelmelle@apache.org
Created an attachment (id=22249)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22249)
prototype implementation for pdf:dictionary + pdf:entry
The attached patch contains a working prototype implementation for PDF
extension objects, as discussed on
http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPdf.
There's still quite some unfinished business there, but it should suffice to
give interested parties a starting-point (no idea when I'll be able to spend
more time on this).
After applying the patch, Jiri Tyr's requirement can be met by adding:
<pdf:dictionary type="catalog"
xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
<pdf:entry name="PageMode">FullScreen</pdf:entry>
</pdf:dictionary>
basically anywhere in the document (I think; I've only tried specifying it as a
descendant of fo:root).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45390] PDF Extensions - Prototype
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45390] PDF Extensions - Prototype
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:16 UTC ---
resetting P2 open bugs to P3 pending further review
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45390] PDF Extensions - Prototype
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
Andreas L. Delmelle <ad...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22261|0 |1
is obsolete| |
--- Comment #2 from Andreas L. Delmelle <ad...@apache.org> 2008-07-20 01:09:29 PST ---
Created an attachment (id=22286)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22286)
updated prototype; some more experimenting...
The patch in attach disables processing of the extension in case PDF/A or PDF/X
conformance is active. Better safe than sorry. For users that really don't mind
the risk, we could still add a config option to override this.
On another note, adding a quick-and-dirty implementation for simple PDF strings
already allows adding some JavaScript as an OpenAction...
Most complete example I tested so far:
<pdf:dictionary type="catalog"
xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
<pdf:name key="PageMode">FullScreen</pdf:name>
<pdf:dictionary type="normal" key="ViewerPreferences">
<pdf:boolean key="HideToolbar">true</pdf:boolean>
<pdf:boolean key="HideWindowUI">true</pdf:boolean>
<pdf:boolean key="FitWindow">true</pdf:boolean>
<pdf:boolean key="CenterWindow">true</pdf:boolean>
<pdf:name key="NonFullScreenPageMode">UseThumbs</pdf:name>
<pdf:name key="PrintScaling">None</pdf:name>
</pdf:dictionary>
<pdf:dictionary type="normal" key="OpenAction">
<pdf:name key="Type">Action</pdf:name>
<pdf:name key="S">JavaScript</pdf:name>
<pdf:string key="JS">this.print(false,0,this.numPages-1);</pdf:string>
</pdf:dictionary>
</pdf:dictionary>
The JavaScript was borrowed from Bugzilla #12610, which also attempted to
address this.
I'd say it's about time to look into adding some basic validation, shaving off
the rough edges (!!serialization!!), and adding some documentation and
testcases.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45390] PDF Extensions - Prototype
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
Andreas L. Delmelle <ad...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22249|0 |1
is obsolete| |
--- Comment #1 from Andreas L. Delmelle <ad...@apache.org> 2008-07-15 14:29:23 PST ---
Created an attachment (id=22261)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22261)
Updated patch
Added minimal support for subdictionaries and boolean entries, so the following
now becomes possible:
<pdf:dictionary type="catalog"
xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
<pdf:entry name="PageMode" type="name">FullScreen</pdf:entry>
<pdf:dictionary type="normal" name="ViewerPreferences">
<pdf:entry name="HideToolbar" type="boolean">true</pdf:entry>
<pdf:entry name="HideWindowUI" type="boolean">true</pdf:entry>
<pdf:entry name="FitWindow" type="boolean">true</pdf:entry>
<pdf:entry name="CenterWindow" type="boolean">true</pdf:entry>
<pdf:entry name="NonFullScreenPageMode" type="name">UseThumbs</pdf:entry>
</pdf:dictionary>
</pdf:dictionary>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45390] PDF Extensions - Prototype
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45390
Bill Harrelson <bi...@accordare.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bill.harrelson@accordare.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.