James Zucker Posted November 6 Posted November 6 I need to create a legal document where the term definitions are underlined and in quotes (e.g. ("Principal") ); and have the paragraphs word wrap; and output as PDF documents. If really forced to do so, I could always create DEFINE fields and NOT do the underlining of the term, and manually underline the terms in Adobe Acrobat. Obviously, NOT what I was hoping for; as it requires manual intervention. I tried opening an ibi Support case, but they were stumped. I have attached an example of a document using the CAR and EMPDATA files to make samples with auto loans. However, you will notice a couple of things: I have included a DEFINE FUNCTION PMT, which calculates load payment amounts, just like Microsoft Excel. I hope someone finds in very useful. 🙂 The paragraphs are NOT one long line, but rather broken into chucks to fit on the page and not scroll off the right margin. If I try adding the WRAP=6.5 style to either the REPORT, or HEADING, or a SUBHEAD type, it will NOT format correctly. Rather, it will truncate the line at the first embedded field of the each line (i.e. paragaph). Any help would be appreciated. Thanks in advance, James legalparagraphs.fex
Patrick Huebgen Posted November 8 Posted November 8 @James Zucker did you looked into the markup feature - please check Page 765 of the manual - this is quite useful to format elements in PDF https://docs.tibco.com/pub/wf-wf/9.2.4/doc/pdf/IBI_wf-wf_9.2.4_cr_language.pdf Fort the width - make sure to build a TABLE that spans the full page (can be sone if you enable borders to see the TABLE and then make the columns wise enough) as the heading width will use this for it's with as well - additionally using a alignment grid in heading is useful for positioning.
Solution David Briars Posted November 8 Solution Posted November 8 (edited) Sounds like your requirements something like: 1. Markup PDF output with underlines, bold, and italic. 2. Wrap text to a specific number of units. 3. Display text within paragraphs. Here is an example of using HTML tags to do the markup, and the WRAP WF StyleSheet command to do the wrapping: SET PAGE = OFF DEFINE FILE CAR PARA1/A1024V = 'To <b>boldly</b> go where no one has gone before. The Yankees are going to <u>skip</u> the fifth inning from now on. ' | 'I am <i>italic</i> on my mothers side. ' | 'This message will wrap in five (5) inches. '; PARA2/A1024V = 'This is the <b>second</b> paragraph of deathless prose. ' | ' Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus maximus eros quis commodo vulputate. Phasellus commodo tincidunt magna, vel scelerisque.' ; END -* TABLE FILE CAR PRINT COUNTRY NOPRINT IF RECORDLIMIT EQ 1 ON TABLE SUBHEAD "<PARA1" " " "<PARA2" ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * UNITS=IN,$ TYPE=TABHEADING, LINE=1, WRAP=5, $ TYPE=TABHEADING, LINE=3, WRAP=5, $ TYPE=REPORT, MARKUP=ON,$ ENDSTYLE END -EXIT Edited November 8 by David Briars 2 1
James Zucker Posted November 11 Author Posted November 11 Gentlemen, Thanks so much. I was familiar with embedding HTML markup for an HTML report. However, I hadn't seen any examples of how to use this for a FORMAT PDF document. The critical requirement was the addition of the MARKUP=ON to the style sheet. Once that was done, the underlining and wrapping seems to be working correctly. Thanks again. 2
James Zucker Posted November 11 Author Posted November 11 All, For the sake of completeness of the example, I am attaching the revised, working version of the "autoloan" procedure, along with the resulting PDF. Thanks again! Jim autoloan.pdf autoloan.fex 3 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now