irene23 | 1 Jan 2008 22:19
Picon
Picon
Favicon

page-position="last" doesn't work for 1 page document


Hello,

I have two page-masters defined, with one having a different footer than the
other.

When this renders to a 2+ page document, the last page gets the last footer
and the other pages get the other footer.

When it renders to a 1 page document, I get the "any" page footer, even
though the the page is the last page....

I've posted on nabble.com, and gotten replies that it is possibly a bug.

<fo:layout-master-set> 
  <fo:simple-page-master master-name="default-page" 
                         page-height="11in" 
                         page-width="8.50in" 
                         margin-top="0.25in" 
                         margin-left="0.25in" 
                         margin-right="0.25in" 
                         margin-bottom="0.25in"> 
<!-- space needed for header & footer tables --> 
  <fo:region-body           
   region-name="body" 
   margin-top="0in" 
                         margin-bottom="1.50in"/> 
  <fo:region-before region-name="header" extent="10.0in"/> <!-- space needed 
for header table --> 
  <fo:region-after region-name="footer" extent="1.50in"/> <!-- space needed 
(Continue reading)

Vincent Hennebert | 2 Jan 2008 12:09
Favicon

Re: svn commit: r607261 - in /xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/cli: AreaTreeInputHandler.java CommandLineOptions.java ImageInputHandler.java InputHandler.java image2fo.xsl

Hi Jeremias,

> Author: jeremias
> Date: Fri Dec 28 07:11:56 2007
> New Revision: 607261
> 
> Modified: 
> xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/cli/CommandLineOptions.java
>  <at>  <at>  -768,6 +783,20  <at>  <at> 
>                                                + areatreefile.getAbsolutePath()
>                                                + " not found ");
>              }
> +        } else if (inputmode == IMAGE_INPUT) {
> +            if (outputmode.equals(MimeConstants.MIME_XSL_FO)) {
> +                throw new FOPException(
> +                        "FO output mode is only available if you use -xml and -xsl");
> +            }
> +            if (xmlfile != null) {
> +                log.warn("area tree input mode, but XML file is set:");
                             ^^^^^^^^^^^^^^^^^^^^
Copy-paste error? Only had a quick look, but this should probably be 
replaced with “image input mode”?

Vincent

--

-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

(Continue reading)

Vincent Hennebert | 2 Jan 2008 12:18
Favicon

Re: svn commit: r607188 - /xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/FOTreeBuilder.java

Hi,

> URL: http://svn.apache.org/viewvc?rev=607188&view=rev
> Log:
> Throwing IllegalStateException causes a prior exception to be swallowed by Xalan-J. Need to throw a
SAXException instead.
> Instead of logging an error about the element mismatch throw a SAXException because the logging only
confuses the user as it's practically always a follow-up exception of an exception happening earlier in
the respective startElement() event.
> Modified: 
> xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/FOTreeBuilder.java
<snip/>
> +        /** { <at> inheritDoc} */
>          public void endElement(String uri, String localName, String rawName)
>                      throws SAXException {
>              if (currentFObj == null) {

How can currentFObj be null in the first place? Normally it was set in 
the previous startElement event (or a ValidationException has been throw 
anyway)?

Vincent

--

-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

bugzilla | 2 Jan 2008 12:53
Picon
Favicon

DO NOT REPLY [Bug 44160] New: - IndexOutOfBoundsException when creating pdf

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44160>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160

           Summary: IndexOutOfBoundsException when creating pdf
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev <at> xmlgraphics.apache.org
        ReportedBy: bhaje <at> gmx.de

Hi,

I create a FO-file from a pretty large docbook-xml (60 pages so far)
with saxon (or xslt - doesn't matter) whith the docbook-xsl-1.71.1
stylesheets.
After that I use fop to convert it to pdf. I used 0.94 and the svn trunk
version - with both I occasionally run into the error below.

I was able to track the error down to the attached file
(http://www.nabble.com/file/p14488145/tmp_sip.xml.fo).
(Continue reading)

bugzilla | 2 Jan 2008 12:55
Picon
Favicon

DO NOT REPLY [Bug 44160] - IndexOutOfBoundsException when creating pdf

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44160>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44160

------- Additional Comments From bhaje <at> gmx.de  2008-01-02 03:55 -------
Created an attachment (id=21337)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21337&action=view)
Test file which causes the error

--

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Adrian Cumiskey | 3 Jan 2008 11:27
Picon

Re: truetype font support for AFP

As I said in my previous response, FOP doesn't currently support truetype fonts for AFP output.

Your question doesn't sound like it is XSL FO or FOP related so this is probably the wrong forum.  I
suggest you contact IBM directly.

Adrian.

falchionli wrote:
> Adrian Cumiskey,
> 
> 
> I'm studying how to use truetype font in AFP document these days.
> In IBM's document, it says it need a "Font Installer for AFP Systems" to install truetype font in AFP systems.
> But when I search this installer in IBM site, it need to place an order to get this software. why?
> Does anyone has this software, or is there any where else to download "Font Installer for AFP Systems"?
> 
>   
> 
> ======= 2007-11-28 You wrote:=======
> 
>> This work is not under development as far as I know.  From my understanding I believe AFP FOCA
>> doesn't support it, but I believe it is possible to embed true type fonts as a Data Object Resource
>> so I guess this will be covered somewhere in the MOD:CA reference.
>>
>> Good luck,
>>
>> Adrian.
>>
>> falchionli wrote:
>>> Jeremias Maerki,
(Continue reading)

bugzilla | 3 Jan 2008 15:18
Picon
Favicon

DO NOT REPLY [Bug 40798] - page-position="last" doesn't work for 1 page document

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40798>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40798

------- Additional Comments From basura2400 <at> yahoo.es  2008-01-03 06:18 -------
Hi,

I have been searching a solution for this bug but it's impossible!!! I think 
the only solution will be implement page-position="only" (which is a XSL 1.1 
feature)in the next version of FOP.

--

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

J.Pietschmann | 5 Jan 2008 23:28
Picon
Favicon

Java 1.4 compatibility

Hi devs,

I just started to import a FOP project into my brand new shiny
Eclipse installation on Debian Etch, and quickly found out that
I unexpectedly signed up for checking FOP's 1.4 compatibility.
There are numerous assert statements in files related to table
layout. Should I just comment them out?

J.Pietschmann

bugzilla | 7 Jan 2008 08:08
Picon
Favicon

Bug report for Fop [2008/01/06]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker     CRI=Critical    MAJ=Major             |
|     |   |           MIN=Minor       NOR=Normal      ENH=Enhancement       |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
| 1063|New|Nor|2001-03-21|fop does not handle large fo files                |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work                         |
| 3824|New|Blk|2001-09-25|MIF option with tables                            |
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG               |
| 5010|New|Enh|2001-11-21|Better error reporting needed                     |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem            |
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images      |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 8767|Ass|Min|2002-05-03|Image and solid colour background rectangle sizes |
| 9379|New|Nor|2002-05-24|MIF Renderer generates incorrect MIF code         |
|10379|New|Enh|2002-07-01|Improvement to FOP Classloader                    |
|12494|New|Nor|2002-09-10|fop produces pdf file which Acrobat Reader refuses|
(Continue reading)

Jeremias Maerki | 7 Jan 2008 09:21
Picon
Gravatar

Re: svn commit: r607188 - /xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/FOTreeBuilder.java

It could be null if the caller violates the ContentHandler contract. The
question should be: Should we validate the ContentHandler contract with
check code of our own? But that's an academic question because the check
is barely noticeable at runtime.

On 02.01.2008 12:18:18 Vincent Hennebert wrote:
> Hi,
> 
> > URL: http://svn.apache.org/viewvc?rev=607188&view=rev
> > Log:
> > Throwing IllegalStateException causes a prior exception to be swallowed by Xalan-J. Need to throw a
SAXException instead.
> > Instead of logging an error about the element mismatch throw a SAXException because the logging only
confuses the user as it's practically always a follow-up exception of an exception happening earlier in
the respective startElement() event.
> > Modified: 
> > xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/FOTreeBuilder.java
> <snip/>
> > +        /** { <at> inheritDoc} */
> >          public void endElement(String uri, String localName, String rawName)
> >                      throws SAXException {
> >              if (currentFObj == null) {
> 
> How can currentFObj be null in the first place? Normally it was set in 
> the previous startElement event (or a ValidationException has been throw 
> anyway)?
> 
> Vincent
> 
> 
(Continue reading)


Gmane