How can I get Page Breaks to Work for RTF, DOC, and WPD Delivered Documents
I am trying to insert a page break into a delivered document consistently, regardless of delivery output type. If I add a page break with the following code: It works when the output type is PDF, but when it is DOC, RTF, or WPD no page break occurs.
Tagged:
3
Answers
-
We looked at this briefly on Company Investigator and the FOP itself didn't support the page-break attribute in 1.0 for formats other than PDF. This was changed in 1.1 (I don't remember where we found this info but I'm sure some Google searching could help you out) but PRISM was still using the older version.0
-
There is little information about support of page-break in the rendered output. I was able to find this information on RTF (from
http://xmlgraphics.apache.org/fop/0.95/output.html#rtf ): RTF - Not supported/implemented: -- break-before/after (supported by the RTF library but not tied into the RTFHandler)0 -
The only guaranteed way that I know of is to use fo:page-sequence. Cobalt Document generally only has once page-sequence per document (or document chunk), however there are pre-formatted documents that were so large that the FOP died when processing. The fix was to add page-sequences to break up the document. There are a few other id attribute checks to create a new page-sequence as well in xhtml2fo.xsl in core of Cobalt Document. A page-sequence can only be a child of the root element, so you will need to structure your XHTML accordingly. Meaning you won't be able to add a style to any tag and expect a new page sequence, you will need to properly close and open the HTML tags down to the root of what you are converting.1
-
Also note that in Jan 2014 I may be working on a solution to create a page-sequence based on an CSS class in Cobalt Document. The idea is when the document writer sees a specific class, it will chunk the XHTML. Then when the FO generator is working, it will create a new page sequence on these chunks.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛