RE: page sequence question

2010-03-12 Thread Mario Madunic
Thanks for the insight Andreas.

I'll be looking at either using the strict-validation parameter or using the 
validate task in ANT to pump out a report of anything I have invalid in my FO. 
It will help me learn the spec better.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries


-Original Message-
From: Andreas Delmelle [mailto:andreas.delme...@telenet.be] 
Sent: Friday, March 12, 2010 11:06 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: page sequence question

On 12 Mar 2010, at 15:33, Pascal Sancho wrote:

Hi Mario, Pascal,

> FOP does validate XSL-FO when strict validation is turned on: see
> strict-validation parameter at [1].
> If  this is not the case for the force-page-count property, that should
> be considered as a FOP issue.
> If this the case, you may fill in a bug with a short attached XSL-FO
> testcase.

Note also that, according to the Rec, it is NEVER forbidden to have a given 
attribute/property on any given FO. 
This is especially useful to be able to specify inheritable properties on the 
fo:root (even if no properties apply to it).

So, according to XSL-FO, even if force-page-count does not apply to any FOs 
other than fo:page-sequence, it is never an error to specify it elsewhere. It 
will simply not have any effect.


Regards,

Andreas Delmelle
---


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or 
material transmitted with this communication) is confidential, may be 
privileged and is intended only for the use of the intended recipient. If you 
are not the intended recipient, any review, retransmission, circulation, 
distribution, reproduction, conversion to hard copy, copying or other use of 
this communication, information or material is strictly prohibited and may be 
illegal. If you received this communication in error or if it is forwarded to 
you without the express authorization of New Flyer, please notify us 
immediately by telephone or by return email and permanently delete the 
communication, information and material from any computer, disk drive, diskette 
or other storage device or media. Thank you.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: page sequence question

2010-03-12 Thread Andreas Delmelle
On 12 Mar 2010, at 15:33, Pascal Sancho wrote:

Hi Mario, Pascal,

> FOP does validate XSL-FO when strict validation is turned on: see
> strict-validation parameter at [1].
> If  this is not the case for the force-page-count property, that should
> be considered as a FOP issue.
> If this the case, you may fill in a bug with a short attached XSL-FO
> testcase.

Note also that, according to the Rec, it is NEVER forbidden to have a given 
attribute/property on any given FO. 
This is especially useful to be able to specify inheritable properties on the 
fo:root (even if no properties apply to it).

So, according to XSL-FO, even if force-page-count does not apply to any FOs 
other than fo:page-sequence, it is never an error to specify it elsewhere. It 
will simply not have any effect.


Regards,

Andreas Delmelle
---


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: page sequence question

2010-03-12 Thread Pascal Sancho
Mario,

FOP does validate XSL-FO when strict validation is turned on: see
strict-validation parameter at [1].
If  this is not the case for the force-page-count property, that should
be considered as a FOP issue.
If this the case, you may fill in a bug with a short attached XSL-FO
testcase.

[1]
http://xmlgraphics.apache.org/fop/0.95/configuration.html#general-elements

Pascal

Mario Madunic a écrit :
> Thanks Pascal, that did the trick.
>
> Here are my new s
>
>  initial-page-number="auto-odd" force-page-count="end-on-odd">...
>  initial-page-number="1" force-page-count="end-on-odd">...
>
> I would have never been able to figure that out without help. For me at least 
> there seems to be a disconnect between the name of the attribute and what it 
> is meant to do. I look at initial-page-number and think only a number is a 
> valid value. It's nice when FOP informs me when I have an illegal value used 
> in an attribute or even a misspelling of an attribute but at the moment it 
> doesn't seem to validate the FO. That is probably just an option I need to 
> turn on. If not, I'm adding a step in my ANT task to validate my FO output so 
> I can see where I have made an error as to its structure, especially 
> placement of attributes.
>
> Once again thanks Pascal. Your help is greatly appreciated.
>
> Marijan (Mario) Madunic
>
>
> -Original Message-
> From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
>
> Hi Mario,
>
> The force-page-count property applies only to fo:page-sequence.
> You can get whant you want by using the property initial-page-number on
> your fo:page-sequence objects.
> Note you may need a blank page in your alternative sets id FOP has to
> insert some extra blank pages, I.E. between TOP and Content sections.
>
> Pascal
>
>
> Mario Madunic a écrit :
>   
>> (Using FOP.95)
>>
>> I'm having trouble setting up the following page sequence between two 
>> sections.
>> Section TOC
>>   Starts odd
>>   Ends odd
>>   If TOC is only on one page no even page (start content on this page)
>>
>> Section Content
>>   Starts even
>>   Ends odd
>>
>> I've tried different things such as @break-before, @break-after, and 
>> @force-page-count. Whenever the TOC only has enough content for a single 
>> page, it creates an even page, which I do not want. Only to create an even 
>> page if there is enough content to flow onto a second page. This would also 
>> be the case if there are 3 or 5 pages also.
>>
>> Here are the page-sequence-masters I'm using
>>
>> > force-page-count="end-on-odd">
>>   
>> > master-reference="oddPage_TOC" />
>> > master-reference="evenPage_TOC" />
>>   
>> 
>>
>> > force-page-count="end-on-odd">
>>   
>> > master-reference="oddPage_Section" />
>> > master-reference="evenPage_Section" />
>>   
>> 
>>
>> Any help appreciated.
>>
>> Marijan (Mario) Madunic
>> 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: page sequence question

2010-03-12 Thread Mario Madunic
Thanks Pascal, that did the trick.

Here are my new s

...
...

I would have never been able to figure that out without help. For me at least 
there seems to be a disconnect between the name of the attribute and what it is 
meant to do. I look at initial-page-number and think only a number is a valid 
value. It's nice when FOP informs me when I have an illegal value used in an 
attribute or even a misspelling of an attribute but at the moment it doesn't 
seem to validate the FO. That is probably just an option I need to turn on. If 
not, I'm adding a step in my ANT task to validate my FO output so I can see 
where I have made an error as to its structure, especially placement of 
attributes.

Once again thanks Pascal. Your help is greatly appreciated.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries


-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: Friday, March 12, 2010 7:05 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: page sequence question

Hi Mario,

The force-page-count property applies only to fo:page-sequence.
You can get whant you want by using the property initial-page-number on
your fo:page-sequence objects.
Note you may need a blank page in your alternative sets id FOP has to
insert some extra blank pages, I.E. between TOP and Content sections.

Pascal


Mario Madunic a écrit :
> (Using FOP.95)
>
> I'm having trouble setting up the following page sequence between two 
> sections.
> Section TOC
>   Starts odd
>   Ends odd
>   If TOC is only on one page no even page (start content on this page)
>
> Section Content
>   Starts even
>   Ends odd
>
> I've tried different things such as @break-before, @break-after, and 
> @force-page-count. Whenever the TOC only has enough content for a single 
> page, it creates an even page, which I do not want. Only to create an even 
> page if there is enough content to flow onto a second page. This would also 
> be the case if there are 3 or 5 pages also.
>
> Here are the page-sequence-masters I'm using
>
>  force-page-count="end-on-odd">
>   
>  master-reference="oddPage_TOC" />
>  master-reference="evenPage_TOC" />
>   
> 
>
>  force-page-count="end-on-odd">
>   
>  master-reference="oddPage_Section" />
>  master-reference="evenPage_Section" />
>   
> 
>
> Any help appreciated.
>
> Marijan (Mario) Madunic
>   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or 
material transmitted with this communication) is confidential, may be 
privileged and is intended only for the use of the intended recipient. If you 
are not the intended recipient, any review, retransmission, circulation, 
distribution, reproduction, conversion to hard copy, copying or other use of 
this communication, information or material is strictly prohibited and may be 
illegal. If you received this communication in error or if it is forwarded to 
you without the express authorization of New Flyer, please notify us 
immediately by telephone or by return email and permanently delete the 
communication, information and material from any computer, disk drive, diskette 
or other storage device or media. Thank you.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: page sequence question

2010-03-12 Thread Pascal Sancho
Hi Mario,

The force-page-count property applies only to fo:page-sequence.
You can get whant you want by using the property initial-page-number on
your fo:page-sequence objects.
Note you may need a blank page in your alternative sets id FOP has to
insert some extra blank pages, I.E. between TOP and Content sections.

Pascal


Mario Madunic a écrit :
> (Using FOP.95)
>
> I'm having trouble setting up the following page sequence between two 
> sections.
> Section TOC
>   Starts odd
>   Ends odd
>   If TOC is only on one page no even page (start content on this page)
>
> Section Content
>   Starts even
>   Ends odd
>
> I've tried different things such as @break-before, @break-after, and 
> @force-page-count. Whenever the TOC only has enough content for a single 
> page, it creates an even page, which I do not want. Only to create an even 
> page if there is enough content to flow onto a second page. This would also 
> be the case if there are 3 or 5 pages also.
>
> Here are the page-sequence-masters I'm using
>
>  force-page-count="end-on-odd">
>   
>  master-reference="oddPage_TOC" />
>  master-reference="evenPage_TOC" />
>   
> 
>
>  force-page-count="end-on-odd">
>   
>  master-reference="oddPage_Section" />
>  master-reference="evenPage_Section" />
>   
> 
>
> Any help appreciated.
>
> Marijan (Mario) Madunic
>   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Extremely long time for processing some kind of tif in rtf.

2010-03-12 Thread lexa2009

any ideas? i have many such images
-- 
View this message in context: 
http://old.nabble.com/Extremely-long-time-for-processing-some-kind-of-tif-in-rtf.-tp27637399p27874543.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



page sequence question

2010-03-12 Thread Mario Madunic
(Using FOP.95)

I'm having trouble setting up the following page sequence between two sections.
Section TOC
  Starts odd
  Ends odd
  If TOC is only on one page no even page (start content on this page)

Section Content
  Starts even
  Ends odd

I've tried different things such as @break-before, @break-after, and 
@force-page-count. Whenever the TOC only has enough content for a single page, 
it creates an even page, which I do not want. Only to create an even page if 
there is enough content to flow onto a second page. This would also be the case 
if there are 3 or 5 pages also.

Here are the page-sequence-masters I'm using


  


  



  


  


Any help appreciated.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries



Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or 
material transmitted with this communication) is confidential, may be 
privileged and is intended only for the use of the intended recipient. If you 
are not the intended recipient, any review, retransmission, circulation, 
distribution, reproduction, conversion to hard copy, copying or other use of 
this communication, information or material is strictly prohibited and may be 
illegal. If you received this communication in error or if it is forwarded to 
you without the express authorization of New Flyer, please notify us 
immediately by telephone or by return email and permanently delete the 
communication, information and material from any computer, disk drive, diskette 
or other storage device or media. Thank you.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Use of soft hyphen causes IllegalArgumentException in some cases

2010-03-12 Thread Pascal Sancho
Hi Matthias,

If the exception occurs only when the patch is applied,  you should add
any comment and/or testcase (as attachment) directly to the bug entry.

Pascal

Matthias Reischenbacher a écrit :
> Hi,
>
> I think the changes introduced in FOP trunk by the patch of bugzilla 
> entry #48071 are causing an IllegalArgumentException in some cases. 
> Specifically the exception occurs when a soft hyphen character is used 
> and it is surrounded by white spaces. I know that this doesn't make much 
> sense because the white space would trigger a linebreak anyway but I 
> think it would be better to log a warn message instead of throwing the 
> exception.
>
> Attached you'll find a sample fo file which reproduces the error.
>
> Should I add a new bugzilla entry? Can anyone fix this please?
>
> Regards,
> Matthias Reischenbacher
>   


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: java.lang.IllegalArgumentException: Only non-null Positions with an index can be checked

2010-03-12 Thread Pascal Sancho
Gregory,

I can run your FO file without any exception, either with FOP 0.95, or
with FOP TRUNK (latest rev).
I notice that your log message is not like what I can see when I run
directly FOP, and the exception is thrown by
   org.eightfoldconsulting.nimas2pdf.XMLConverter.convertFO2PDF(),
 witch is not part of the FOP code.
Can you check the actual source of the exception?
If it comes from FOP, that would help to give the original one.

Pascal


Gregory Buchenberger a écrit :
> Pascal,
>
> I am running fop.jar from the latest revision in Trunk. I just updated
> and recompiled to be sure. I'm using fop.jar and it's supporting
> libraries in a java application. I'm running Windows Vista 64bit and
> have alloted -Xms128m -Xmx1500m to the JVM version1.6.0_16. I've
> attached my log file in the hopes that it may be of help.
>
> I still get the error. In the log I have:
>
> 
>   2010-03-11T17:34:46
>   1268354086853
>   132
>   org.eightfoldconsulting.nimas2pdf.XMLConverter
>   SEVERE
>   org.eightfoldconsulting.nimas2pdf.XMLConverter
>   convertFO2PDF
>   11
>   java.lang.IllegalArgumentException: Only non-null Positions
> with an index can be checked
> 
>
> Are you able to produce a PDF from the FO that I sent without error?
> If so, what revision are you using?
>
> Thank you all for your help.
>
> Kind Regards,
>
> Gregory Buchenberger, CDIA+, ECMs
>
>
> On Thu, Mar 11, 2010 at 3:09 AM, Pascal Sancho  
> wrote:
>   
>> Hi Gregory,
>>
>> I cannot reproduce the exception with that material.
>> Can you describe your environment (comprising jar coming with FOP) ?
>> What FOP SVN revision do you use?
>> When invoking FOP feeded with an XSL-FO, is there a file location in the
>> log:
>>  if yes, that should help to retreive the faulty formatting object, if any
>>
>> Pascal
>> 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org