Re: Outline extension generates a PDF bookmark set for each page-sequence
Bruce, 1.0dev is *quite* unfinished--with hundreds of classes only partially complete--but yes, please add it into Bugzilla just to make sure it is not missed. Thanks, Glen Krautbauer, Bruce wrote: Hi, I've come across what I think is a bug. I did some searching and could not find any references to anything similar. I am running version 1.0dev checked out earlier today. If I use the outline extension to generate PDF bookmarks it generates a complete set of bookmarks for each page-sequence I have. In other words, if I have this input: ?xml version=1.0 encoding=UTF-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-body margin-top=3cm / fo:region-before extent=3cm / fo:region-after extent=1.5cm / /fo:simple-page-master /fo:layout-master-set fox:bookmarks xmlns:fox=http://xml.apache.org/fop/extensions; fox:outline internal-destination=sec1 fox:labelSection 1/fox:label /fox:outline fox:outline internal-destination=sec2 fox:labelSection 2/fox:label /fox:outline /fox:bookmarks fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec1Section 1/fo:block /fo:flow /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec2Section 2/fo:block /fo:flow /fo:page-sequence /fo:root I expect to get one set of bookmarks with items of Section 1 and Section 2 linking to the first page and second page respectively. Instead I get two complete sets, i.e., items Section 1, Section 2, Section 1 and Section 2. The bookmarks link to the right places. This only seems to happen if there are outline references to more than one page-sequence. Is this something I should write a bug report about? Thanks, Bruce - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Outline extension generates a PDF bookmark set for each page-sequence
Hi, I've come across what I think is a bug. I did some searching and could not find any references to anything similar. I am running version 1.0dev checked out earlier today. If I use the outline extension to generate PDF bookmarks it generates a complete set of bookmarks for each page-sequence I have. In other words, if I have this input: ?xml version=1.0 encoding=UTF-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-body margin-top=3cm / fo:region-before extent=3cm / fo:region-after extent=1.5cm / /fo:simple-page-master /fo:layout-master-set fox:bookmarks xmlns:fox=http://xml.apache.org/fop/extensions; fox:outline internal-destination=sec1 fox:labelSection 1/fox:label /fox:outline fox:outline internal-destination=sec2 fox:labelSection 2/fox:label /fox:outline /fox:bookmarks fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec1Section 1/fo:block /fo:flow /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec2Section 2/fo:block /fo:flow /fo:page-sequence /fo:root I expect to get one set of bookmarks with items of Section 1 and Section 2 linking to the first page and second page respectively. Instead I get two complete sets, i.e., items Section 1, Section 2, Section 1 and Section 2. The bookmarks link to the right places. This only seems to happen if there are outline references to more than one page-sequence. Is this something I should write a bug report about? Thanks, Bruce - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bookmark extensions problems
Victor, On Monday, August 4, 2003, at 04:08 PM, Victor Mote wrote: Clay Leeds wrote: The PDF outline items do *not* appear to show up when I process with xalan.bat. I am using the binary download 0.20.5 version. As I mentioned before, the strange thing (at least I think it's strange) is that the example/fo/basic/pdfoutput.fo processes normally and creates bookmarks. Sorry, I'm even more confused than before. Are you saying that the fox: elements do not even appear in the fo file? Victor Mote That is correct. The fox: elements do not appear in the intermediate .fo file I generated with xalan. -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bookmark extensions problems
I've got bookmarks working, but there are a couple of lingering, annoying issues I've discovered... Is there a way to bookmark the top of a page (above or at the top of fo:region-before)? In particular, I'd like my first bookmark to go to the top of the first page. I tried assigning a block id to the first element in my fo:region-before, but (as I expected) it complained when there were multiple instances. I also tried putting fo:block inside fo:page-sequence-master.. but it completely ignored it (I actually expected it to generate an error). As it is, I place it at the top of the region-body, but clicking it does not bring you to the top of the page. Also, the first Bookmark (Explanation of Review in my 1st example below) does not appear to be an actual bookmark. It is merely a 'container' for the items inside. It highlights in Acrobat--my preferences for Acrobat indicate it should highlight where I am dynamically when viewing. However, clicking it brings up the first item it contains. In the case below, clicking Explanation of Review brings you to the ICD9 Section: fox:outline internal-destination=EOR fox:labelExplanation of Review/fox:label fox:outline internal-destination=ICD9 fox:labelICD-9 Section/fox:label /fox:outline fox:outline internal-destination=Details fox:labelDetails Section/fox:label fox:outline internal-destination=Totals fox:labelTotals Section/fox:label /fox:outline /fox:outline /fox:outline NOTE: fo:block id=EOR is at the top of the fo:region-body, so it may be behaving as it should. However, clicking it again once something else has been clicked has no effect. Also, is there a way to make all bookmarks default to expanded I've tried the following, which, although not expanded gives better results (although Totals Section is still hidden): fox:outline internal-destination=EOR fox:labelExplanation of Review/fox:label /fox:outline fox:outline internal-destination=ICD9 fox:labelICD-9 Section/fox:label /fox:outline fox:outline internal-destination=Details fox:labelDetails Section/fox:label fox:outline internal-destination=Totals fox:labelTotals Section/fox:label /fox:outline /fox:outline Other notes (may be PDF-related or fox: related): I've created a bookmark which contains a Details section that spans several pages. Unfortunately, clicking the Details Section bookmark brings me to the top of the *last* page of the Details section (actually it brings me to the top of the fo:region-before for the last page of Details). I would've assumed this is because Details is something of a container for Totals which is the first item in the container. However, that's not the case. I've changed it so Totals Section is not indented under Details Section, and it doesn't help (it still brings me to the top of the region-before of the last page of Details): fox:outline internal-destination=EOR fox:labelExplanation of Review/fox:label /fox:outline fox:outline internal-destination=ICD9 fox:labelICD-9 Section/fox:label /fox:outline fox:outline internal-destination=Details fox:labelDetails Section/fox:label /fox:outline fox:outline internal-destination=Totals fox:labelTotals Section/fox:label /fox:outline My solution: insert the following above where the DETAILS template is called: fo:block padding=0pt fo:block id=EOR padding=0pt margin=0pt font-size=0pt#160;/fo:block xsl:apply-templates select=DETAILS/ /fo:block (previously I'd placed the id=EOR call inside the containing fo:block padding=0pt as below) fo:block id=EOR padding=0pt xsl:apply-templates select=DETAILS/ /fo:block NOTE: I only need to insert an empty fo:block when I know it won't fit on a page. It appears that the bookmark will take you to the *top of the last page of that section*. At least that's how it works for me. -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fox: bookmark extensions problems
I'm having problems getting my Bookmarks to work. I've attempted to follow the instructions here without success: http://xml.apache.org/fop/extensions.html Between the /fo:layout-master-set and fo:page-sequence master-reference=repeating section, I've placed: fox:outline internal-destination=EOR fox:labelExplanation of Review/fox:label fox:outline internal-destination=ICD9 fox:labelICD-9 Section/fox:label /fox:outline fox:outline internal-destination=Details fox:labelDetails Section/fox:label fox:outline internal-destination=Totals fox:labelTotals Section/fox:label /fox:outline /fox:outline /fox:outline Then later, in my FO, I specify the id=EOR (or whatever) for the appropriate fo:block elements. The examples/fo/basic/pdfoutline.fo works great. In fact, there are also basic-links in that file which also go to the same place. I can't see what I'm doing wrong. Am I missing something? -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fox: bookmark extensions problems
Clay Leeds wrote: I'm having problems getting my Bookmarks to work. I've attempted to follow the instructions here without success: The syntax has changed for HEAD. Look at the source. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fox: bookmark extensions problems
On Monday, August 4, 2003, at 12:15 PM, J.Pietschmann wrote: Clay Leeds wrote: I'm having problems getting my Bookmarks to work. I've attempted to follow the instructions here without success: The syntax has changed for HEAD. Look at the source. Are you telling me that what's on the web site /extensions.html page is for the re-design (aka HEAD)? That's strange, because the pdfoutput.fo has examples written like this, and they work as described on that page. I copied those examples, but it doesn't work for me. BTW, apologies, since I neglected to include the FOP version/platform fop-0.20.5/WinXP (although I'll also use this on Linux and Mac OS X). As for Look at the source. well... hehehe... That doesn't help me much... It would be like telling an English speaker to figure out what Dante meant in his Purgatorio (the original pre-Italian version). -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fox: bookmark extensions problems
On Monday, August 4, 2003, at 12:57 PM, J.Pietschmann wrote: Clay Leeds wrote: Clay Leeds wrote: I'm having problems getting my Bookmarks to work. I've attempted to follow the instructions here without success: ... Are you telling me that what's on the web site /extensions.html page is for the re-design (aka HEAD)? No, it's for the regular release. I think you'll have to detail your problems a bit more. Just as a guess, I believe the outermost fox:outline should have a label too. Thanks. The outermost fox:outline does include fox:label (darn!--FWIW, that was just the type of help I was hoping would resolve this). Hmmm... Maybe I'll make a *simple* FO file (instead of the 100+k FO file I'm currently trying to improve)... I'll write back if I find anything... -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bookmark extensions problems
Clay Leeds wrote: I'm having problems getting my Bookmarks to work. I've attempted to follow the instructions here without success: Do the PDF outline items show up, and the links not work, or do the PDF outline items not show up at all? Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bookmark
OOPS!! I forgot about the namespace that must be added. Sorry. xmlns:fox=http://xml.apache.org/fop/extensions; - Original Message - From: Joe Sytniak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 3:14 PM Subject: Re: bookmark xsl:template match=/ fo:root xsl:call-template name=BOOKMARKS/ fo:layout-master-set fo:simple-page-master master-name=simple page-height=16.4cm page-width=24.2cm margin-top=0.5cm margin-bottom=0.5cm margin-left=2cm margin-right=2cm fo:region-before precedence=true extent=1.2cm/ fo:region-body margin-top=1.1cm margin-bottom=0.75cm/ fo:region-after precedence=true extent=0.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=left font-size=8pt font-family=serif line-height=14pt vertical-align=top xsl:call-template name=PAGE_HEADER/ /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block text-align=end font-size=8pt font-family=serif line-height=14pt vertical-align=bottom xsl:call-template name=PAGE_FOOTER/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=MYDATA/ fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template name=PAGE_HEADER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textPROJECT: /xsl:textxsl:value-of select=MYDATA/@ClientName/xsl:text /xsl:textxsl:value-of select=MYDATA/@ProjectName//fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textSTUFF/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textInitials:_/xsl:text/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textREVISION: /xsl:text !-- Revision parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textStatus: DRAFT/xsl:text!-- Status parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textDate:__/xsl:text/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=PAGE_FOOTER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=left font-weight=boldxsl:textMy Company Inc. /xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=centerxsl:textConfidential/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=rightPage fo:page-number/ of fo:page-number-citation ref-id=last-page//fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=BOOKMARKS xsl:for-each select=MYDATA fox:outline internal-destination={position()} fox:labelxsl:value-of select=@SomeField//fox:label /fox:outline /xsl:for-each /xsl:template xsl:template match=MYDATA . . . . . /xsl:template . . . . . - Original Message - From: Fischer Tibor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:47 PM Subject: bookmark Hello, How can i put entries into the bookmark of the pdf?? Thanks BR, Fishy
bookmark
Hello, How can i put entries into the bookmark of the pdf?? Thanks BR, Fishy
Re: bookmark
xsl:template match=/ fo:root xsl:call-template name=BOOKMARKS/ fo:layout-master-set fo:simple-page-master master-name=simple page-height=16.4cm page-width=24.2cm margin-top=0.5cm margin-bottom=0.5cm margin-left=2cm margin-right=2cm fo:region-before precedence=true extent=1.2cm/ fo:region-body margin-top=1.1cm margin-bottom=0.75cm/ fo:region-after precedence=true extent=0.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=left font-size=8pt font-family=serif line-height=14pt vertical-align=top xsl:call-template name=PAGE_HEADER/ /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block text-align=end font-size=8pt font-family=serif line-height=14pt vertical-align=bottom xsl:call-template name=PAGE_FOOTER/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body xsl:apply-templates select=MYDATA/ fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template name=PAGE_HEADER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textPROJECT: /xsl:textxsl:value-of select=MYDATA/@ClientName/xsl:text /xsl:textxsl:value-of select=MYDATA/@ProjectName//fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textSTUFF/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textInitials:_/xsl:text/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block font-weight=boldxsl:textREVISION: /xsl:text !-- Revision parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=center font-weight=boldxsl:textStatus: DRAFT/xsl:text!-- Status parm? --/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=right font-weight=boldxsl:textDate:__/xsl:text/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=PAGE_FOOTER fo:table border-collapse=collapse table-layout=fixed fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-column column-width=6.7cm/ fo:table-body fo:table-row fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=left font-weight=boldxsl:textMy Company Inc. /xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=centerxsl:textConfidential/xsl:text/fo:block /fo:table-cell fo:table-cell border-collapse=collapse padding-before=1pt padding-left=1pt padding-right=1pt padding-after=1pt fo:block text-align=rightPage fo:page-number/ of fo:page-number-citation ref-id=last-page//fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template name=BOOKMARKS xsl:for-each select=MYDATA fox:outline internal-destination={position()} fox:labelxsl:value-of select=@SomeField//fox:label /fox:outline /xsl:for-each /xsl:template xsl:template match=MYDATA . . . . . /xsl:template . . . . . - Original Message - From: Fischer Tibor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:47 PM Subject: bookmark Hello, How can i put entries into the bookmark of the pdf?? Thanks BR, Fishy