Re: PDF size reduction

2017-05-16 Thread Peter Hansson
Hi Spoorthi
Another angle:
I've found SVGs to be MUCH MORE efficient in terms of space usage. Try to see 
if you have those logos in SVG format instead and see if it helps.
The added bonus of doing this is that image still looks nice even when the 
end-user is using the zoom function when looking at the PDF document.
SVGs cannot do everything that say JPEG can. For example Apache FOP doesn't 
have support for SVGs that use gradients. However, I've found that most 
corporate logos aren't that advanced and they typically work well with SVG 
format.
Give it a try. 
For example something like this:
 


Peter

 

On Tuesday, May 16, 2017 6:55 PM, Frank Hirsch  wrote:
 

 Personally I use Apache FOP for some projects - but I am not quite an expert 
when it comes to Java…
As far as I understand you may want to adjust the image resolution/compression 
to shrink the size of the files used in you FO - but I am not sure if this can 
be done automatically using a different image handling subsystem 
(https://xmlgraphics.apache.org/fop/0.95/graphics.html). Changing the color 
space may only affect the color profile/representation, but I don’t think this 
will preprocess the image size at all (sRGB is just a smaller gamut than Adobe 
RGB and RGB) - you may just get a different representation of colors outside 
the given gammut!
>From my perspective, it’s the same thing as placing an image in a layout 
>software: the image will be used „as is“. Only when it comes to write the PDF 
>you may have the ability to „donwsample“ all images to a given resolution 
>relative to the size in the layout…
- One solution might be to adjust the images to a proper size and compression 
accordingly to the layout- Alternatively you may „optimize“ the PDF for 
internet use: resample, compress and remove duplicates (images used multiple 
times)
Just a few ideas which may help if there is no native solution in Apache FOP 
;-)If there is no working solution in FOP, I may send you a link to a freeware 
to optimize the final PDF
The FOP guys may forgive me if I am completely wrong ;-)
Best,Frank

Am 16.05.2017 um 17:50 schrieb spoorthi myneni - TECRA 
:

Hi Team,
We have a requirement to reduce the size of the PDF size from 
200Kb(approximately) to as less as possible. There are 5 images in the PDF that 
I am using. 
PDF size without images is coming up to 40Kb. Each Image size(jpegs): CCX logo- 
60Kb, 3 small images: 18kb each, SMS logo - 50Kb approximately.
The PDF size is increased as mush as the image size is. Is there a way for us 
to optimize the image size or the PDF size in FO?I have already set this 
property: true

Please let me know if there are any techniques to achieve this. Has there been 
any enhancements done in the FOP 2.0?
Thank you,Spoorthi


   

Re: My PDF is 50x larger than it needs to be!

2017-01-20 Thread Peter Hansson
Unfortunately this was wrong. Apparently something has happened in Trunk 

that makes it realize if body content is the same or it can compress or
whatever.

In any case when I make my content on each page different 

(rather than just a simple 'X' on each page) then I'm kinda back 

where the PDF file becomes 50 times too big. My test case now use 

the body text "Page xx" (where xx is a number 1-50) on every page 

just as to be sure that content is actually different
on each page. 


Darn. I thought this was fixed. I've logged FOP-2681 in JIRA.
(https://issues.apache.org/jira/browse/FOP-2681).


Thanks 


Peter






> On Friday, January 20, 2017 1:41 PM, Peter Hansson 
>  wrote:
> > Happy to report that this is fixed in trunk.
> 
> 
> On my simple XSL which generates 50 pages, the resulting PDF size is now 196 
> KB 
> when using fop v2.1, but only 21 KB when using fop trunk. (as of today)
> 
> 
> So clearly, something has happened since v2.1 was released in jan 2016. 
> Thanks 
> for this. Whatever you did this is *not* an insignificant bug fix.
> 
> 
> Hoping for an official 2.2 release soon.
> 
> 
> Thanks
> 
> Peter
> 
> 
> 
> 
> 
> 
> 
>>  On Friday, January 20, 2017 12:24 PM, Simon Steiner 
>  wrote:
>>  > Hi,
>> 
>>  If you get the issue on fop trunk then you can raise a bug about it on 
> jira.
>> 
>>  Thanks
>> 
>>  -Original Message-
>>  From: Peter Hansson [mailto:peterhansson...@yahoo.com.INVALID] 
>>  Sent: 20 January 2017 11:16
>>  To: fop-users@xmlgraphics.apache.org
>>  Subject: My PDF is 50x larger than it needs to be!
>> 
>>  I'm adding an SVG logo to every page of a document in a 
>>   element and notice that the logo gets 
>>  "inlined" on every page, rather than appearing 
>> 
>>  only once in the PDF file and then referenced when used on each page. 
>> 
>>  Thus the size of the PDF balloons with number of pages. Ouch! 
>> 
>> 
>>  Here's what I do:
>> 
>> 
>>  http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics
>> 
>> 
>> 
>>  As can be seen there's only a single character on each page (Just to 
> make 
>>  the example simple). If I from this generate a 2 page PDF document it will 
> be 13 
>>  KB, but if 
>> 
>>  I generate a similar 50 page document it will be 215 KB !!
>> 
>>  I would have expected the two PDF document to be almost the same size.
>> 
>>  How can I achieve that the logo (or header as a whole) is re-used and 
> referenced 
>>  instead of inlined for each and every page?
>> 
>> 
>>  By the way: Not using vector graphics is not an option for me.
>> 
>> 
>>  Apache FOP 2.1, Java 8, PDF output
>> 
>> 
>> 
>> 
>>  Thanks 
>> 
>>  Peter
>> 
>>  -
>>  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>> 
>> 
>> 
>> 
>>  -
>>  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
>> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 

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



Re: My PDF is 50x larger than it needs to be!

2017-01-20 Thread Peter Hansson
Happy to report that this is fixed in trunk.


On my simple XSL which generates 50 pages, the resulting PDF size is now 196 KB 
when using fop v2.1, but only 21 KB when using fop trunk. (as of today)


So clearly, something has happened since v2.1 was released in jan 2016. Thanks 
for this. Whatever you did this is *not* an insignificant bug fix.


Hoping for an official 2.2 release soon.


Thanks

Peter







> On Friday, January 20, 2017 12:24 PM, Simon Steiner 
>  wrote:
> > Hi,
> 
> If you get the issue on fop trunk then you can raise a bug about it on jira.
> 
> Thanks
> 
> -Original Message-
> From: Peter Hansson [mailto:peterhansson...@yahoo.com.INVALID] 
> Sent: 20 January 2017 11:16
> To: fop-users@xmlgraphics.apache.org
> Subject: My PDF is 50x larger than it needs to be!
> 
> I'm adding an SVG logo to every page of a document in a 
>  element and notice that the logo gets 
> "inlined" on every page, rather than appearing 
> 
> only once in the PDF file and then referenced when used on each page. 
> 
> Thus the size of the PDF balloons with number of pages. Ouch! 
> 
> 
> Here's what I do:
> 
> 
> http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics
> 
> 
> 
> As can be seen there's only a single character on each page (Just to make 
> the example simple). If I from this generate a 2 page PDF document it will be 
> 13 
> KB, but if 
> 
> I generate a similar 50 page document it will be 215 KB !!
> 
> I would have expected the two PDF document to be almost the same size.
> 
> How can I achieve that the logo (or header as a whole) is re-used and 
> referenced 
> instead of inlined for each and every page?
> 
> 
> By the way: Not using vector graphics is not an option for me.
> 
> 
> Apache FOP 2.1, Java 8, PDF output
> 
> 
> 
> 
> Thanks 
> 
> Peter
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 

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



My PDF is 50x larger than it needs to be!

2017-01-20 Thread Peter Hansson
I'm adding an SVG logo to every page of a document in a  
element
and notice that the logo gets "inlined" on every page, rather than appearing 

only once in the PDF file and then referenced when used on each page. 

Thus the size of the PDF balloons with number of pages. Ouch! 


Here's what I do:


http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics



As can be seen there's only a single character on each page (Just to make the 
example
simple). If I from this generate a 2 page PDF document it will be 13 KB, but if 

I generate a similar 50 page document it will be 215 KB !!

I would have expected the two PDF document to be almost the same size.

How can I achieve that the logo (or header as a whole) is re-used and referenced
instead of inlined for each and every page?


By the way: Not using vector graphics is not an option for me.


Apache FOP 2.1, Java 8, PDF output




Thanks 

Peter

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



How to re-use header/footer

2016-12-20 Thread Peter Hansson
I'm adding an SVG logo to every page of a document and notice that the logo 
gets "inlined" on every page, rather than appearing only once in the PDF file 
and then referenced when used on each page. Thus the size of the PDF balloons 
with number of pages. Ouch!

Here's what I do:


http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";
  xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp"  
  >
    
    
    
    
    
    
      
    
    

    


    
    
    
    
    
    

    
    
    
     X 
     X 

    
    
    
    


As can be seen there's only a single character on each page. If I from the 
above generate a 2 page PDF document it will be 13.01 KB and if I generate a 48 
page document it will be 206.56 KB. I would have expected the two PDF document 
to be almost the same size.

How can I achieve that the logo (or header as a whole) is re-used and 
referenced instead of inlined ? By the way: Not using vector graphics is not an 
option for me.

Apache FOP 2.1, Java 8.

(this question also on Stackoverflow: 
http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics)

Thanks

Peter


changing the look of the PDF output by FOP

2016-01-31 Thread Peter Michaux
Hi,

I'm new to FOP and feeling a little disoriented about the correct way to
change the look of the PDF that is output by FOP.

My source is an AsciiDoc text file and I have no trouble converting that to
a Docbook XML file.

$ asciidoc --backend=docbook45 book.txt

I can then use the fop command line tool to convert to a PDF file.

$ fop-2.1/fop -xml book.xml \
  -xsl docbook-xsl-ns-1.79.1/fo/docbook.xsl \
  -pdf book.pdf

The default look of the produced book.pdf is nice but I'd like to adjust
font families, font sizes, margins, etc.

I did discover one way to customize the fonts by creating a fop.xconf file
with the following content



















and then using the following command

$ fop-2.1/fop -c fop.xconf\
  -xml book.xml   \
  -xsl docbook-xsl-ns-1.79.1/fo/docbook.xsl   \
  -param body.font.family Minion-Regular  \
  -param title.font.family Myriad-Condensed   \
  -param monospace.font.family Andale-Mono\
  -pdf book.pdf

Even though the above font setting technique was something I learned from a
blog on the Web, at this point, I'm already unsure if I'm going in the
right to doing this kind of customization properly or not. I imagine there
is a better way to than passing a growing number of parameters to the fop
command line tool.

Then I tried to see if I could have an affect on margins and the footer
font.

$ fop-2.1/fop -c fop.xconf\
  -xml book.xml   \
  -xsl docbook-xsl-ns-1.79.1/fo/docbook.xsl   \
  -param body.font.family Minion-Regular  \
  -param title.font.family Myriad-Condensed   \
  -param page.margin.top 0\
  -param footer.content.font-family Helvetica \
  -param monospace.font.family Andale-Mono\
  -pdf book.pdf

The page.margin.top param did work. A small success!

The footer.content.font-family param did not work. I also tried
footer.content.properties.font-family, footer.content.font.family, and
footer.content.properties.font.family without finding the right solution.

What's the right way to configure things so fop is outputting the PDF I
dream of sharing with folks?

Thanks!

Peter


Re: fop-users@xmlgraphics.apache.org

2015-09-30 Thread Peter Coppens
See http://www.dpawson.co.uk/xsl/sect3/N8703.html 
<http://www.dpawson.co.uk/xsl/sect3/N8703.html>


http://www.w3.org/1999/XSL/Format";>









page 


 I would like to see page XX on top 
    
    





Peter

> On 30 Sep 2015, at 21:53, Franz de Copenhague  
> wrote:
> 
> It didn't help. It throws this exception: SEVERE: Invalid property value 
> encountered in initial-page-number="XX": 
> org.apache.fop.fo.expr.PropertyException
> 
> I wish could be an attribute similar to:
> 
>  page-number-style= "upper-roman">
> 
> Franz
> To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org>
> From: rsarg...@xmission.com <mailto:rsarg...@xmission.com>
> Date: Wed, 30 Sep 2015 13:35:26 -0600
> Subject: Re: fop-users@xmlgraphics.apache.org 
> <mailto:fop-users@xmlgraphics.apache.org>
> 
> Did you try
> initial-page-number="XX"
> ?
> 
> On 09/30/2015 01:34 PM, Franz de Copenhague wrote:
> This is my first question to the list.
> 
> I did try to google the way to have page numbers with roman numbers but I 
> couldn't figure it out.
> 
> Would you modify the example below to illustrate me how to achieve roman page 
> numbers?
> 
> 
> http://www.w3.org/1999/XSL/Format 
> <http://www.w3.org/1999/XSL/Format>">
> 
>  page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" 
> margin-right="2.5cm">
> 
> 
> 
> 
> 
> 
> 
> page 
> 
> 
>  I would like to see page XX on top 
> 
> 
> 
> 
> 
> 
> Thanks,
> Franz 



Re: How to use FOP with MAVEN?

2015-06-16 Thread Peter
Hi,

tried it using "maven-antrun-plugin".

[cannot post the xml because a problem with gmane web interface :-( ]

The "outfile" parameter is ignored - is this a restriction of "fop" or the
plugin?


Regards
Peter


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



Re: How to use FOP with MAVEN?

2015-06-16 Thread Peter
Hello Michael,

sorry, I don't want to use a Java application at all for transformation, but
rather a build plugin to just do sth. like this command line:

fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
(copied from http://xmlgraphics.apache.org/fop/quickstartguide.html)

It'd probably look like:


   fop
   ???
   xml/name.xml
   resources/name2fo.xsl
   pdf
   name.pdf


This is just an idea - not the real code, because I'm asking for that! ;-)

Kind regards
Peter



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



How to use FOP with MAVEN?

2015-06-16 Thread Peter
Hello,

I want to use FOP with Maven, but cannot find any examples searching the
internet.

Exactly, I want to use sth. like this:

src
 |
 +-- main
  |
  +-- xml (for my contents, *.xml)
  |
  +-- resources (containing my xsl:fo-stylesheet, e.g. my.xsl)

How can I activate FOP to use these files for generation of one or more PDF
files?

Extensions:
- How to tell FOP, which files to collect into one distinct PDF document?

Kind regards
Peter


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



Re: Rendering svg instream foreign object to pdf gives wrong result when svg contains dy on text

2015-04-20 Thread Peter Coppens
Hi Christoffer

Thanks for taking the time to look into this. Don’t think it is related to 
units, but I did notice that whenever I use a fop font (e.g. by making sure the 
font resolution fails and a default is used) as opposed to a macos one, it does 
seem to work.

So, seems font file/processing related

Peter

> On 19 Apr 2015, at 13:25, Christoffer Bruun  wrote:
> 
> Forgot to cc you directly
> 
> 
>  Videresendt meddelelse 
> Subject:  Re: Rendering svg instream foreign object to pdf gives wrong 
> result when svg contains dy on text
> Date: Sun, 19 Apr 2015 13:19:35 +0200
> From: Christoffer Bruun  <mailto:cdbr...@flyingpigs.dk>
> To:   fop-users@xmlgraphics.apache.org 
> <mailto:fop-users@xmlgraphics.apache.org>
> 
> Hi Peter,
> 
> Could it be some sort of unit confusion?
> 
> You are using unit-less x and y attributes, but dy is given in px
> 
> /Christoffer
> 
> 
> 
> Den 15-04-2015 kl. 22:14 skrev Peter Coppens:
>> Hello 
>> 
>> I have a svg that has a text element positioned with a dy attribute. When 
>> the svg is displayed in the browser or rendered to a png using batik, the dy 
>> is taken into account, but when using fop to render to pdf it is not.
>> 
>> Attached the fo file, the resulting pdf and the png as rendered by batik.
>> 
>> Is there something wrong with the fo input or is the pdf transcoder not 
>> support the dy attribute?
>> 
>> All tips welcomed!
>> 
>> Tx
>> 
>> Peter
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
>> <mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 
>> <mailto:fop-users-h...@xmlgraphics.apache.org>
> 
> 



Rendering svg instream foreign object to pdf gives wrong result when svg contains dy on text

2015-04-15 Thread Peter Coppens
Hello 

I have a svg that has a text element positioned with a dy attribute. When the 
svg is displayed in the browser or rendered to a png using batik, the dy is 
taken into account, but when using fop to render to pdf it is not.

Attached the fo file, the resulting pdf and the png as rendered by batik.

Is there something wrong with the fo input or is the pdf transcoder not support 
the dy attribute?

All tips welcomed!

Tx

Peter







dyissue.fo
Description: Binary data


dyissue.pdf
Description: Adobe PDF document

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

Re: Drastic Performance Improvement by dropping xerces and xalan

2014-05-20 Thread Peter
As you both suspected, the performance difference is related to the
stylesheet transformation. We have now found the origin: It was a
 with a "//..." selector. When we change it to something
better (in our case /*/... was the better expression) the performance of the
jdk xalan and the one shipped with fop was the same.

Peter




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Drastic-Performance-Improvement-by-dropping-xerces-and-xalan-tp40586p40651.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



Re: Drastic Performance Improvement by dropping xerces and xalan

2014-05-16 Thread Peter
Actually, we are using -xsl and -xml as input.


Glenn Adams-2 wrote
> Personally, I support removing all XSLT functions from FOP, but I'm afraid
> that would cause many users to find it less useful. I think it was a
> serious architectural error to combine those functions in the first place,
> but that horse left the gate long ago.
> 
> 
> On Tue, May 13, 2014 at 4:18 AM, Peter <

> p.kullmann@

> > wrote:
> 
>> We had some performance problems with fop and began to investigate. For a
>> specific example document of about 400 pages fop took about 55 seconds on
>> a
>> server at a client. The same process was much faster in our own setting
>> (taking about 11 seconds). What we found out is the following:
>>
>> - fop from the distribution (either 1.1 release or 1.2 snapshot) takes 55
>> seconds
>> - fop from the suse package takes only 11 seconds
>>
>> The two configurations differ in the jars: The suse config does not
>> include
>> xercesImpl, xalan and serializer
>>
>> We are running
>> java version "1.7.0_40"
>> OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64)
>> OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)
>>
>> So, removing these three libraries drastically improved performance for
>> us.
>>
>> Can someone explain why this is so? Can I safely drop these jars?
>>
>> Best regards
>> Peter
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-fop.1065347.n5.nabble.com/Drastic-Performance-Improvement-by-dropping-xerces-and-xalan-tp40586.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: 

> fop-users-unsubscribe@.apache

>> For additional commands, e-mail: 

> fop-users-help@.apache

>>
>>





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Drastic-Performance-Improvement-by-dropping-xerces-and-xalan-tp40586p40597.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



Drastic Performance Improvement by dropping xerces and xalan

2014-05-13 Thread Peter
We had some performance problems with fop and began to investigate. For a
specific example document of about 400 pages fop took about 55 seconds on a
server at a client. The same process was much faster in our own setting
(taking about 11 seconds). What we found out is the following:

- fop from the distribution (either 1.1 release or 1.2 snapshot) takes 55
seconds
- fop from the suse package takes only 11 seconds

The two configurations differ in the jars: The suse config does not include
xercesImpl, xalan and serializer

We are running 
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

So, removing these three libraries drastically improved performance for us.

Can someone explain why this is so? Can I safely drop these jars?

Best regards
Peter




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Drastic-Performance-Improvement-by-dropping-xerces-and-xalan-tp40586.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



Re: Set metadata to hint the PDF viewer not to scale the content when printing

2014-02-07 Thread Peter Hopfgartner
Hi Pascal,

thank you for your accurate reply. I've created 
https://issues.apache.org/jira/browse/FOP-2338.

Regards,

Peter Hopfgartner
R3 GIS
http://www.r3-gis.com



Am 07.02.2014 um 09:34 schrieb Pascal Sancho:

> Hi,
> 
> AFAICK, there is no such feature in FOP.
> 
> Currently, you can post-process your PDF with iText for that (see [1])
> 
> Also, you can open a Jira ticket to suggest this feature as Enhancement.
> 
> [1] 
> http://api.itextpdf.com/itext/com/itextpdf/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference%28com.itextpdf.text.pdf.PdfName,%20com.itextpdf.text.pdf.PdfObject%29
> 
> 2014-02-06 14:09 GMT+01:00 Peter Hopfgartner :
>> Hi all
>> 
>> I would like to print some technical drawings, where an accurate control of
>> the printing scale matters. As it seems, most PDF viewers rescale the
>> content, in order to respect the printer margins, usually by some percent.
>> 
>> AS stated in
>> http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling,
>> the metadata of the document can be set, in order to hint the viewer not to
>> scale the image.
>> 
>> Can this be controlled from FOP?
> 
> 
> -- 
> pascal
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 



Set metadata to hint the PDF viewer not to scale the content when printing

2014-02-06 Thread Peter Hopfgartner
Hi all

I would like to print some technical drawings, where an accurate control of the 
printing scale matters. As it seems, most PDF viewers rescale the content, in 
order to respect the printer margins, usually by some percent.

AS stated in 
http://stackoverflow.com/questions/4725711/set-pdf-to-print-with-no-scaling, 
the metadata of the document can be set, in order to hint the viewer not to 
scale the image.

Can this be controlled from FOP?

Regards,

Peter


Peter Hopfgartner
R3 GIS
http://www.r3-gis.com





Re: fop-ttfreader - output bounding box information for characters?

2013-01-08 Thread Peter Hancock
Hi Alexey,

I am happy to apply the patch and I have done something equivalent to this
as part of the the project to configure Batik to use custom fonts.

Going forward, we hope to allow Batik to directly use Font provided by FOP
when converting SVG to Java2D drawing commands.  FOP will render text
natively with no need to pre-embed the Font into the SVG.  As mentioned
this is a fairly involved piece of work that may even lead to a new Font
library in XML Graphics, see http://markmail.org/thread/hkclkqaxlfh5wwvu.

Thanks,

Peter


On Tue, Jan 8, 2013 at 8:10 AM, Chris Bowditch
wrote:

> On 08/01/2013 07:52, Alexey Neyman wrote:
>
>>
>> Hi Chris,
>>
>>
> Hi Alexey,
>
>
>  On Monday, January 07, 2013 11:44:46 AM Chris Bowditch wrote:
>>
>> >>>> Patch from pMML2SVG, slightly modified to apply to FOP 1.1 sources,
>>
>> >>>> attached.
>>
>> >>>
>>
>> >>> Thanks for the patch. To get this added to the code base please raise
>> an
>>
>> >>> issue in JIRA, add the diff as an attachment and include [PATCH] in
>> the
>>
>> >>> subject line. A committer will then review the patch before applying
>> it.
>>
>> >>
>>
>> >> Created an issue:
>>
>> >> https://issues.apache.org/**jira/browse/FOP-2180<https://issues.apache.org/jira/browse/FOP-2180>
>>
>> >
>>
>> > Thank you.
>>
>> So, can this patch be reviewed/integrated?
>>
>>
> That shouldn't be a problem. As I indicated Peter is working in a similar
> area right now, so I will ask him if he can take a look.
>
>
>  > >> I know Peter Hancock is looking into doing something similar as he is
>>
>> > >> working on getting Batik to use FOP configured fonts instead of the
>>
>> > >> system ones. Peter mentioned to me offlist that he was going to need
>> to
>>
>> > >> expose a few extra things in TTFReader to facilitate this, could be
>> you
>>
>> > >> are covering similar ground here.
>>
>> > >
>>
>> > > Maybe. Then again, the root of the issue is not Batik - that issue I
>> work
>>
>> > > around by embedding fonts. It is JEuclid's use of system fonts which
>> is
>>
>> > > why I am switching to pMML2SVG - which needs bounding box information
>> for
>>
>> > > glyphs.
>>
>> > >
>>
>> > > BTW, another useful feature in pMML2SVG that was not available in
>> JEuclid
>>
>> > > is that pMML2SVG outputs baseline position information in the
>> generated
>>
>> > > SVG - so that inline equations can be properly positioned on the line.
>>
>> >
>>
>> > Sounds like we need a FOP plug-in for pMML2SVG to replace the ageing
>>
>> > JEuclid one.
>>
>> Pardon my ignorance, but what is FOP using for the XSL transformation? Is
>> it Xalan-based? In that case, it probably won't be sufficient: pMML2SVG
>> requires XSLT 2.0, which, as far as I understand, is only supported by
>> Saxon.
>>
>>
> You can use whichever XSLT processor you choose with FOP, as long as you
> feed FOP with XSL-FO.
>
>
> Thanks,
>
> Chris
>
>  Regards,
>>
>> Alexey.
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> fop-users-unsubscribe@**xmlgraphics.apache.org
> For additional commands, e-mail: 
> fop-users-help@xmlgraphics.**apache.org
>
>


Re: PNG in FOP .95

2012-07-22 Thread Peter D Sparkes
The problem seems to be that the server is not finding the png codec. However, I don't know were it 
should be installed on the server or where to get it from


Peter

On 15/07/2012 18:55, Luis Bernardo wrote:


Looks like you are using an URL (HTTP ERROR 500...) to reference the image. Error 500 is an 
internal server error.


Are you sure the issue is with FOP?

On 7/15/12 10:45 AM, Peter D Sparkes wrote:

Hi,

I am using fop 0.95 (inside cocoon 2.1) and when I insert a png image in fo:external-graphic   I 
get the following error:



HTTP ERROR: 500 com%2Fsun%2Fmedia%2Fjai%2Fcodec%2FFileCacheSeekableStream

Help please


Peter Sparkes








PNG in FOP .95

2012-07-15 Thread Peter D Sparkes

Hi,

I am using fop 0.95 (inside cocoon 2.1) and when I insert a png image in fo:external-graphic   I get 
the following error:



   HTTP ERROR: 500 com%2Fsun%2Fmedia%2Fjai%2Fcodec%2FFileCacheSeekableStream

Help please


Peter Sparkes



Re: Rounded corner

2012-06-20 Thread Peter Hancock
Hi Franck,

The first thing I plan to do is merge trunk into the rounded corners
branch.  That would be a good time for you to build the branch and
generate some examples. Support for tables, for example, is currently
fairly limited and I have not done a detailed assessment to determine
what is outstanding.  Any examples that illustrate the current level
of support would be a of great help towards documenting this.

Thanks,

Peter

On Tue, Jun 19, 2012 at 8:53 AM, franck FIMBEL  wrote:
> Thanks for the update.
> I will keep an eye on the mailing lists for this very promising feature.
> In the meantime, if there is anything we can do to help on this
> (obviously not development but maybe some testing), we would glad to
> do so.
>
> Franck
>
> On Tue, Jun 19, 2012 at 8:50 AM, Peter Hancock  
> wrote:
>> Hi Franck,
>>
>> As eluded to by Rob, I am hoping to revisit the rounded corners work
>> soon.  The supported output formats will be restricted to PDF, PS and
>> AFP.
>>
>> Thanks,
>>
>> Peter
>>
>> On Mon, Jun 18, 2012 at 8:43 PM, Robert Meyer  wrote:
>>> Hi,
>>>
>>> Plans are currently underway to merge the branch with Trunk. I was
>>> responsible for updating the tests to JUnit 4 (much like the TrueType
>>> branch), but that task has been put on hold until the merge has taken place.
>>>
>>> At the moment I think the task rests with one of the committers, but it is a
>>> busy time building up to a release (1.1), so I cannot give you any
>>> timescales or release on when it might become available.
>>>
>>> Unless the person working on it has an update, I would recommend keeping an
>>> eye on the mailing list for a vote on merging the branch for a specific
>>> release.
>>>
>>> Regards,
>>>
>>> Robert Meyer
>>>
>>>> From: ffim...@gmail.com
>>>> Date: Mon, 18 Jun 2012 18:47:52 +0200
>>>> Subject: Rounded corner
>>>> To: fop-users@xmlgraphics.apache.org
>>>
>>>>
>>>> Hi all,
>>>>
>>>> I would be very interested in using rounded corners functionality with
>>>> block of paragraphs. Browsing the wiki I saw that a branch named
>>>> Temp_RoundedCorners exists with an implementation for rounded corners.
>>>>
>>>> Is there any plan to merge this functionality to a specific release or
>>>> to the trunk ?
>>>>
>>>> Thanks in advance
>>>> Regards
>>>>
>>>> --
>>>> Franck
>>>>
>>>> -
>>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>>
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>
>
>
> --
> Franck
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: "Unable to load font file" due to NullPointerException?

2012-06-18 Thread Peter Hancock
Hi Phillip,

Could you provide instructions to locate the font and provide an .fo
that demonstrates the issue, please.  Can you also tell us what
version of FOP you are using.

Thanks,

Peter

On Thu, Jun 14, 2012 at 12:39 PM, Phillip B Oldham
 wrote:
> Hi all
>
> Still having trouble loading custom fonts - this time with a different 
> approach.
>
> This time I'm running FOP instance with the following xml config:
>
> 
> 
>  .
>  72
>  72
>  
>  
>    
>      
>        fonts
>      
>    
>  
> 
>
> When I start my app which uses FOP, the log displays the following error:
>
> WARNING: Unable to load font file:
> file:/Users/me/Projects/myproject/fonts/League_Gothic.ttf. Reason:
> java.lang.NullPointerException
>
> The path to the font is correct, the font exists and FontBook (I'm on
> a mac) can read the font without issue (it's an open-source/free
> font).
>
> Any ideas what the error might be this time?
>
> --
> Phillip B Oldham
> phillip.old...@gmail.com
> +44 (0) 7525 01 09 01
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: Rounded corner

2012-06-18 Thread Peter Hancock
Hi Franck,

As eluded to by Rob, I am hoping to revisit the rounded corners work
soon.  The supported output formats will be restricted to PDF, PS and
AFP.

Thanks,

Peter

On Mon, Jun 18, 2012 at 8:43 PM, Robert Meyer  wrote:
> Hi,
>
> Plans are currently underway to merge the branch with Trunk. I was
> responsible for updating the tests to JUnit 4 (much like the TrueType
> branch), but that task has been put on hold until the merge has taken place.
>
> At the moment I think the task rests with one of the committers, but it is a
> busy time building up to a release (1.1), so I cannot give you any
> timescales or release on when it might become available.
>
> Unless the person working on it has an update, I would recommend keeping an
> eye on the mailing list for a vote on merging the branch for a specific
> release.
>
> Regards,
>
> Robert Meyer
>
>> From: ffim...@gmail.com
>> Date: Mon, 18 Jun 2012 18:47:52 +0200
>> Subject: Rounded corner
>> To: fop-users@xmlgraphics.apache.org
>
>>
>> Hi all,
>>
>> I would be very interested in using rounded corners functionality with
>> block of paragraphs. Browsing the wiki I saw that a branch named
>> Temp_RoundedCorners exists with an implementation for rounded corners.
>>
>> Is there any plan to merge this functionality to a specific release or
>> to the trunk ?
>>
>> Thanks in advance
>> Regards
>>
>> --
>> Franck
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>

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



Re: FOP 1.0 - TLE values based on XML values

2012-03-22 Thread Peter Hancock
Hi Simone,

Have you considered applying an XSLT transform to the fo document, or
during any process you may have that generates the fo?  An explanation
of the steps required to achieve this are outside of the scope of this
mailing list:  If you are new to XSLT, try taking a look at [1] and
browsing [2].

Good luck!

Peter

[1] http://www.w3schools.com/xsl/
[2] http://www.mulberrytech.com/xsl/xsl-list/


On Wed, Mar 21, 2012 at 9:58 PM, Simone  wrote:
> Hi, all. I am new to FOP.
> I am successfully creating AFP files but now I am facing a problem with TLE
> values.
>
> It seems I can only set fixed values for TLE. I mean:
> .
>
> What I'd like to have is something like this:
> 

Re: LazyFont and MultiByteFont NullPointerException

2012-01-12 Thread Peter Hancock
Hi Harshini,

Can you provide a little more context regarding this issue, please.
Are you able to provide us with the steps  and resources to reproduce
the issue?  You may not be able to post the font on the mailing list
(for legal and practical reasons), but if we can begin by taking a
look at the your fo, fop.xconf etc, a solution may not require that.
If we determine that we need to see the font, we can arrange you to
email it privately.

Thanks,

Peter

On Thu, Jan 12, 2012 at 7:12 AM, Harshini Madurapperuma
 wrote:
> Hi All
>
>
>
> When rendering the report I get following exception. Do you have any clue
> about this?
>
> Thanks in Advance
>
> Harshini
>
>
>
> --java.lang.NullPointerException: null
>
> --org.apache.fop.render.pdf.fonts.LazyFont.mapChar(LazyFont.java:121)
>
> --org.apache.fop.layout.FontState.mapChar(FontState.java:212)
>
> --org.apache.fop.layout.FontState.getCharWidth(FontState.java:269)
>
>
>
> --and
>
>
>
> --java.lang.NullPointerException: null
>
>
>
> --org.apache.fop.render.pdf.fonts.MultiByteFont.width(MultiByteFont.java:320)
>
> --org.apache.fop.render.pdf.fonts.LazyFont.width(LazyFont.java:157)
>
> --org.apache.fop.layout.FontState.width(FontState.java:202)
>
> --
>
> CONFIDENTIALITY AND DISCLAIMER NOTICE
>
> This e-mail, including any attachments, is confidential and for use only by
> the intended recipient. If you are not the intended recipient, please notify
> us immediately and delete this e-mail from your system. Any use or
> disclosure
> of the information contained herein is strictly prohibited. As internet
> communications are not secure, we do not accept legal responsibility for the
> contents of this message nor responsibility for any change made to this
> message after it was sent by the original sender. We advise you to carry out
> your own virus check as we cannot accept liability for damage resulting from
> software viruses.
>

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



Re: Multi threading problems with FOP 1.0

2011-11-23 Thread Peter Coppens
Hello

I have similar things but as far I can remember this was always related to svg 
as part of an fo stylesheet.

I should/could dive into the mail archives (and perhaps) bugzilla to refresh my 
memory, as I remember there were discussion on this, but perhaps you can 
indicate whether you are using svg at all in your fo?

Peter


On 23 Nov 2011, at 12:12, Klearchos Klearchou wrote:

> Dear FOP users,
> 
> I am using the FOP version 1.0 under Windows x64.
> Lately I have integrated JPPF in order to regenerate my PDFs faster and I 
> experience the followings strange errors.
> 
> For example inside the XSLT I place 8pt but the error in the console outputs 
> (pt8pt):
> [ERROR][org.apache.fop.fo.properties.PropertyMaker.convert(148)]: Unknown 
> length unit 'pt8pt'
> 
> This kind of behaviour happens at other places as well:
> [ERROR][org.apache.fop.apps.FOUserAgent.processEvent(82)]: Invalid property 
> value encountered in color="whitewhite": 
> org.apache.fop.fo.expr.PropertyException: null:56:15: No conversion defined 
> whitewhite; property:'color' (See position 57:85)
> Only white at the XSLT.
> 
> [ERROR][org.apache.fop.apps.FOUserAgent.processEvent(82)]: Invalid property 
> value encountered in background-color="#6777cf#6777cf": 
> org.apache.fop.fo.expr.PropertyException: null:56:15: No conversion defined 
> #6777cf#6777cf; property:'background-color' (See position 57:100)
> 
> [ERROR][org.apache.fop.apps.FopFactory.resolveURI(755)]: Attempt to resolve 
> URI 'F:\JPF:\JPPF\Node1\resources\images\na_b.gif')' failed:
> Here the URI is given correctly at the XSLT processor: 
> F:\JPPF\Node1\resources\images
> 
> These kind of errors continue.
> 
> Any pointer would be really helpful.
> I am considering using the trunk version as well in order to close some other 
> reported and patched bugs of FOP 1.0
> 
> Regards,
> Klearchos
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 


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



Re: AFP & FOP Font Problem

2011-09-07 Thread Peter Hancock
Hi Gregoire,

The font element should be a child of the fonts element in your fop.xconf.

Try that and please let me know if you need more help.

Peter

On Wed, Sep 7, 2011 at 10:43 AM, Gregoire Meier  wrote:
> Hi Peter,
>
> Thank you for your answer.
> I have tried with FOP version 0.95 (but same result with 1.0)
> I would like to use the 0.95 version (if possible)
>
> About the ./font/ibm directory, I already have tried several form (also the
> full path) without success. I seems that it does not read the  part of
> the configuration file (but I am sure that it open the right configuration
> file, because I have tried to add some xml error within this file, and the
> parser detect it)
>
> My fop.xconf look like this :
>
> 
> 
> 
>
> 
>
> 
> 
>
>  
>  .
>
>  
>  72
>  
>  72
>
>  
>  
>
>  
>  
>  
>
>
>        
>          
>
>                        
>                        
>                        
>                                          
>                                 codepage="T1EX" encoding="Cp1146" path="./fonts/ibm">
>
>                                         characterset="C0ZA05K0"/>
>                                         characterset="C0ZA00K0"/>
>                                         characterset="C0ZA05E0"/>
>                                         characterset="C0ZA00G0"/>
>                                         characterset="C0ZA0080"/>
>                                         characterset="C0ZA00I0"/>
>                                         characterset="C0ZA00M0"/>
>
>                                
>
>                        
>
>                         weight="normal"/>
>
>
>                  
>        
>
>
>  
>
> 
>
>
>
> Thanks for your help,
> Gregoire
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: AFP & FOP Font Problem

2011-09-07 Thread Peter Hancock
Hi Gregoire,

Which version of FOP are you using and have you checked the
documentation at http://xmlgraphics.apache.org/fop (e.g.
http://xmlgraphics.apache.org/fop/trunk/configuration.html for
configuring trunk)?

Without seeing your fop.xconf o in full I would guess that the
font-base is not set correctly, and thus the relative url ./fonts/ibm
does not resolve to what you want (this guess is based on how
frequently this happens).

If you have not already, hve a further read of the docs, tell us the
version of FOP and perhaps attach your fop.xconf.

Peter


On Tue, Sep 6, 2011 at 8:51 PM, Gregoire Meier  wrote:
> FopFactory fopFactory = FopFactory.newInstance();
> FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
> fopFactory.setUserConfig(new File("./conf/fop.xconf"));
> out = new FileOutputStream(afp);
> out = new BufferedOutputStream(out);
> Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);
>
>
> ---> 6 sept. 2011 17:43:39 org.apache.fop.render.afp.AFPRenderer setupFontInfo
> ATTENTION: No AFP fonts configured - using default setup
>
>
>
>
> Hi all,
>
> I have some problems with FOP & AFP.
> I would like to setup fonts for an AFP output.
>
> The Java code is :
>
> FopFactory fopFactory = FopFactory.newInstance();
> FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
> fopFactory.setUserConfig(new File("./conf/fop.xconf"));
> out = new FileOutputStream(afp);
> out = new BufferedOutputStream(out);
> Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);
>
> and it always responds :
> org.apache.fop.render.afp.AFPRenderer setupFontInfo
> ATTENTION: No AFP fonts configured - using default setup
>
>
> but into fop.xconf I have
> ...
> 
>  
>  
>   ...
>  
>  
> ...
>
>
> Any idea is welcome
>
> Thanks
> Greg
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: Multi Threaded FOP?

2011-06-09 Thread Peter Hancock
Hi Theresa,

I believe there are multi-threading gotchas when embedding FOP and her
dependencies; see
http://xmlgraphics.apache.org/fop/0.95/embedding.html#multithreading,

There are certainly many multi-threaded production systems that have
successfully embed FOP and it would be nice to know some of the issues
that were faced whilst they were being developed.  it would be very
useful to have a page on the website, or perhaps on the wiki dedicated
to this subject, included some war stories and solutions devised.

Peter

On Thu, Jun 9, 2011 at 9:26 AM, Theresa Jayne Forster
 wrote:
> I am looking into redoing my FOP integration and maybe adding it into some
> form of MQ service,
>
> So many applications can request fop functionality and then have their
> response sent on the MQQueue,
>
> How Threadsafe is the Fop engine? Or is the current newFopInstance from a
> singleton factory instance totally threadsafe?
>
>
>
> Are there any catcha’s I need to be aware of?
>
>
>
> Kindest regards
>
>
>
> Theresa Forster
>
> Senior Software Developer
>
>

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



Re: Arabic Font in FOP

2011-06-03 Thread Peter Hancock
Hi,

You are going to have to checkout the branch

http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ComplexScripts/
using subversion: info here http://xmlgraphics.apache.org/fop/download.html

Once you have the codebase you have to build it: info here
http://xmlgraphics.apache.org/fop/trunk/compiling.html

Good luck!

Pete

>

On Fri, Jun 3, 2011 at 6:12 AM, suri16kk  wrote:
>
> Hi Pete,
>
> Thanks for your reply.
> I am not sure how to get the fop version info. Please assist.
>
> I am using the "Intersystems ZEN" reporting engine to convert then xml to
> fo.
> I have attached the files for your reference.
>
> http://old.nabble.com/file/p31762930/pdfOutput.JPG pdfOutput.JPG
> http://old.nabble.com/file/p31762930/fop%2Bmessages.txt fop+messages.txt
> http://old.nabble.com/file/p31762930/xslfo.xml xslfo.xml
> http://old.nabble.com/file/p31762930/toxslfo.xml toxslfo.xml
> http://old.nabble.com/file/p31762930/tohtml.xml tohtml.xml
> --
> View this message in context: 
> http://old.nabble.com/Arabic-Font-in-FOP-tp31759175p31762930.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
>
>

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



Re: Arabic Font in FOP

2011-06-02 Thread Peter Hancock
Hi,

Are you using a version of FOP built from the arabic support branch?
Arabic support is not currently available in trunk, or any offical
release.  If you are not sure then reply and I will provide details
for getting this version.  Be warned however, this work is not
complete and may produce undesired results.

How are you transforming your xml data into fo?  Please provide the
transformed fo if you think that you are using the correct version of
FOP and we can investigate further.

Pete

On Thu, Jun 2, 2011 at 5:51 PM, suri16kk  wrote:
>
> Hi Team,
> I am having trouble getting arabic displayed in my PDF. I have fop setup on
> a Linux system.
>
> my XML contains
>  
> - 
> - 
>   ExpDateODBC="" arb="ن كيان الدولة وامنه" />
>  
>  
>
> fonts in the dir
> -rw-rw-r-- 1 cachesys cachegrp  77568 Jun  2 20:19 afridyah.ttf
> -rw-rw-r-- 1 cachesys cachegrp 751104 Jun  2 18:52 arialbd.ttf
> -rw-rw-r-- 1 cachesys cachegrp 563800 Jun  2 18:52 arialbi.ttf
> -rw-rw-r-- 1 cachesys cachegrp 557760 Jun  2 18:52 ariali.ttf
> -rw-rw-r-- 1 cachesys cachegrp  64416 Jun  2 18:38 arialmt.ttf
> -rw-rw-r-- 1 cachesys cachegrp 774476 Jun  2 18:52 arial.ttf
> -rw-rw-r-- 1 cachesys cachegrp  69464 Jun  2 19:52 symbol.ttf
>
> and font.xconf  has
>
>  
>    
>      
>        
>        flate
>
>        
>        
>
>        
>        
>      
>
>      
>        
>        
>
>        
>        /usr/share/fonts/trak
>         
>         
>      
>
>      
>      
>
>    
>
>
> But, when the PDF is rendered, the arabic text is displayed as ##...
> Please help.
> --
> View this message in context: 
> http://old.nabble.com/Arabic-Font-in-FOP-tp31759175p31759175.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
>
>

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



Re: PDF giving first page as blank

2011-05-04 Thread Peter Hancock
Hi Vishal,

Each row of your table contains a single cell that is declared to span
2 rows and 1 column of your 2 column table.  Did you mean 1 row and 2
columns?  Please run fop against the sample and confirm the unexpected
behaviour you wish to report.

Pete

On Wed, May 4, 2011 at 9:28 AM, Peter Hancock  wrote:
> Hi Vishal,
>
> Sorry for the delayed reply.
>
> I have just attempted to render the sample and I got a validation
> exception related to .  I ran trunk with relaxed validation; which
> version are FOP are you running?
>
> Your question belongs on the fop-users list, hence the destination of
> this reply.
>
> Cheers,
>
> Pete
>
>
> -- Forwarded message --
> From: srmxslca 
> Date: Tue, Apr 26, 2011 at 11:11 AM
> Subject: Re: PDF giving first page as blank
> To: fop-...@xmlgraphics.apache.org
>
>
>
> Hi Pete,
>
> Thanks for the reply, as requested i sent the sample xml to your mailbox.
>
> Could you please check.
>
> Regards
> Vishal
>
>
> Peter Hancock-2 wrote:
>>
>> Hi,
>>
>> Can you provide an .fo file generated from this stylesheet that
>> demonstrated the problem, please.  If you are unsure how to do the
>> transform just send some input xml.  From there we can then run FOP
>> and take a closer look.
>>
>> Thanks,
>>
>> Pete
>>
>>
>> On Wed, Apr 20, 2011 at 4:05 PM, srmxslca  wrote:
>>>
>>> Hi ,
>>>
>>> I am new new ot xsl:fo , when i generate a PDF using xsl:fo it is giving
>>> initial page as blank if number of pages are more than 1, if total number
>>> of
>>> pages = 1 in that case it is not giving blank pages.
>>>
>>> And the code for xsl:fo is as follows:
>>>
>>>
>>> 
>>> >>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>>>  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>>>
>>>
>>>  
>>>
>>>
>>>  
>>>
>>>    
>>>        >> page-height="11.5in">
>>>          >> margin-left="0.20in" margin-right="0.20in" />
>>>        
>>>      
>>>
>>>      
>>>
>>>        
>>>         
>>>           
>>>
>>>                
>>>                
>>>
>>>
>>>             
>>>                  
>>>                        
>>>                        
>>>                  
>>>             
>>>
>>>             
>>>
>>>
>>>                        >> select="report-bO/candidate-ro-details"/>
>>>
>>>             
>>>
>>>           
>>>          
>>>         
>>>        
>>>       
>>>      
>>>
>>>
>>>             
>>>
>>>                
>>>
>>>                        >> number-rows-spanned="2"
>>> number-columns-spanned="1">
>>>                                
>>>                                >> margin-left="40pt" font-size="8pt"
>>> white-space-collapse="false"
>>> white-space-treatment="preserve">>> select="attendancenumber"/>
>>>                                >> margin-left="40pt" font-size="8pt"
>>> white-space-collapse="false"
>>> white-space-treatment="preserve">>> select="roname"/>
>>>                                >> margin-left="40pt" font-size="8pt"
>>>>
>>>                                >> margin-left="40pt" font-size="8pt"
>>>>
>>>                                >> margin-left="40pt" font-size="8pt"
>>>>
>>>                                >> margin-left="40pt" font-size="8pt"
>>>>
>>>                                >> margin-left="40pt" font-size="8pt"
>>>>
>>>                                        
>>>                                                >> test="(string-length(addressline4)>0)">
>>>
>>>  , 
>>>                                                
>>>                                                
>>>                                                        
>>>                                                
>>>                                        
>>>
>>>                                
>>>                                >> margin-left="40pt"
>>> font-size="8pt">
>>>                                
>>>                                                >> test="(string-length(addressline6)>0)">
>>>
>>>  , 
>>>                                                
>>>                                                
>>>                                                        
>>>                                                
>>>                                        
>>>
>>>                                
>>>
>>>                                
>>>                
>>>
>>>
>>>                
>>>             
>>>    
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/PDF-giving-first-page-as-blank-tp31441979p31441979.html
>>> Sent from the FOP - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/PDF-giving-first-page-as-blank-tp31441979p31477096.html
> Sent from the FOP - Dev 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



Fwd: PDF giving first page as blank

2011-05-04 Thread Peter Hancock
Hi Vishal,

Sorry for the delayed reply.

I have just attempted to render the sample and I got a validation
exception related to .  I ran trunk with relaxed validation; which
version are FOP are you running?

Your question belongs on the fop-users list, hence the destination of
this reply.

Cheers,

Pete


-- Forwarded message --
From: srmxslca 
Date: Tue, Apr 26, 2011 at 11:11 AM
Subject: Re: PDF giving first page as blank
To: fop-...@xmlgraphics.apache.org



Hi Pete,

Thanks for the reply, as requested i sent the sample xml to your mailbox.

Could you please check.

Regards
Vishal


Peter Hancock-2 wrote:
>
> Hi,
>
> Can you provide an .fo file generated from this stylesheet that
> demonstrated the problem, please.  If you are unsure how to do the
> transform just send some input xml.  From there we can then run FOP
> and take a closer look.
>
> Thanks,
>
> Pete
>
>
> On Wed, Apr 20, 2011 at 4:05 PM, srmxslca  wrote:
>>
>> Hi ,
>>
>> I am new new ot xsl:fo , when i generate a PDF using xsl:fo it is giving
>> initial page as blank if number of pages are more than 1, if total number
>> of
>> pages = 1 in that case it is not giving blank pages.
>>
>> And the code for xsl:fo is as follows:
>>
>>
>> 
>> >  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>>  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>>
>>
>>  
>>
>>
>>  
>>
>>    
>>        > page-height="11.5in">
>>          > margin-left="0.20in" margin-right="0.20in" />
>>        
>>      
>>
>>      
>>
>>        
>>         
>>           
>>
>>                
>>                
>>
>>
>>             
>>                  
>>                        
>>                        
>>                  
>>             
>>
>>             
>>
>>
>>                        > select="report-bO/candidate-ro-details"/>
>>
>>             
>>
>>           
>>          
>>         
>>        
>>       
>>      
>>
>>
>>             
>>
>>                
>>
>>                        > number-rows-spanned="2"
>> number-columns-spanned="1">
>>                                
>>                                > margin-left="40pt" font-size="8pt"
>> white-space-collapse="false"
>> white-space-treatment="preserve">> select="attendancenumber"/>
>>                                > margin-left="40pt" font-size="8pt"
>> white-space-collapse="false"
>> white-space-treatment="preserve">> select="roname"/>
>>                                > margin-left="40pt" font-size="8pt"
>>>
>>                                > margin-left="40pt" font-size="8pt"
>>>
>>                                > margin-left="40pt" font-size="8pt"
>>>
>>                                > margin-left="40pt" font-size="8pt"
>>>
>>                                > margin-left="40pt" font-size="8pt"
>>>
>>                                        
>>                                                > test="(string-length(addressline4)>0)">
>>
>>  , 
>>                                                
>>                                                
>>                                                        
>>                                                
>>                                        
>>
>>                                
>>                                > margin-left="40pt"
>> font-size="8pt">
>>                                
>>                                                > test="(string-length(addressline6)>0)">
>>
>>  , 
>>                                                
>>                                                
>>                                                        
>>                                                
>>                                        
>>
>>                                
>>
>>                                
>>                
>>
>>
>>                
>>             
>>    
>>
>> --
>> View this message in context:
>> http://old.nabble.com/PDF-giving-first-page-as-blank-tp31441979p31441979.html
>> Sent from the FOP - Dev mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context:
http://old.nabble.com/PDF-giving-first-page-as-blank-tp31441979p31477096.html
Sent from the FOP - Dev 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



Re: Barcode4j / QR

2011-04-17 Thread ingo peter

mistake / correction:
look at this link: http://code.google.com/p/fop-qrcode/
its under mit-licence


Am 15.04.2011 14:09, schrieb Philippe Pithon:

Hi,

Is "QR code" supported by Barcode4j for FOP ?

http://en.wikipedia.org/wiki/QR_code

Regards,

Philippe Pithon



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





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



Re: Barcode4j / QR

2011-04-17 Thread ingo peter
i know only the module "http://www.java4less.com/barcodes/barcodes.php"; 
supporting qrcode.
but i'm very interested if there is a opensource solution for generating 
qr-codes in fop.


Am 15.04.2011 14:09, schrieb Philippe Pithon:

Hi,

Is "QR code" supported by Barcode4j for FOP ?

http://en.wikipedia.org/wiki/QR_code

Regards,

Philippe Pithon



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





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



Re: wrong offset on block-container

2011-04-15 Thread ingo peter

thanks,

little attribute big effects


Am 15.04.2011 09:31, schrieb Pascal Sancho:

Hi,

in short, there is leading space between 2 lines, half leading before
and half leading after.

This leading is based on both font-size and line-height.

You have to ensure that both properties are set to 0 to have a null leading.

Since line-height defaults to 1.2 (IOW: 1.2*font-size), you just need to
explicitely set font-size="0" on the fo-block containing the image.

Le 14/04/2011 18:40, ingo peter a écrit :

hi,

i want do emped a lot of jpg-files into a dokument. my position starts
at x=0mm and y=0mm
after generating the pdf-file for all images is a offset of y=+1.2mm.
if i change the reference-orientation from 0 to 180 (mad) the positon is
korrekt.

my fop-file
...
fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:svg="http://www.w3.org/2000/svg"; font-family="Times Roman"
font-size="12pt" text-align="center">
 
 
  
 
 
 
 



 
 
 
 
 
 
 
 
 
 
...
my fop version is 1.0

whats wrong?
any suggestions?

mfg/regards
-ip-



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



wrong offset on block-container

2011-04-14 Thread ingo peter

hi,

i want do emped a lot of jpg-files into a dokument. my position starts 
at x=0mm and y=0mm

after generating the pdf-file for all images is a offset of y=+1.2mm.
if i change the reference-orientation from 0 to 180 (mad) the positon is 
korrekt.


my fop-file
...
fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
xmlns:svg="http://www.w3.org/2000/svg"; font-family="Times Roman" 
font-size="12pt" text-align="center">











reference-orientation="0" position="absolute" >


text-align="center" display-align="center" src="test.jpg"/>



reference-orientation="0" position="absolute" >


text-align="center" display-align="center" src="test.jpg"/>



...
my fop version is 1.0

whats wrong?
any suggestions?

mfg/regards
-ip-



Re: FO block in a list-item-body overlaps page footer rather than breaking to next page

2011-03-25 Thread Peter Desjardins
On Wed, Mar 23, 2011 at 7:00 AM, Vincent Hennebert  wrote:

> Try removing the .maximum components of space definitions inside the
> lists. That will prevent the content from stretching beyond the
> region-body.

That did work, thanks!

In case anyone finds this while working with DocBook, this is what I
added to my customization layer.


  

  
  

  



  



  1em
  0.8em
  


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



Re: Row span and keep-togehther.within-page problem

2011-03-17 Thread Peter Hancock
Hi Matthias,

This bug has been captured in bugzilla#45134.  I have had a quick look
at the code-base but I have not yet been able to determine why
 fo:table-cell@number-rows-spanned adversely affects table breaking
across pages or how difficult it would be to rectify.

Thanks,

Peter


On Thu, Mar 17, 2011 at 1:47 AM, Matthias Reischenbacher
 wrote:
>
> Hi,
>
> using the number-rows-spanned attribute on a table cell causes a page break
> in the middle of the table even though the fo:table element has the
> keep-together.within-page attribute set to "always". If I remove the span
> attribute the page break goes away.
>
> Am I doing something wrong here or is this a bug? I'm using latest trunk
> version of FOP.
>
> Test case:  http://old.nabble.com/file/p31169192/table-bug.xml table-bug.xml
> Output with span:  http://old.nabble.com/file/p31169192/table-bug.pdf
> table-bug.pdf
> Output without span:  http://old.nabble.com/file/p31169192/table-no-bug.pdf
> table-no-bug.pdf
>
> Best regards,
> Matthias Reischenbacher
> --
> View this message in context: 
> http://old.nabble.com/Row-span-and-keep-togehther.within-page-problem-tp31169192p31169192.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
>
>

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



Re: Fonts fail to print after successive print runs that work

2011-03-15 Thread Peter Yandell

Hi Mehdi,
That's right, each document is different. I also wrote a harness to 
continuously print two documents against our QA server. Again the fonts 
would disappear somewhere between 30 and 150 times. It does not appear 
to be a simple "print X times and watch it fail" which is making it very 
difficult to resolve.


Best regards,
Pete

On 15/03/2011 4:09 PM, mehdi houshmand wrote:

Hi Peter,

You say that it can happen anywhere from the 30th document to the
150th? Does that suppose each document is different, or does the
number vary if you print the same document over and over? I.e. is the
number at which it fails the same over several attempts when printing
a single document?

Mehdi

On 15 March 2011 02:12, Peter Yandell  wrote:

Hi All,
Background:I've recently inherited an enterprise level web application
that uses FOP for generating PDF and PNG documents. These documents are
printed using custom fonts. The output size is A0 (or ~ 4770 x 3370 pixels).

Problem:After a variable amount of time some of the fonts 'stop
working'. By this I mean that the glyph appearing is a letter 'A' in a box,
with the same glyph used for all characters. Please see the two attached
images; 'PrintJob-200a-47.png' rendered correctly while
'PrintJob-200a-48.png' stop working.

The problem goes away after Tomcat has been restarted. Sometimes the error
starts happening after 30 documents have been printed, other times it can be
upwards of 150. Once it starts happening then it keeps happening until
Tomcat is restarted.

Resolutions Attempted:As I couldn't see any errors in our application
logs I turned the FOP logging all the way up to 'ALL'. At no time were there
any entries, for a 'failed' print job, that differed from a successful one.
There are no WARN, ERROR or FATAL messages appearing in any log file.

Searching for font issues seems to only turn up misconfigurations of fonts.
All our fonts are configured correctly as the documents do print. It is
simply that they are forgotten, lost, etc after some period of time with no
errors or warnings recording in the logs

Version numbers:
JDK:1.6.0_20&  1.6.0_24
OS:Mac OSX 10.6.4&  10.6.6
FOP:0.95&  1.0
Tomcat: 6.0.24

I can extract out the relevant FOP log entries for both a successful and
failed run if requested. I haven't attached them as they are quite large.

My request for help comes in several parts:
1.Has anyone else experienced this, and if so what did you do to resolve
it?
2.Does anyone have any thoughts where else to look? I don't know where
else to look right now.

The web application is a commercial so I may be limited in what I can share.
If anything else is required please ask and I will do my best to comply.

Many thanks in advance,
Pete


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


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

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

manipulate fop configuration file via java

2011-03-10 Thread ingo peter

hi,

i can embed fonts via command-line to the file "fop.xml" and render a 
pdf with special fonts.


"fop.xml"




null


flate
ascii-85

/tmp/







300



*is it also via java possible to safe the font-information to "fop.xml" 
for later use?*


i tried this, but i don't know to save my changes back to a xml-file!
...
String fontname = "test1";
String filename = "test1.ttf";i
// set own configuation file:
try {
 FontTriplet fontTriplet = new 
FontTriplet(fontname,Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);

 List fontTriplets = new ArrayList();
 fontTriplets.add(fontTriplet);
 EmbedFontInfo nfont = new 
EmbedFontInfo(filename.substring(0,datei.length()-3)+"xml", true, 
fontTriplets, filename, fontname);
 DefaultConfigurationBuilder cfgBuilder = new 
DefaultConfigurationBuilder();
 Configuration cfg = cfgBuilder.buildFromFile(new 
File("/tmp/fop.xml"));

 FopFactory fopFactory = FopFactory.newInstance();
 fopFactory.setUserConfig(cfg);
 fopFactory.getFontManager().setFontBaseURL"/tmp/");
 fopFactory.getFontManager().getFontCache().addFont(nfont);
 fopFactory.getFontManager().getFontCache().save();
} catch (Exception ex) {
ex.printStackTrace();
}
  }
}
...

*how can i save my configuration?*



Re: Apache FOP Newbie needs Help Converting XML to PDF

2011-03-09 Thread Peter Hancock
It seems that date.format-date.template.xsl is unavailable.

I suggest that you generate the fo first from the relavent xml and xsl
(this is out of scope of this mailing list - help can be found on
other mailing lists like http://www.mulberrytech.com/xsl/xsl-list/),
and then post the corresponding fo to this list if you are still
having problems processing it with FOP.

Thanks,

Peter



On Wed, Mar 9, 2011 at 2:25 PM, italocardwell  wrote:
>
> Sorry the -xm was a fat finger.  I was using -xml and even if I change the
> file name to test it still produces the same error.  Complete error below.
>
> SEVERE: Exception
> javax.xml.transform.TransformerException:
> org.apache.fop.fo.ValidationException:
>  First element must be the fo:root formatting object. Found (Namespace URI:
> "",
> Local Name: "html") instead. Please make sure you're producing a valid
> XSL-FO do
> cument.
>
>
>
>
>
>
>
> Eric Douglas wrote:
>>
>> -xm?  Try -xml?
>> Then take the dashes out of your file name, or try putting it in quotes.
>>
>> -Original Message-
>> From: italocardwell [mailto:italo.cardw...@gmail.com]
>> Sent: Wednesday, March 09, 2011 9:10 AM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: Apache FOP Newbie needs Help Converting XML to PDF
>>
>>
>> I was using
>> fop -xm la91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
>>    -xsl ccr.xsl -pdf test.pdf
>>
>>
>>
>> Peter Hancock-2 wrote:
>>>
>>> Hi,
>>>
>>> Can you tell us exactly which files you are using when you invoke fop,
>>> please.
>>> Your command should look something like fop -xml foo.xml -xsl foo.xsl
>>> -pdf foo.pdf  judging by the files you have attached.
>>> I am guessing you missed out the -xml/-xsl flags, leading FOP to
>>> believe you were supplying an FO file.
>>>
>>> When an  XML and XSL files are supplied, FOP will perform an XSLT
>>> transform using the Xalan XSLT Xalan library (I am guessing you will
>>> need to know more about this stage in your project), generating the FO
>>> document stream that is then processed to generate the output in the
>>> desired format:
>>>
>>> XML + XSL -> [XSLT transformer] -> FO -> [XSL:FO processor] -> PDF
>>>
>>> This initial stage just saves on from having to do the transform first.
>>>
>>> I hope this info helps,
>>>
>>> Peter
>>>
>>>
>>>
>>> On Wed, Mar 9, 2011 at 12:43 PM, italocardwell
>>> 
>>> wrote:
>>>>
>>>> Ill be upfront I know nothing about XML.  I am a SQL developer and I
>>>> have a project where I need to convert XML files to a PDF.  The XML
>>>> are going to be the same format every time with different data in
>>>> them.  I am wanting to use apache fop 1.0 at the command line to
>>>> convert these.  I am getting an error every time that I attempt to do
>>>> this.  I will attach the files and the error.  Would someone please
>>>> help me out.  Thanks.
>>>> http://old.nabble.com/file/p31105999/a91ec9d3-e021-4e5e-933f-54992cdc
>>>> 415c.20110308172937.xml
>>>> a91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
>>>> http://old.nabble.com/file/p31105999/ccr.xsl ccr.xsl
>>>> http://old.nabble.com/file/p31105999/date.format-date.template.xsl
>>>> date.format-date.template.xsl
>>>> http://old.nabble.com/file/p31105999/str.padding.template.xsl
>>>> str.padding.template.xsl
>>>>
>>>> The error that I get states that fo needs to be in xml-fo format.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Apache-FOP-Newbie-needs-Help-Converting-XML-to-
>>>> PDF-tp31105999p31105999.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
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional com

Re: Font Configuration

2011-03-09 Thread Peter Hancock
Hi Sandeep,
The answer to your question can be found at
 http://xmlgraphics.apache.org/fop/trunk/output.html#afp-font-config
and
http://xmlgraphics.apache.org/fop/trunk/fonts.html#embedding

Peter


On Wed, Mar 9, 2011 at 1:38 PM, Sandeep Dhulia  wrote:
> Hi Guys,
>
> I need some help for afp-font configuration.  Currently my fo uses 2 fonts,
> TimeRoman-10-Normal and TimesRoman-10-Bold. I am using default fop
> configuration. When I generate afp file, I get the codepages (T1V10500) &
> character sets (C0N2 and C0N4) as external resource referenced in
> afp file. It seems the codepage and character set are mapped to following
> line in fop configuration
>
>  encoding="Cp500">
>
> 
>
>  encoding="Cp500">
>
> 
>
> I though the above configuration will embed the font information in the afp
> file but it is added as an external resource.
>
> The sample afp I received from client has embedded resource codepage
> T1GMCUSR (ibm-500_P100-
>
> 1995) with character - set C001 (Arial, 10) and character-set C002
> (ArialBold, 10).  I am not
>
> sure how to proceed with this. What all resources and configuration I would
> need to map and embed this
>
> Information in generated afp file.
>
>
>
> Attach is the afp file output.
>
>
>
> Please help.
>
>
>
> Thanks & Regards,
>
> Sandeep
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

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



Re: Apache FOP Newbie needs Help Converting XML to PDF

2011-03-09 Thread Peter Hancock
Hi,

Can you tell us exactly which files you are using when you invoke fop, please.
Your command should look something like
fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
 judging by the files you have attached.
I am guessing you missed out the -xml/-xsl flags, leading FOP to
believe you were supplying an FO file.

When an  XML and XSL files are supplied, FOP will perform an XSLT
transform using the Xalan XSLT Xalan library (I am guessing you will
need to know more about this stage in your project), generating the FO
document stream that is then processed to generate the output in the
desired format:

XML + XSL -> [XSLT transformer] -> FO -> [XSL:FO processor] -> PDF

This initial stage just saves on from having to do the transform first.

I hope this info helps,

Peter



On Wed, Mar 9, 2011 at 12:43 PM, italocardwell  wrote:
>
> Ill be upfront I know nothing about XML.  I am a SQL developer and I have a
> project where I need to convert XML files to a PDF.  The XML are going to be
> the same format every time with different data in them.  I am wanting to use
> apache fop 1.0 at the command line to convert these.  I am getting an error
> every time that I attempt to do this.  I will attach the files and the
> error.  Would someone please help me out.  Thanks.
> http://old.nabble.com/file/p31105999/a91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
> a91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
> http://old.nabble.com/file/p31105999/ccr.xsl ccr.xsl
> http://old.nabble.com/file/p31105999/date.format-date.template.xsl
> date.format-date.template.xsl
> http://old.nabble.com/file/p31105999/str.padding.template.xsl
> str.padding.template.xsl
>
> The error that I get states that fo needs to be in xml-fo format.
>
>
>
>
>
> --
> View this message in context: 
> http://old.nabble.com/Apache-FOP-Newbie-needs-Help-Converting-XML-to-PDF-tp31105999p31105999.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
>
>

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



Re: FOP command-line option in ant task

2011-03-09 Thread Peter Hancock
Hi Walter,

Have you tried running FOP from the command line? This is the
preferred way to run FOP as a stand alone application.  If you can
invest a little time to set this up you will be rewarded with the
ability to fully configure FOP.

If you think you are truly bound to the ant task, then a modest
modification to org.apache.fop.tools.anttasks.Fop to parse the
properties for the encryption parameters, as suggested by Jeremias.
This is handled from the command line arguments by
org.apache.fop.cli.CommandLineOptions, which you may want to use for
inspiration.

Good luck,

Peter


On Wed, Mar 9, 2011 at 6:09 AM, Walter Kruse  wrote:
> I build PDF from DocBook with Ant in Eclipse. All works well.
>
> I want to pass the FOP command line args for -noprint, -nocopy, -noedit and
> -noannotations. I read about this in the FOP docs under security/encryption
> (http://xmlgraphics.apache.org/fop/0.95/pdfencryption.html). However, I
> cannot seem to find how to do this in my Ant build.xml
>
> The built-in ant task (http://xmlgraphics.apache.org/fop/0.95/anttask.html)
> makes provision for indir, outdir etc. parameters. How do I include the FOP
> command-line options though ?
>
> My target is as follows:
>
>          description="Generates PDF files from DocBook XML">
>         
>         
>                  basedir="${source.dir}" destdir="${fo.dir}">
>         
>         
>
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>
>
>          fofile="${fo.dir}/RubyRecipesForTesters.fo"
>         outfile="${target.dir}/RubyRecipesForTesters.pdf"/>
>          tofile="${publish.dir}/${pub.dir}/RubyRecipesforTesters.pdf"/>
>     
>
> Thanks in advance
> Walter Kruse
>

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



Re: AFP Rendering

2011-01-28 Thread Peter Hancock
Hi Sandeep,

Sorry for the delayed response.  The code that handles the rendering
of NOPs is within IFRenderer.renderPage() and I can confirm that FOP
will always render a  page header before a NOP.  I am not sure how
popular the use case is for declaring NOPs outside of the  page scope.
 The MO:DCA specification only stipulates that a NOP must be enclosed
within begin-end domain, and so your requirement is certainly valid.

Perhaps a FOP developer with the available time would be willing to
provide a patch that extends the afp:no-operation element with an
attribute to specify the placement of the NOP at document or page
level.  You should raise a feature request in the ASFs bugzilla
https://issues.apache.org/bugzilla, stating your requirements.  I
would also recommend that you advertise your request for this
requirement in a new thread on the fop-dev mailing list.

I hope I have been of help,

Pete

On Fri, Jan 28, 2011 at 5:11 AM, Dhulia, Sandeep
 wrote:
> Not yet!!!
>
> BR,
> Sandeep
>
> ____
> From: Peter Weber [peter.we...@garaio.com]
> Sent: Thursday, January 27, 2011 7:33 PM
> To: fop-users@xmlgraphics.apache.org
> Cc: Dhulia, Sandeep
> Subject: RE: AFP Rendering
>
> Hello Sandeep
>
> Have You got an answer or a solution on that issue?
> I would really appreciate to place NOPs or other elements as valid NOPs in 
> the document structure.
>
> Otherwise, I have to find a way to solve this with TLEs, which needs change 
> in the solution of the customer.
>
> Thanks and Regards
> Peter
>
>
> -Original Message-
> From: Dhulia, Sandeep [mailto:sandeep.dhu...@patni.com]
> Sent: Dienstag, 18. Januar 2011 15:14
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: AFP Rendering
>
> Hi Peter,
>
> Thanks for your prompt response. Please find attached sample.fo which we are 
> generating. I am also attaching an image(snap) of what is getting printed in 
> afp file.
>
> As per the document we can use the tag only in simple page master, but is 
> there any configuration related parameters that can give me finer control on 
> output (like not print Named Group (BNG)  or position of NOP etc)
>
> Thanks & Regards,
> Sandeep
>
> 
> From: Peter Hancock [peter.hanc...@gmail.com]
> Sent: Tuesday, January 18, 2011 6:32 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: AFP Rendering
>
> Hi Sandeep,
>
>
> Reading http://xmlgraphics.apache.org/fop/trunk/output.html#afp-no-operation,
> it appears that FOP only allows  NOP declarations in the Simple Page Master, 
> and so there may not be a way to control the position relative to where pages 
> begin and end.
>
> Can you please attach the fo file or perhaps a suitably cut down version if 
> you require further investigation.
>
> Thanks,
>
> Peter
>
>
> On Tue, Jan 18, 2011 at 11:45 AM, Dhulia, Sandeep  
> wrote:
>> Hi All,
>>
>>
>>
>> I am new to Apache AFP rendering and need your help. I am using Apache
>> FOP to get an AFP output for printing. I am using an afp extension
>> (no-operation) in fo file inside simple page master tag. I get the afp
>> output  file with below structure i.e.
>>
>> (Document Start)
>>
>>                  
>>
>>                 .
>>
>>                 (Named Group Start)
>>
>>                                 (Page)
>>
>>                                                 
>>
>>                                                 
>>
>>                                                 (This is coming
>> at page
>> level)
>>
>>                                 (Page)
>>
>>                  (Named Group End)
>>
>>
>>
>> (Named Group)
>>
>>                                 (Page)
>>
>>                                                 
>>
>>                                                 
>>
>>                                                 (This is coming
>> at page
>> level)
>>
>>                                 (Page)
>>
>>                 (Named Group)
>>
>>
>>
>>  (Document End)
>>
>>
>>
>> But my client wants to see the output in below format (without BNG tag
>> and NOP at document level)
>>
>>
>>
>> (Document Start)
>>
>> (for page below at document level)
>>
>>  (Page Start)
>>
>> 
>>
>>                 
>>
>> (Page End)
>>
>> (for page below at document level)
>>
>> (Page Start)
>>

RE: AFP Rendering

2011-01-27 Thread Peter Weber
Hello Sandeep

Have You got an answer or a solution on that issue?
I would really appreciate to place NOPs or other elements as valid NOPs in the 
document structure.

Otherwise, I have to find a way to solve this with TLEs, which needs change in 
the solution of the customer.

Thanks and Regards
Peter


-Original Message-
From: Dhulia, Sandeep [mailto:sandeep.dhu...@patni.com] 
Sent: Dienstag, 18. Januar 2011 15:14
To: fop-users@xmlgraphics.apache.org
Subject: RE: AFP Rendering

Hi Peter,

Thanks for your prompt response. Please find attached sample.fo which we are 
generating. I am also attaching an image(snap) of what is getting printed in 
afp file.

As per the document we can use the tag only in simple page master, but is there 
any configuration related parameters that can give me finer control on output 
(like not print Named Group (BNG)  or position of NOP etc)

Thanks & Regards,
Sandeep


From: Peter Hancock [peter.hanc...@gmail.com]
Sent: Tuesday, January 18, 2011 6:32 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: AFP Rendering

Hi Sandeep,


Reading http://xmlgraphics.apache.org/fop/trunk/output.html#afp-no-operation,
it appears that FOP only allows  NOP declarations in the Simple Page Master, 
and so there may not be a way to control the position relative to where pages 
begin and end.

Can you please attach the fo file or perhaps a suitably cut down version if you 
require further investigation.

Thanks,

Peter


On Tue, Jan 18, 2011 at 11:45 AM, Dhulia, Sandeep  
wrote:
> Hi All,
>
>
>
> I am new to Apache AFP rendering and need your help. I am using Apache 
> FOP to get an AFP output for printing. I am using an afp extension
> (no-operation) in fo file inside simple page master tag. I get the afp 
> output  file with below structure i.e.
>
> (Document Start)
>
>  
>
> .
>
> (Named Group Start)
>
> (Page)
>
> 
>
> 
>
> (This is coming 
> at page
> level)
>
> (Page)
>
>  (Named Group End)
>
>
>
> (Named Group)
>
> (Page)
>
> 
>
> 
>
> (This is coming 
> at page
> level)
>
> (Page)
>
> (Named Group)
>
>
>
>  (Document End)
>
>
>
> But my client wants to see the output in below format (without BNG tag 
> and NOP at document level)
>
>
>
> (Document Start)
>
> (for page below at document level)
>
>  (Page Start)
>
> 
>
> 
>
> (Page End)
>
> (for page below at document level)
>
> (Page Start)
>
> ...
>
> 
>
> (Page Start)
>
>   (Document End)
>
>
>
> How can I achieve this with Apache FOP.? I appreciate all your help. I 
> am using FOP 1.0
>
>
>
> Thanks & Regards,
>
> Sandeep
>
> 
> Information contained and transmitted by this e-mail is confidential 
> and proprietary to Patni Computer Systems Ltd and its affiliates 
> (hitherto referred as Patni Computers) and is intended for use only by the 
> recipient.
> If you are not the intended recipient , you are hereby notified that 
> any dissemination, distribution, copying or use of this e-mail is 
> strictly prohibited and you are requested to delete this e-mail 
> immediately and notify the originator or netad...@patni.com. Patni 
> Computers does not enter into any agreement with any party by e-mail. 
> Any views expressed by an individual do not necessarily reflect the 
> view of Patni Computers. Patni Computers is not responsible for the 
> consequences of any actions taken on the basis of information 
> provided, through this email. The contents of an attachment to this 
> e-mail may contain software viruses, which could damage your own 
> computer system. While Patni Computers has taken every reasonable 
> precaution to minimise this risk, we cannot accept liability for any 
> damage which you sustain as a result of software viruses. You should 
> carry out your own virus checks before opening an attachment. To know more 
> about Patni Computers please visit www.patni.com.
>

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

Re: circle or mask without svg

2011-01-27 Thread ingo peter

thanks jeremias,

ich have checked this.
the TIFF was in the wrong formati convert the TIFF in LZH now it 
works...

...but the result is not the best.

other try:
i can get all pictures as single pdfs. (nice)
can i embed this pdfs in circles with fop-pdf-images?
i heard about mask in pdf but find no further informations.

mfg
-ip-


By default, Batik (which handles SVG) can only process PNG, JPEG and

TIFF. So TIFF should work. If it doesn't, please post an example
document. EPS won't work at all. For PDF output, we have a special
plug-in in place that supports some additional formats but embedding EPS
in PDF is deprecated and therefore shouldn't (and often can't) be done.

On 26.01.2011 18:58:05 ingo peter wrote:

hi,
i search for a solution to embed eps/tiff-images in a circle-frame.
with svg i can do this only with jpg/png or svg.

any suggestions?

mfg/regards
-ip-




Jeremias Maerki


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





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



Re: circle or mask without svg

2011-01-26 Thread Peter Hancock
Hi Ingo,

There is no way to do this directly with FOP.  You will have to add
the frames before processing in FOP.  The EPS is a vector format
whilst tiff is a bitmap and so a different approach may be required
for each.  Are you able to transform the images to a format that you
can then use the SVG approach?

Peter

On Wed, Jan 26, 2011 at 5:58 PM, ingo peter  wrote:
> hi,
> i search for a solution to embed eps/tiff-images in a circle-frame.
> with svg i can do this only with jpg/png or svg.
>
> any suggestions?
>
> mfg/regards
> -ip-
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



circle or mask without svg

2011-01-26 Thread ingo peter

hi,
i search for a solution to embed eps/tiff-images in a circle-frame.
with svg i can do this only with jpg/png or svg.

any suggestions?

mfg/regards
-ip-

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



Re: AFP Rendering

2011-01-18 Thread Peter Hancock
Hi Sandeep,


Reading http://xmlgraphics.apache.org/fop/trunk/output.html#afp-no-operation,
it appears that FOP only allows  NOP declarations in the Simple Page
Master, and so there may not be a way to control the position relative
to where pages begin and end.

Can you please attach the fo file or perhaps a suitably cut down
version if you require further investigation.

Thanks,

Peter


On Tue, Jan 18, 2011 at 11:45 AM, Dhulia, Sandeep
 wrote:
> Hi All,
>
>
>
> I am new to Apache AFP rendering and need your help. I am using Apache FOP
> to get an AFP output for printing. I am using an afp extension
> (no-operation) in fo file inside simple page master tag. I get the afp
> output  file with below structure i.e.
>
> (Document Start)
>
>      ….
>
>     …..
>
>         (Named Group Start)
>
>         (Page)
>
>         ….
>
>         ….
>
>         (This is coming at page
> level)
>
>         (Page)
>
>      (Named Group End)
>
>
>
> (Named Group)
>
>         (Page)
>
>         ….
>
>         ….
>
>         (This is coming at page
> level)
>
>         (Page)
>
>         (Named Group)
>
>
>
>  (Document End)
>
>
>
> But my client wants to see the output in below format (without BNG tag and
> NOP at document level)
>
>
>
> (Document Start)
>
> (for page below at document level)
>
>  (Page Start)
>
> ….
>
>     ….
>
> (Page End)
>
> (for page below at document level)
>
> (Page Start)
>
>     …
>
>     ….
>
> (Page Start)
>
>   (Document End)
>
>
>
> How can I achieve this with Apache FOP.? I appreciate all your help. I am
> using FOP 1.0
>
>
>
> Thanks & Regards,
>
> Sandeep
>
> 
> Information contained and transmitted by this e-mail is confidential and
> proprietary to Patni Computer Systems Ltd and its affiliates (hitherto
> referred as Patni Computers) and is intended for use only by the recipient.
> If you are not the intended recipient , you are hereby notified that any
> dissemination, distribution, copying or use of this e-mail is strictly
> prohibited and you are requested to delete this e-mail immediately and
> notify the originator or netad...@patni.com. Patni Computers does not enter
> into any agreement with any party by e-mail. Any views expressed by an
> individual do not necessarily reflect the view of Patni Computers. Patni
> Computers is not responsible for the consequences of any actions taken on
> the basis of information provided, through this email. The contents of an
> attachment to this e-mail may contain software viruses, which could damage
> your own computer system. While Patni Computers has taken every reasonable
> precaution to minimise this risk, we cannot accept liability for any damage
> which you sustain as a result of software viruses. You should carry out your
> own virus checks before opening an attachment. To know more about Patni
> Computers please visit www.patni.com.
>

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



Re: Antialising issue with borders in PDF with fop-0.95

2011-01-13 Thread Peter Hancock
Hi Juergen,

What does a print of the pdf look like?  It may be the viewer (as
mentioned in the post you referenced) that is responsible for
anti-aliasing the pdf for screen display, and may not be a good
representation of the print.

Currently FOP draw each of the 4 border sections of a cell separately,
even when they should combine to form a continuous mark - likewise for
the neighbouring cells of a table.  Borders are represented as vector
drawing commands in a graphical stream within the PDF
 and the resolution of this drawing space is 1 millipoint - 1/1000th
of 1/72th of an inch.  The drawing commands are directly generated by
fop from the representation of the border - no intermediate Java2D ->
rasterisation process occurs, and so antialiasing is not an inherent
problem in the process.

I hope this helps,

Pete
On Thu, Jan 13, 2011 at 11:49 AM, Juergen Birkle
 wrote:
>
> Hi,
>
> when generating a table in PDF with FOP and XML the borders of the table
> appear in different width on the Screen (even with different PDF viewers!).
>
> I was searching the web and this forum and found the following Question in
> this forum:
> http://old.nabble.com/Rows-borders-look-so-bad...-td24715165.html
>
> In this thread "john farrow" wrote:
> "What you are seeing is Acrobat anti-aliasing some parts of the border and
> not others.  You can turn off anti-aliasing in Acrobat to make this go away
> (on your machine), otherwise FOP needs to be fixed to remove the problem.
> The problem occurs because some parts of the border are drawn using filled
> shapes and some are drawn using solid lines.  Acrobat applies anti-aliasing
> to one type of rendering and not the other."
>
>
> This is also my issue.
>
> This is my table at 100% in Acrobat Reader:
> http://old.nabble.com/file/p30661446/FOP_100.png FOP_100.png
>
> When looking at 400% at this image in gimp it is clearly visible, that the
> different borders are handled with different antialiasing:
> http://old.nabble.com/file/p30661446/FOP_100_400.png FOP_100_400.png
>
> Is there a patch available for FOP to solve this problem?
> Or is it possible to disable antialiasing from within XML or Java for
> borders? If that is possible, can you tell me how it is done. I couldn't
> find any reference for this at the web.
>
> From my point of view FOP should draw all lines of a table in the same way,
> not sometimes as filled shapes and sometimes as solid lines. Otherwise it is
> not possible to generate high quality tables with FOP!
>
> Best regards,
> Juergen
>
> --
> View this message in context: 
> http://old.nabble.com/Antialising-issue-with-borders-in-PDF-with-fop-0.95-tp30661446p30661446.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
>
>

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



Re: FOP 1.0 line feed not visible

2011-01-12 Thread Peter Hancock
Hi Philippe,

PDFRender was removed from FOP in rev 989178 of trunk (along with the
other renders
 along with AFPRender, PCLRender and PSRender.)
PDFPainter (and other collaborators) now implements the functionality
previously handled by PDFRender.
Some information about the new architecture is available at
http://xmlgraphics.apache.org/fop/trunk/intermediate.html

I hope that helps,

Peter


On Wed, Jan 12, 2011 at 9:22 AM, Simon Pepping  wrote:
> On Wed, Jan 12, 2011 at 10:00:14AM +0100, Philippe Pithon wrote:
>> Hi,
>>
>> I try snapshots...
>>
>> But problem... in FOP 1.0 I extend class PDFRenderer and in snapshot
>> this class not found
>
> Snapshots are binary downloads. For source downloads, see
> http://xmlgraphics.apache.org/fop/download.html.
>
> Simon
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: FOP 1.0 line feed not visible

2011-01-07 Thread Peter Hancock
Hi Philippe,

I think perhaps the linefeed-treatment='preserve' property on the
fo:block may be what you require.
See  http://www.w3.org/TR/2006/REC-xsl11-20061205/#linefeed-treatment
for more detail.

I hope that works for you.

Pete

On Fri, Jan 7, 2011 at 10:02 AM, Philippe Pithon  wrote:
> Hi,
> A little problem with FOP 1.0 (it's works with FOP 0.20.5)
> if I have linefeed (exa 0A) in XML node text, it's not visible in PDF result
> Any ideas ?
> Philippe Pithon
>
> XML :
> --
> line 1 (0A)
> line 2 (0A)
> line 3 (0A)
> 
>
> XSL :
> --
>  hyphenate="true" language="fr" text-align="left"
> white-space-collapse="false">
> 
> 
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: FOP 1.0: Generate PDF with plain text inside

2011-01-07 Thread Peter Hancock
Hi,

I also have the setting


null


but I do not think that is relevant to your requirement.

Pete

On Fri, Jan 7, 2011 at 11:08 AM, Peter Hancock  wrote:
> Hi Friedel,
>
> This is my config to supress  Flate encoding:
> 
>       null
>  
>
> So your config should work.  Did you try it?
>
> Pete
>
>
> On Fri, Jan 7, 2011 at 10:28 AM, Friedel  wrote:
>>
>> Hi
>>
>> I use FOP 1.0 on Win and UNIX and it works well. I do get PDFs with
>> compression switched on/off and see the size of the PDF changing.
>>
>> But I also like to have a PDF with the text inside readable, not only the
>> objects readable.
>> All I get is most of the content encoded (not readable), except the objects
>> (readable).
>> I'd like to be able to read also the text in the PDF if I open the PDF with
>> an editor.
>>
>> fop.xconf:
>>      
>>        null
>>        
>>        
>>      
>>
>> Is the a configuration to enable inside plain text PDF generation?
>>
>> Regards,
>> Friedel
>>
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/FOP-1.0%3A-Generate-PDF-with-plain-text-inside-tp30612984p30612984.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
>>
>>
>

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



Re: FOP 1.0: Generate PDF with plain text inside

2011-01-07 Thread Peter Hancock
Hi Friedel,

This is my config to supress  Flate encoding:

   null
 

So your config should work.  Did you try it?

Pete


On Fri, Jan 7, 2011 at 10:28 AM, Friedel  wrote:
>
> Hi
>
> I use FOP 1.0 on Win and UNIX and it works well. I do get PDFs with
> compression switched on/off and see the size of the PDF changing.
>
> But I also like to have a PDF with the text inside readable, not only the
> objects readable.
> All I get is most of the content encoded (not readable), except the objects
> (readable).
> I'd like to be able to read also the text in the PDF if I open the PDF with
> an editor.
>
> fop.xconf:
>      
>        null
>        
>        
>      
>
> Is the a configuration to enable inside plain text PDF generation?
>
> Regards,
> Friedel
>
>
> --
> View this message in context: 
> http://old.nabble.com/FOP-1.0%3A-Generate-PDF-with-plain-text-inside-tp30612984p30612984.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
>
>

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



block breaking page-columns

2010-12-29 Thread Kester, Peter
Hi all,

I have a page sequence with two columns on the page. Sometimes the content 
holds a table which should span both columns.
When this occurs the table gets spanned over the two columns but the part 
before the column gets pushed above the spanned block:
The order in my source file is:
block1, block2, block 3, block 4, wide table, block 5, block 6, block 7, block 8

| block 1   |  | block 3|
| block 2   |  | block 4|
| table spanned over both columns   |
| block 5   |  | block 7|
| block 6   |  | block 8|


But I would like to have the following for the column break.

| block 1   |  | block 5|
| block 2   |  | block 6|
| table spanned over both columns   |
| block 3   |  | block 7|
| block 4   |  | block 8|

It this possible or not?

Best regards,

Peter

Re: Creating Editable PDF forms with FOP

2010-12-09 Thread Peter Hancock
Hi Adam,

FOP does not currently support PDF forms, however I have been working
on an implementation against the AcroForms specification. I hope to
make this available to the community within the next few months; time
constraints have not allowed me to publish earlier.
Stay tuned!

Peter

On Thu, Dec 9, 2010 at 2:21 PM, Adam Kovacs  wrote:
> Dear All,
>
>  I have a simple and a complicated question.
> The simple is if FOP supports creating PDF forms? (I mean editable text 
> fields in the PDF)
> The complicated is if yes, how?
>
> Thanks in advance!
>
> Greetings,
>
> Adam Kovacs
> Using FOP 1.0
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: page-height and page-width not working.

2010-11-29 Thread Peter Coppens
Hello 

If I add "mm" to the page-height attribute it does seem to work ok when I try 
it.

Do note that a few other attributes on other elements are resulting in "SEVERE" 
messages from fop


Nov 30, 2010 8:52:16 AM org.apache.fop.fo.PropertyList 
convertAttributeToProperty
SEVERE: Ignoring property: start-indent=" " 
(file:/Users/pc/Downloads/fop-0.95/pagesize.fo:57:7: No conversion defined ; 
property:'start-indent')
Nov 30, 2010 8:52:16 AM org.apache.fop.fo.PropertyList 
convertAttributeToProperty
SEVERE: Ignoring property: start-indent=" " 
(file:/Users/pc/Downloads/fop-0.95/pagesize.fo:57:7: No conversion defined ; 
property:'start-indent')
Nov 30, 2010 8:52:16 AM org.apache.fop.layoutmgr.table.TableLayoutManager 
getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not supported => 
assuming width="100%"


Hope this helps

Peter

On 30 Nov 2010, at 02:55, gcit wrote:

> 
> Hi,
> I am trying to set the page( height) X ( width) to 51.42mm x 76.38mm. So far 
> I fail to get a document that is even close to this size. I have tried using
> px and inches. Any suggestions?
> 
> thanks
> 
> PS
> I coppied my document below. 
> 
> 
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> 
> 
> 
> 
> 
> http://www.w3.org/1999/XSL/Format";>
>  
>  page-width="51.42mm"page-height="76.36" >
>  
>  
>
>  
>  
> 
> 
>
> 
>   
>
>
>  
>   display-align="center"
>   
>
> 
>   height="20px"
>
>  
>   >
> 
>
>
>
>  
>   display-align="center"
>border-after-style="solid"
>  background-color="white"  
> border-end-style="solid"
> border-end-color="black"
> border-end-width="10px"
> border-start-style="solid"
> border-start-color="black"
> border-start-width="30px"
> 
> 
>   >
> 
> background-color="white"
> start-indent="10px" 
> end-indent="10px"
> space-after="10px"
> space-before="10px"
> text-align="left"
> keep-with-next="always"
>  
>   
>  
> >
> 
> 
>  font-weight="bold">
>Hello World!
>  
> 
>provisional-label-separation="3pt">
>
>
>  •
>
>
>   First item
>
>  
>
>
>  •
>
>
>   In a prior life I was a J2EE architect and worked for BEA
> and Oracle Professional services. I am familiar with a broad range of
> technologies.
> 
> 
>
>  
>
>
>  •
>
>
>   First item
>
>  
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>  
>
>  
> 
> 
>
>  
>
>  
> 
> 
> 
> 
> 
> 
>
>  
> 
> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/page-height-and-page-width-not-working.-tp30336367p30336367.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
> 


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



Re: Cropping output to content

2010-11-29 Thread Peter Hancock
Hi Craig,

I think that post processing the area tree will be the only solution -
FOP can only fit content to page view-ports and not the reverse.  To
make life easy you could use id's to demarcate  the section you want
to preview, making the extraction easier.

Ideally you should process a whole page sequence, and not just a
snippet: The problem with processing a section of the whole document
is that the layout of that section is dependent on the whole document
Generating just a small section will potentially yield a  preview that
does not match the final layout.

Pete


On Mon, Nov 29, 2010 at 8:44 AM, Craig Ringer
 wrote:
> Hi all
>
> For the project I'm working on, I'm finding myself with the need to
> generate previews of partial (snippet) XSL-FO content for users.
>
> As part of that, I'm finding that I want to "rubber band" or clip the
> output so that excess white space is omitted. As I don't seem to see any
> way to make a page template contract to fit the content I suspect I'll
> be post-processing the area tree or the final output to crop it around
> the content.
>
> I'm just wondering if there's some obvious approach I might be missing.
> I'm not loving the idea of more area tree processing, though it's worked
> very well for the vertical space distribution problem I had a while ago.
>
> --
> System & Network Administrator
> POST Newspapers
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: Filesize of Images

2010-11-25 Thread Peter Hancock
On Thu, Nov 25, 2010 at 12:43 PM, JPee  wrote:
Hi JPee,

Have you tried adjusting the default resoulation settings in your
fop.xconf file (assuming you are using one-
http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-available)?
Have a look at the source-resolution/target-resolution settings
defined in  
http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements

I am not sure that any resizing can be done based on image resolution
but setting the size and target-resolution will alter the file size.

Pete

>
> Hello community,
>
> we are using FOP for rendering some pdf files from data. The pdf includes
> some images, which can be very big (up to 5mb). So the outcoming pdf with 3
> images is about 15+ mb. Inside the pdf the images are shown in a lower
> solution.
>
> Is there a way that the imagesize is also scaled down dependant on
> imagesolution?
>
>
> To prevent big pdfs our editors must customize the images at the moment. Is
> this step really necessary?
>
> Thanks
> JPee
> --
> View this message in context: 
> http://old.nabble.com/Filesize-of-Images-tp30304887p30304887.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
>
>

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



Re: AW: How to hyphenate nonwords?

2010-11-23 Thread Peter Hancock
Hi Alexander,

Before questioning FOP's implementation you may want to consult the
xsl:fo specification at http://www.w3.org/TR/2006/REC-xsl11-20061205/
first.
If you believe that FOP strays from this, then please raise your
concern on this list.

Often times the solution to a particular problem cannot be elegantly
expressed in xsl:fo, however, xsl:fo is not designed as a human
writable/readable data format and xslt processors should not be phased
by a documents poor aesthetic quality.  Computers are good at doing
boring jobs like adding zero width space to strings so I would
recommend figuring out a way to process the things like serial numbers
when you include them in your fo.

Pete
On Tue, Nov 23, 2010 at 9:34 AM, Alexander Uvarov
 wrote:
>
> On 23.11.2010, at 14:21, Georg Datterl wrote:
>
>> Hi Alexander,
>>
>>> Sounds insane for me. I have a lot of places in documents where i need 
>>> forced hyphenation.
>>> It's unacceptable solution.
>>> I am wondering why fop don't offer any elegant solution.
>>
>> Well, can you think of an elegant solution?
>>
>>> Why not just consider all strings as strings with zero width space after 
>>> each characters?
>>
>> Because then hyphenation would not work at all, because after every 
>> character there would be a possible place to hyphenate. And that's simply 
>> not correct in normal language.
>
> Table cell overflow is also inappropriate. If string can't be successfully 
> hyphenated, in case of overflow forced hyphenation would be better than just 
> overflow. Imho.
>
>>
>> Regards,
>>
>> Georg Datterl
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: static content ignored

2010-11-19 Thread Peter Hancock
Hi Rob,

>       column-count="1" />
>      
This should be region-name I believe?

>      

Re: How to tell line# in input file that is generating error

2010-11-18 Thread Peter Hancock
Hi Steve,

I am not familiar with the DITA Open Toolkit, but to get line numbers you
need to explicitly pass fo to FOP and not the combination of xml and the
xslt that FOP initially transforms to fo.  Maybe DITA provides a way to get
the intermediate fo so that you can run it through fop yourself.

Pete

On Thu, Nov 18, 2010 at 2:19 AM, Steve Fogel  wrote:

>  Hi, all…
>
>
>
> With Apache FOP 0.95 (the one that comes with the DITA Open Toolkit), I’m
> getting many error messages like this:
>
>
>
>   [fop] Nov 17, 2010 3:58:21 PM
> org.apache.fop.fo.properties.LengthRangeProperty checkConsistency
>
>   [fop] SEVERE: forcing opt to min in LengthRange
>
>
>
> How can I tell which line # in the FO input file is generating the error?
> I’ve tried debug mode and verbose mode, but neither seems to do much. Any
> tricks?
>
>
>
> Thanks
>
>
>
> Steve
>
>
>
> P.S. – I know what the message means. It’s just that my FO input file is
> over 50K lines, so it’s hard to find the culprit.
>
>
>
> --
> [image: Oracle] 
> Steve Fogel | Information Architect, Oracle Database
> Phone: +1 6505064914 | Mobile: +1 4153098660
> 500 Oracle Parkway, M/S 4op1126 | Redwood Shores, CA 94065
>
> [image: Green Oracle] 
>
> Oracle is committed to developing practices and products that help protect
> the environment
>
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
<><>

Re: FOP 0.9.5 and Too many Files Open...image Files in my case...

2010-11-18 Thread Peter Hancock
Hi Durga,

Before trying to resolve this particular issue, are you able to
upgrade to 1.0?  It is possible that your particular issue has been
resolved after 0.95.
There are threads on the mailing list that report similiar problems, e.g.
http://old.nabble.com/Too-many-open-images--td25664263.html#a25664263
http://old.nabble.com/Keeping-memory-usage-low-when-FOP-is-not-running-and-avoid-open-file-handles-after-FOP-is-run-td29202650.html#a29205862

Let me know if you want further help

Pete

On Wed, Nov 17, 2010 at 3:49 PM, Nuvvula, Durga  wrote:
> Hi,
>
>
>
> I am using the FOP 0.9.5 for my pdf generation. I have made sure that I have
> closed all the input streams that I have opened for pdf generation.
>
>
>
> I am not opening the image files(.tiff,.gif,.png etc) directly but I am
> using them in my XSL. I have made sure that my xsl stream is closed properly
> in the finally block.
>
>
>
> When I track the number of open files through lsof, I am observing the image
> files(.tiff,.gif,.png etc) not closed because of this it is reaching the
> limit of number of open files and have to restart the server. Our server has
> the configuration of open files to 1024.
>
>
>
> Do I need to do anything extra for closing the image files that have opened
> by the FOP internally?
>
>
>
> Any help or suggestions towards the resolution of the problem is
> appreciated.
>
>
>
> Thanks In Advance.
>
>
>
> Best Regards,
>
> Durga Prasad
>
> 46943895956
>
>

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



Re: using an existing pdf as overlay

2010-11-02 Thread Peter Hancock
Hi Erik,

I am not sure if my solution is the most elegant but for ideas have a
look at the files in the attached zip.
in.fo is  for the final document- you will have to change the path to
the generated overlay.pdf.
overlay.fo was used to create overlay.pdf.
out.pdf is the final result.

For busy readers who do not have time to look at the attacmnet the
relavent fo snippet is



  
  Apache FOP (Formatting Objects Processor) is a print formatter driven by
  XSL formatting objects (XSL-FO) and an output independent formatter.
  It is a Java application that reads a formatting object (FO) tree and rend
  Output formats currently supported include
  PDF, PS, PCL, AFP, XML (area tree representation), Print,
  AWT and PNG, and to a lesser extent, RTF and TXT.
  The primary output target is PDF 









I hope this helps.

pete
On Tue, Nov 2, 2010 at 1:25 AM, erik pepermans  wrote:
> Hi,
>
>
>
> I tried to combine fop-pdf-images-2.0.0 with fop-1.0
>
> So far so good. How can I use the pdf document from the  fo:external-graphic
> command as an overlay for subsequent blocks ?
>
>
>
> Thanks
>
>
>
> Brgds
>
> Erik
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

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



Re: JEuclid and FOP

2010-11-01 Thread Peter Hancock
Hi Srikrishnan,

I have had success creating a pdf from the mathml.fo input found with
the 0.95 source code using FOP 1.0.
All I did to do was place jeuclid-core-3.1.9.jar and
jeuclid-fop-3.1.9.jar in FOP's lib directory as instructed.

I am not a windows user and so there may be an environmental reason
you are not have success but I do not think that is likely.

Maybe you could elaborate further on your setup and environment,
giving myself or perhaps another user more insight into your problem.

Pete




On Mon, Nov 1, 2010 at 11:11 AM, SriKrishnan  wrote:
> Hi Pete,
>
> Thanks for aware me about the new version. Now I have downloaded fop 1.0.
> Even in that I am not able to fix Mathml option.
>
> FYI: as per I mentioned in my mail "readme.fop" file which available inside
> the “jeuclid-3.1.9-distribution.zip”, itself they mentioned that both the
> jar files are copied into fop 0.95 version.
>
> Can you please help me to fix this problem either in fop 1.0 or fop 0.95?
>
> Thanks,
> Srikrishnan
>
> -Original Message-
> From: Peter Hancock [mailto:peter.hanc...@gmail.com]
> Sent: Monday, November 01, 2010 4:05 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: JEuclid and FOP
>
> Hi SriKrishnan,
>
> Recent versions of jeuclid are not compatible with fop 0.95:
> examples/mathml/build.xml of 0.95 refers to a jeuclid class
> net.sourceforge.jeuclid.MathBase, however this was removed from
> jeuclid in revision 425:c7cae27888cf (in 2007).
> The mathml support in FOP is now maintained by the JEuclid project, as
> stated in the examples/mathml/README of FOP trunk.
>
> I would recommend ugrading your version of FOP to 1.0 or even trunk
> and then follow the jeuclid-fop integration instructions that should
> be found  somewhere at either
> http://jeuclid.sourceforge.net/
> or
> http://sourceforge.net/projects/jeuclid/
>
> If you really need to use 0.95 (although I certainly recommend
> upgrading to at 1.0 or above) then you will have to figure out which
> version of jeuclid is compatible and then probably  build it from the
> source.  Shout out if this is your only practical solution and I can
> help you out further.
>
> Pete
>
>
> On Sun, Oct 31, 2010 at 8:44 AM, SriKrishnan 
> wrote:
>> Hi all,
>>
>>
>>
>> Can anybody provide me a step-by-step installation procedure document of
>> Jeuclid plugin in FOP? As I am new to FOP and java, I don’t know how to
>> solve this problem.
>>
>>
>>
>> Because I have downloaded and copied the following files:
>>
>>
>>
>> jeuclid-core-3.1.9.jar
>>
>> jeuclid-fop-3.1.9.jar
>>
>>
>>
>> in my “C:\fop-0.95\examples\mathml\lib”  folder (as per mentioned int the
>> readme.txt file residing inside that folder)
>>
>>
>>
>> also as per the below instruction in the “readme.fop” file which available
>> inside the “jeuclid-3.1.9-distribution.zip”,
>>
>>
>>
>>  ---
>>
>>   JEuclid FOP plug-in
>>
>>   ---
>>
>>
>>
>> Installation
>>
>>
>>
>> * Pre-requesites
>>
>>
>>
>>   The JEuclid FOP plug-in is tightly integrated with FOP development, it
>> will
>>
>>   therefore only work with specific versions of FOP. For this version you
>> need:
>>
>>
>>
>>   * FOP 0.95beta or 0.95
>>
>>
>>
>> * Actual installation
>>
>>
>>
>>   Copy the these files into your fop's lib/ directory
>>
>>
>>
>>   * jeuclid-core-x.x.x.jar
>>
>>
>>
>>   * jeuclid-fop-x.x.x.jar
>>
>>
>>
>>   []
>>
>>
>>
>>   If you have downloaded the full JEuclid distribution, these files can be
>> found in the
>>
>>   repo/ sub-directory.
>>
>>
>>
>> That's it! Enjoy MathML support in FOP.
>>
>>
>>
>> I have copied the two files inside the following folder “C:\fop-0.95\lib”
>>
>>
>>
>> Eventhough I encountered the same error as follows:
>>
>>
>>
>> C:\fop-0.95\examples\mathml\docs>fop mathml.fo mathml.pdf
>>
>> Oct 31, 2010 2:07:07 PM org.apache.fop.fo.ElementMappingRegistry
> findFOMaker
>>
>> WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math
>>
>>
>>
>> Can anybody help me to fix this issue?
>>
>>
>>
>> FYI:
>>
>>
>>
>> MY OS: Windows xp professional
>>
>> My FOP Version: 0.95
>>
>>
>>
>> Thanks,
>>
>> Srikrishnan
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: JEuclid and FOP

2010-11-01 Thread Peter Hancock
Hi SriKrishnan,

Recent versions of jeuclid are not compatible with fop 0.95:
examples/mathml/build.xml of 0.95 refers to a jeuclid class
net.sourceforge.jeuclid.MathBase, however this was removed from
jeuclid in revision 425:c7cae27888cf (in 2007).
The mathml support in FOP is now maintained by the JEuclid project, as
stated in the examples/mathml/README of FOP trunk.

I would recommend ugrading your version of FOP to 1.0 or even trunk
and then follow the jeuclid-fop integration instructions that should
be found  somewhere at either
http://jeuclid.sourceforge.net/
or
http://sourceforge.net/projects/jeuclid/

If you really need to use 0.95 (although I certainly recommend
upgrading to at 1.0 or above) then you will have to figure out which
version of jeuclid is compatible and then probably  build it from the
source.  Shout out if this is your only practical solution and I can
help you out further.

Pete


On Sun, Oct 31, 2010 at 8:44 AM, SriKrishnan  wrote:
> Hi all,
>
>
>
> Can anybody provide me a step-by-step installation procedure document of
> Jeuclid plugin in FOP? As I am new to FOP and java, I don’t know how to
> solve this problem.
>
>
>
> Because I have downloaded and copied the following files:
>
>
>
> jeuclid-core-3.1.9.jar
>
> jeuclid-fop-3.1.9.jar
>
>
>
> in my “C:\fop-0.95\examples\mathml\lib”  folder (as per mentioned int the
> readme.txt file residing inside that folder)
>
>
>
> also as per the below instruction in the “readme.fop” file which available
> inside the “jeuclid-3.1.9-distribution.zip”,
>
>
>
>  ---
>
>   JEuclid FOP plug-in
>
>   ---
>
>
>
> Installation
>
>
>
> * Pre-requesites
>
>
>
>   The JEuclid FOP plug-in is tightly integrated with FOP development, it
> will
>
>   therefore only work with specific versions of FOP. For this version you
> need:
>
>
>
>   * FOP 0.95beta or 0.95
>
>
>
> * Actual installation
>
>
>
>   Copy the these files into your fop's lib/ directory
>
>
>
>   * jeuclid-core-x.x.x.jar
>
>
>
>   * jeuclid-fop-x.x.x.jar
>
>
>
>   []
>
>
>
>   If you have downloaded the full JEuclid distribution, these files can be
> found in the
>
>   repo/ sub-directory.
>
>
>
> That's it! Enjoy MathML support in FOP.
>
>
>
> I have copied the two files inside the following folder “C:\fop-0.95\lib”
>
>
>
> Eventhough I encountered the same error as follows:
>
>
>
> C:\fop-0.95\examples\mathml\docs>fop mathml.fo mathml.pdf
>
> Oct 31, 2010 2:07:07 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
>
> WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math
>
>
>
> Can anybody help me to fix this issue?
>
>
>
> FYI:
>
>
>
> MY OS: Windows xp professional
>
> My FOP Version: 0.95
>
>
>
> Thanks,
>
> Srikrishnan

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



Re: Wider TXTRender output

2010-10-28 Thread Peter Hancock
Hi Intasi,
The TXTRenderer produces ASCII text output which at best will be a
crude match of a PDF document: see
http://xmlgraphics.apache.org/fop/trunk/output.html#txt
A page layout has to be mapped to the ASCII text grid, with
predictable issues surrounding text spacing, graphics representation
etc.

The docs suggest that best results come from using monospaced fonts
with suitably calibrated font sizes and line heights.

I hope you project does not depend on eye-pleasing txt docs!

Pete

On Thu, Oct 28, 2010 at 12:14 PM, intasi  wrote:
> have any of you notice that, the TXTRender output is "Wider" than the PDF?
> any sugestions where i should look in to ?
>
> Thanks
> Asitha Weerasinghe

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



RE: FOP - AFP Rendering in OCR-B

2010-10-15 Thread Peter Weber
Hi FOP users

Today was a great success!
We managed to get the AFP output working with OCR-B font.

To transform outline fonts with TypeTransformer was a good approach.
What I couldn't know was the fact, AFP code pages cannot be found easily in the 
internet.
You have to request one from a person working with AFP fonts and code pages.

When the Instructions below has been followed, and the according code page is 
present AFP will work great with OCR-B!

Remember:
The OCR font I posted here isn't a real OCR-B font!
Maybe of licensing purposes, the space character and the exclamation mark 
(probably more) are different to real OCR-B fonts.

Thanks for the support and hopefully my success will lead others to theirs :)

Regards
Peter

-Original Message-
From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch]
Sent: Montag, 11. Oktober 2010 18:25
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP - AFP Rendering in OCR-B

Hi Peter

On 08.10.2010 17:23:39 Peter Weber wrote:
> Hi Jeremias
>
> Sounds like I was on a good way with TypeTransformer.
> I followed Your instructions. I choose a Type 1 font 'ocrb10.pfm' and 
> transformed it to an AFP Outline font.
> This font You can download at:
> http://ansuz.sooke.bc.ca/software/ocrb-complete.zip
>
> I didn't configure any sizes, bitmap fonts, etc. I just leaved everything 
> empty in TypeTransformer and started the job.
>
> I got an error message:
> ->There are missing characters in the character list that was generated using 
> filters.

I get that, too. I don't think that's a problem as long as you don't need very 
special characters.

> But TypeTransformer produced an OLN font 'CZA080.OLN', where I've removed the 
> file extension.
>
>
> My Config:
> 
>characterset="CZA282  " path="C:\Program Files (x86)\Type 
> Transformer\DUVTT\JOBPATH\OCRB10"/>
>
>
> The Exception is the same like before:
> org.apache.avalon.framework.configuration.ConfigurationException: Failed to 
> load the character set metrics CZA282   with
>  code page T1EDO500. I/O error: Resource not found: T1EDO500
>
> Then I replaced the character set with 'CZA080', tried different code
> pages and different disk location of the font-folder (TypeTransformer
> default directory/Project directory).
>
> It's always the same error.

That's strange. What I did was create a new directory somewhere and copy the 
character set file and the codepage file into that directory. Then I set "path" 
to this directory. That worked.

> TypeTransformer provides the possibility to set Character Filters and a pre 
> defined Character List OCR-B.
> But I can't see any difference.

I wouldn't expect one. I think this is just a possibility to keep the character 
set (and file size) small by only transforming the characters you really need. 
For example, if you only need to print a Swiss ESR form, you only need 
"0123456789>+" and a space.

> Last but not least I tried to get the metrics with PFMReader. Unfortunately, 
> I am not very familiar to Java so I couldn't get it working.
> I was following these instructions:
> http://xmlgraphics.apache.org/fop/1.0/fonts.html#advanced
> I changed the filenames to the current versions like 
> 'avalon-framework-4.2.0.jar'.
>
> Following exception was generated:
> Failed to load Main-Class manifest attribute from {some
> path}\fop-1.0\lib\commons-io.jar

Forget PFMReader. It's of no use anymore. It's still there for historical 
reasons.

I managed to produce an AFP file with the OCR-B font converted to an outline 
font. However, the exclamation mark is converted to an "|" for some reason I 
haven't investigated, yet. Furthermore, some viewers had problems with the 
file, either completely or just with the first line (see attachments).

I then also generated raster fonts (8, 9, 10, 11 and 12pt at 240dpi) and tried 
those, also with T1EDO500/Cp500. That gave me even better results in terms of 
viewer compatibility.

I guess TypeTransformer may not be the fail-safe tool. At any rate, I'll have 
to investigate that strange character substitution when I have more time. It's 
not the first time I run into this.

HTH

>
> Thanks for Your response Jeremias.
> Do You have any tip left?
>
> Regards
> Peter
>
>
> -Original Message-
> From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch]
> Sent: Donnerstag, 7. Oktober 2010 10:12
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP - AFP Rendering in OCR-B
>
> Hi Peter
>
> Incidentally, I had to look into IBM's TypeTransformer for a client
> recently. I haven't gone the raster font route. I had some problems
> t

RE: FOP - AFP Rendering in OCR-B

2010-10-08 Thread Peter Weber
Hi Jeremias

Sounds like I was on a good way with TypeTransformer.
I followed Your instructions. I choose a Type 1 font 'ocrb10.pfm' and 
transformed it to an AFP Outline font.
This font You can download at: 
http://ansuz.sooke.bc.ca/software/ocrb-complete.zip

I didn't configure any sizes, bitmap fonts, etc. I just leaved everything empty 
in TypeTransformer and started the job. 

I got an error message:
->There are missing characters in the character list that was generated using 
filters.

But TypeTransformer produced an OLN font 'CZA080.OLN', where I've removed the 
file extension.


My Config:





The Exception is the same like before:
org.apache.avalon.framework.configuration.ConfigurationException: Failed to 
load the character set metrics CZA282   with
 code page T1EDO500. I/O error: Resource not found: T1EDO500

Then I replaced the character set with 'CZA080', tried different code pages and 
different disk location of the font-folder (TypeTransformer default 
directory/Project directory).

It's always the same error.

TypeTransformer provides the possibility to set Character Filters and a pre 
defined Character List OCR-B.
But I can't see any difference.

Last but not least I tried to get the metrics with PFMReader. Unfortunately, I 
am not very familiar to Java so I couldn't get it working.
I was following these instructions:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#advanced
I changed the filenames to the current versions like 
'avalon-framework-4.2.0.jar'. 

Following exception was generated:
Failed to load Main-Class manifest attribute from {some 
path}\fop-1.0\lib\commons-io.jar


Thanks for Your response Jeremias.
Do You have any tip left?

Regards
Peter


-Original Message-
From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
Sent: Donnerstag, 7. Oktober 2010 10:12
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP - AFP Rendering in OCR-B

Hi Peter

Incidentally, I had to look into IBM's TypeTransformer for a client
recently. I haven't gone the raster font route. I had some problems
there. Instead, I produced an outline font from a Type 1 font. Here's
what I did:

- Choose a Type 1 font in TypeTransformer (I took Sansa-Normal)
- Leave the Sizes empty.
- Choose "AFP Outline" as output font. Uncheck bitmap fonts.
- Leave character filters empty (remove them if present).
- Start the job.
--> that should produce a good OLN font with as many characters as are 
available in the
Type 1 font.

- Remove the ".OLN" at the end.
- Add a configuration entry like this:


  
  


Of course, you should also be able to use a different codepage, but
Cp500/T1EDO500 worked fine for me incl. German Umlauts, but except, for
some reason, the exclamation mark. I haven't investigated more closely,
yet. The codepage basically just selects the 8-bit subset you want to
work with. You just have to make sure your selected codepage has as many
of the font's characters mapped so you get most of the 256 (8-bit) character
set as possible.

So I assume a similar approach should work in your case. Your "Resource
not found: T1000893" means you may need to move the code page file to
the same place as the character set. And you should consider using
absolute URIs instead of relative paths. Relative paths are usually
resolved based on the current directory of the application. "base-uri"
and "path" are pretty much interchangeable: "base-uri" expects a URI,
"path" a file system path.

HTH

On 05.10.2010 11:26:26 Peter Weber wrote:
> Hello
> 
> I was playing around with IBM TypeTransformer and thought I found a way to 
> get this working.
> Type Transformer Created 3 raster Fonts for me:
> - C0A080A0.240
> - C0A08000.240
> - C0A08090.240
> 
> Wow, looks like the mystic characterset I couldn't figure out what it really 
> is! :)
> 
> One step forward but it still doesn't work.
> Here my Configuration:
> 
> 
>base-uri="file:/../ocrb10/">
>   
>   
>   
>   
>   
> 
> 
> When I run this with a simple Template. I get following error:
> SCHWERWIEGEND: Exception
> org.apache.avalon.framework.configuration.ConfigurationException: Failed to 
> load the character set metrics C0A08090 with
>  code page T1000893. I/O error: Resource not found: T1000893
> 
> 
> I tried some things with the path:
> "../ocrb"
> "/../ocrb"
> "file:/../ocrb"
> "file://../ocrb"   
> "file:///../ocrb" 
> -> Same Exception as above.
> 
> "..\ocrb" 
> -> FOP replaces the config with the default config.
> 
> base-uri="file:///D:/Labor/REM/REM_Reporting/af

Re: Creating PDFs with fields using FOP

2010-10-07 Thread Peter Hancock
Hi Mithun,

I have been working on implementing AcroForms in FOP - see
http://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg15037.html

Unfortunately other commitments have not allowed me to ready the work
for submission to the community, although I have recently been tasked
to complete this work and will use this as an opportunity to submit my
work.

Watch this space!

Peter

On Thu, Oct 7, 2010 at 9:39 AM, Jeremias Maerki  wrote:
> FOP 1.0 allows to create tagged PDF: 
> http://xmlgraphics.apache.org/fop/trunk/accessibility.html
>
> As for AcroForms, FOP has currently nothing in this area. But if I'm not
> mistaken someone may be working on that. I'm also not sure if we have
> something in a Bugzilla issue somewhere.
>
> On 05.10.2010 22:21:46 mithunk wrote:
>>
>> Hi,
>> Can we create PDFs that have form fields (similar to Acroforms) using FOP?
>>
>> The reason why I am looking for this is: I need to create PDFs and send to
>> another program which stamps user signature on to the PDF that sent. So the
>> other program is taking pdf file and signature field (either coordinates or
>> field name) as input parameters. I am able to generate PDFs but not able to
>> identify position of the signature field, and neither I am able to find any
>> way of creating tagged pdf (pdf with fields).
>> Please share your idea on how can I achieve my requirement.
>>
>> Thanks,
>> Mithun Kulkarni
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/Creating-PDFs-with-fields-using-FOP-tp29890897p29890897.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>
>
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



RE: FOP - AFP Rendering in OCR-B

2010-10-05 Thread Peter Weber
(IFUtil.java:165)
at 
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:181)
at org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:73)
at 
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)
at org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:102)
at 
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:359)
at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:105)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)
at org.apache.fop.apps.Fop.(Fop.java:79)
at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:109)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.io.FileNotFoundException: Resource not found: T1000893
at 
org.apache.fop.afp.util.DefaultFOPResourceAccessor.createInputStream(DefaultFOPResourceAccessor.java:72)
at 
org.apache.fop.afp.fonts.CharacterSetBuilder.openInputStream(CharacterSetBuilder.java:162)
at 
org.apache.fop.afp.fonts.CharacterSetBuilder.loadCodePage(CharacterSetBuilder.java:309)
at 
org.apache.fop.afp.fonts.CharacterSetBuilder.build(CharacterSetBuilder.java:222)
at 
org.apache.fop.render.afp.AFPRendererConfigurator.fontFromType(AFPRendererConfigurator.java:206)
... 16 more

-Original Message-
From: Peter Weber [mailto:peter.we...@garaio.com] 
Sent: Montag, 4. Oktober 2010 14:48
To: fop-users@xmlgraphics.apache.org
Subject: FOP - AFP Rendering in OCR-B

Hi FOP users

One Question as simple as possible.
How do I configure OCR-B font in FOP for the AFP Renderer?

It would be very great if You can tell me which CodePage, Caractersets, 
Encoding etc., I need to submit in the fop.xconf.
I need to use OCR-B font in an AFP Document.

Last week I have posted a similar Problem but I think I've lost myself in the 
problem, there:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201010.mbox/browser

Thank You very much for Your help
Peter


RE: Creating a tagged PDF

2010-10-04 Thread Peter Kester
Mind you, there is a bug in FOP 1.0 regarding the tags for table-header and 
table-border.
FOP 1.0 gives them the default value Thead and Tbody but these are not in the 
PDF 1.4 spec.
You have to rename these with the role attribute Table.

Best regards,

Peter




ing. P.A. (Peter) Kester
Senior Consultant

Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

mailto:peter.kes...@daidalos.nl
http://www.daidalos.nl/

KvK 27164984


De informatie - verzonden in of met dit e-mailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

Van: Vincent Hennebert [mailto:vhenneb...@gmail.com]
Verzonden: vrijdag 1 oktober 2010 17:14
Aan: fop-users@xmlgraphics.apache.org
Onderwerp: Re: Creating a tagged PDF

Hi,

FOP 1.0 has some support for creating accessible PDFs:
http://xmlgraphics.apache.org/fop/1.0/accessibility.html

HTH,
Vincent


On 01/10/10 15:57, mithunk wrote:
>
> Hi,
> I am also looking for a similar problem. Did you find a way to do this?
>
> Thanks,
> Mithun
>
> TD Tom wrote:
>>
>> Good day,
>>
>> I would like to know who to create an Accessible PDF (tagged PDF)
>> that can be read aloud by a screen reader. We currently use Apache
>> FOP 0.20.5 but I cannot seem to produce a tagged PDF. Is there a way this 
>> can be achieved?
>>
>> Thank you,
>>
>>
>> Tom McGaughey
>>
>> 
>> NOTICE OF CONFIDENTIALITY
>> This communication including any information transmitted with it is
>> intended only for the use of the addressees and is confidential.
>> If you are not an intended recipient or responsible for delivering
>> the message to an intended recipient, any review, disclosure,
>> conversion to hard copy, dissemination, reproduction or other use of
>> any part of this communication is strictly prohibited, as is the
>> taking or omitting of any action in reliance upon this communication.
>> If you receive this communication in error or without authorization
>> please notify us immediately by return e-mail or otherwise and
>> permanently delete the entire communication from any computer, disk
>> drive, or other storage medium.
>>
>> If the above disclaimer is not properly readable, it can be found at
>> www.td.com/legal
>>
>> AVERTISSEMENT DE CONFIDENTIALITE
>> Ce courriel, ainsi que tout renseignement ci-inclus, destiné
>> uniquement aux destinataires susmentionnés,  est confidentiel.  Si
>> vous n'êtes pas le destinataire prévu ou un agent responsable de la
>> livraison de ce courriel, tout examen, divulgation, copie,
>> impression, reproduction, distribution, ou autre utilisation d'une
>> partie de ce courriel est strictement interdit de même que toute
>> intervention ou abstraction à cet égard.  Si vous avez reçu ce
>> message par erreur ou sans autorisation, veuillez en aviser
>> immédiatement l'expéditeur par retour de courriel ou par un autre
>> moyen et supprimer immédiatement cette communication entière de tout système 
>> électronique.
>>
>> Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
>> pouvez le consulter à www.td.com/francais/legale
>>
>>
>

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



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



FOP - AFP Rendering in OCR-B

2010-10-04 Thread Peter Weber
Hi FOP users

One Question as simple as possible.
How do I configure OCR-B font in FOP for the AFP Renderer?

It would be very great if You can tell me which CodePage, Caractersets, 
Encoding etc., I need to submit in the fop.xconf.
I need to use OCR-B font in an AFP Document.

Last week I have posted a similar Problem but I think I've lost myself in the 
problem, there:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201010.mbox/browser

Thank You very much for Your help
Peter


RE: Font mapping for AFP Output

2010-10-01 Thread Peter Weber
Hi Peter,

Thank You very much for Your answer.
It took some time to proof all of your tipps.

---
First off, what version of FOP are you using?  This will have some
baring on what support there will be available for you.
---

-> I'm using the new Version of FOP 1.0
-> It should provide better support for AFP than older versions

---
Have you taken a look at the FOP docs or the wiki?
http://xmlgraphics.apache.org/fop/trunk/output.html#afp-font-config
http://wiki.apache.org/xmlgraphics-fop/AFPFonts
---

-> Yes I have... my biggest problem seems to be the understanding of 
configuring custom GCUID fonts.

---
There are a few problems i can spot with your config.   Most notably,
the afp-raster-f...@characterset should refer to the actual character
data for the custom font you want to embed and that you have made
available to FOP - you are instead referencing IBM base fonts that
should be available in  any AFP environments (Print servers or
viewers) that you are using.  
---

-> On http://www-03.ibm.com/systems/i/software/globalization/codepages.html I 
found codepages for OCR-B Font.
-> FOP tells me, it can't find any of them: 
org.apache.avalon.framework.configuration.ConfigurationException: Failed to 
load the character set metrics CZJHMNU with code page T1000893. I/O error: 
Resource not found: T1000893
-> Of course, the used character set isn't correct, but how do I find the right 
one?
-> I'm not sure but it seems to me, these codepages aren't available to FOP...?
-> I cannot imagine IBM printers, also AFP Output of FOP, can live without the 
OCR font. It is essential for bills and other OCR issues.


The font-triplet element configures how you can reference the font in your .fo 
document.  


-> this is one of the only things I understood till now :)

-
I am guessing that
the AFP you generate, whilst referencing ocrb[10], actually results in
the default Times Roman font.
--

-> Yes, this is true... my snippet was not optimal. I had to post anything to 
illustrate where I stand.


To resolve this you need to first determine what kind of font you have
(outline (.OLN), raster- this usually comes with a collection of files
for different sizes and styles).  This may not be that obvious to you
and I have had trouble myself doing the same thing.  I have resorted
to using and AFP binary reader to determine this - maybe some other
AFP FOP users have some better instructions for you on this subject.


-> Under the following link You can find the font I need to embed: 
http://ansuz.sooke.bc.ca/software/ocrb-complete.zip
-> It contains multiple formats. AFM, PFB, TTF and PFM

Another approach was to refer to the directory with the OCR fonts:






The same problem here is the absence of the codepage 'T1000893' or 'T1000877'.
What is the correct codepage for OCR-B?
How do I find correct characterset? Or how do I build the correct 
characterset-reference string using these tables?
http://www-03.ibm.com/systems/resources/systems_i_software_globalization_pdf_cp00877z.pdf

What is the meaning of the letters in the string for charactersets? CZJHMNU
This isn't a HEX value...

It would be very great to get this working and I really appreciate any help I 
could get.

Thanks in advice
Peter



-Original Message-
From: Peter Hancock [mailto:peter.hanc...@gmail.com] 
Sent: Donnerstag, 30. September 2010 11:50
To: fop-users@xmlgraphics.apache.org
Subject: Re: Font mapping for AFP Output

Hi Peter,

First off, what version of FOP are you using?  This will have some
baring on what support there will be available for you.

Have you taken a look at the FOP docs or the wiki?
 http://xmlgraphics.apache.org/fop/trunk/output.html#afp-font-config
http://wiki.apache.org/xmlgraphics-fop/AFPFonts

There are a few problems i can spot with your config.   Most notably,
the afp-raster-f...@characterset should refer to the actual character
data for the custom font you want to embed and that you have made
available to FOP (see

Re: Font mapping for AFP Output

2010-09-30 Thread Peter Hancock
Hi Peter,

First off, what version of FOP are you using?  This will have some
baring on what support there will be available for you.

Have you taken a look at the FOP docs or the wiki?
 http://xmlgraphics.apache.org/fop/trunk/output.html#afp-font-config
http://wiki.apache.org/xmlgraphics-fop/AFPFonts

There are a few problems i can spot with your config.   Most notably,
the afp-raster-f...@characterset should refer to the actual character
data for the custom font you want to embed and that you have made
available to FOP (see base element in
http://xmlgraphics.apache.org/fop/trunk/configuration.html#general or
afp-f...@base-uri) - you are instead referencing IBM base fonts that
should be available in  any AFP environments (Print servers or
viewers) that you are using.  The font-triplet element configures how
you can reference the font in your .fo document.  I am guessing that
the AFP you generate, whilst referencing ocrb[10], actually results in
the default Times Roman font.

To resolve this you need to first determine what kind of font you have
(outline (.OLN), raster- this usually comes with a collection of files
for different sizes and styles).  This may not be that obvious to you
and I have had trouble myself doing the same thing.  I have resorted
to using and AFP binary reader to determine this - maybe some other
AFP FOP users have some better instructions for you on this subject.

Once you know the font refer to the the FOP docs for the relevant
configuration and reply to this thread if troubles persist.

I hope I have been of some help.

Peter Hancock

On Wed, Sep 29, 2010 at 1:55 PM, Peter Weber  wrote:
> Hi all
>
>
>
> This week  i stuck at mapping fonts for AFP output format in fop.
>
>
>
> I don’t have any experience with fonts, codepages and charactersets…
>
> Can someone please explain me, how to map a font in the fop.xconf for AFP
> format?
>
>
>
> Following is a part of the config I am playing with:
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
>  base14-font="TimesRoman"/>
>
> 
>
> 
>
> 
>
> 
>
>
>
> -> This doesn't really works :)
>
>
>
> The name of the codepage 'T1E00877' I'm using here I have found on an IBM
> Documentation:
>
> http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?infotype=AN&subtype=CA&htmlfid=877/ENUSZP02-0594&appname=printers
>
>
>
> I'm absolutely unsure how to continue with this.
>
> Can I map OCR-B as a raster font? Is it a raster font?
>
> How do I find the correct character set? Is 'T1E00877' the correct codepage?
>
> I'm using the OCR font in 3 sizes: 9.5pt, 10pt and 11pt.
>
>
>
> Please, it's very difficult to find information about this topic. Hundreds
> of documents but I found anything helpful.
>
>
>
> I would really appreciate to get a solution for this.
>
> And much better if I understand how font mapping really works. :)
>
>
>
> Regars
>
> Peter

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



PDF\A-1a compliance check when fo file contains basic-links

2010-09-30 Thread Peter Kester
Hi,

I am in the process of generating PDF\A-1a compliant PDF but I think I ran into 
a bug.
When the fo file contains something like this:
Google.com
I can generate a PDF\A-1a compliant docuyment but when I try to validate in 
Adobe Acrobats Preflight I get the following error message:

'An error occurred while parsing a contents stream. Unable to analyze the PDF 
file.'

When I disable the basic-link everything works like a charm.

Best regards,

Peter Kester



ing. P.A. (Peter) Kester
Senior Consultant

Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

peter.kes...@daidalos.nl<mailto:peter.kes...@daidalos.nl>
www.daidalos.nl<http://www.daidalos.nl/>

KvK 27164984


De informatie - verzonden in of met dit e-mailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.



Font mapping for AFP Output

2010-09-29 Thread Peter Weber
Hi all

This week  i stuck at mapping fonts for AFP output format in fop.

I don't have any experience with fonts, codepages and charactersets...
Can someone please explain me, how to map a font in the fop.xconf for AFP 
format?

Following is a part of the config I am playing with:






















-> This doesn't really works :)

The name of the codepage 'T1E00877' I'm using here I have found on an IBM 
Documentation:
http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?infotype=AN&subtype=CA&htmlfid=877/ENUSZP02-0594&appname=printers

I'm absolutely unsure how to continue with this.
Can I map OCR-B as a raster font? Is it a raster font?
How do I find the correct character set? Is 'T1E00877' the correct codepage?
I'm using the OCR font in 3 sizes: 9.5pt, 10pt and 11pt.

Please, it's very difficult to find information about this topic. Hundreds of 
documents but I found anything helpful.

I would really appreciate to get a solution for this.
And much better if I understand how font mapping really works. :)

Regars
Peter


Re: PDF 1.7 ISO 32000

2010-09-28 Thread Peter Hancock
PDF is designed to be backward and forward compatible so in theory
there should not be any reader/browser issues.

Pete

On Tue, Sep 28, 2010 at 1:19 AM, Glenn Adams  wrote:
> probably more pdf readers support 1.4 than 1.7; also, PDF 1.7 does not have
> any particular features that 1.4 does not have that relate to multiple
> language support;
> which languages do you require support for?
> regards,
> glenn
>
> 2010/9/27 Daniel Sánchez González 
>>
>> We need multi-language support. We want to create ISO 32000 because it is
>> standar and we think that it can be viewed in any browser. Is it correct?
>>
>> On Mon, Sep 27, 2010 at 10:10 AM, Peter Hancock 
>> wrote:
>>>
>>> Hi Daniel,
>>>
>>> PDF support in FOP is currently limited to 1.4 - see FOP
>>> http://xmlgraphics.apache.org/fop/trunk/output.html#pdf
>>>
>>> I am not sure if there are any community plans to support later
>>> version of the format in the near future.  Are there any specific
>>> features that have been introduced in the later versions that you
>>> require in particular?
>>>
>>> Peter
>>>
>>> 2010/9/26 Daniel Sánchez González :
>>> > Is it possible to create a 1.7 pdf  version (ISO 32000) with apache
>>> > fop?
>>> >
>>> > Thanks in advance,
>>> > Daniel Sánchez
>>>
>>> -
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>
>
>

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



Re: PDF 1.7 ISO 32000

2010-09-27 Thread Peter Hancock
Hi Daniel,

PDF support in FOP is currently limited to 1.4 - see FOP
http://xmlgraphics.apache.org/fop/trunk/output.html#pdf

I am not sure if there are any community plans to support later
version of the format in the near future.  Are there any specific
features that have been introduced in the later versions that you
require in particular?

Peter

2010/9/26 Daniel Sánchez González :
> Is it possible to create a 1.7 pdf  version (ISO 32000) with apache fop?
>
> Thanks in advance,
> Daniel Sánchez

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



Re: External AFP formdefs

2010-09-21 Thread Peter Hancock
Hi Jeremias,

> the same name is available on the target platform. So I believe that
> afp:include-form-map complements afp:invoke-medium-map but does not
> require it. HTH

That is the behaviour I was expecting too.  Thanks for confirming this with me.

Pete

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



Re: External AFP formdefs

2010-09-20 Thread Peter Hancock
Hi Chris,

I was wondering if a Form Def must be embedded and the reference to
the Medium Map must be contained within the embedded Form Def.

Thanks,

Peter

On Mon, Sep 20, 2010 at 12:23 PM, Chris Bowditch
 wrote:
> Peter Hancock wrote:
>>
>> Hi,
>
> Hi Peter,
>
>>
>> Does FOP support the declaration of formdefs/medium maps as references
>> to external resources?  I see from
>> http://xmlgraphics.apache.org/fop/1.0/output.html#afp-invoke-medium-map
>> that FOP can embed formdefs defined in a file, and it is not directly
>> clear to me if the name attribute of afp:invoke-medium-map can be a
>> reference to an IMM defined externally.
>
> Not sure I follow your question; Are you asking if the src attribute is
> optional? Or whether a Form Def must be embedded and the reference to the
> Medium Map must be contained within the embedded Form Def.
>
> Thanks,
>
> Chris
>
>>
>> Thanks in advance for any help,
>>
>> Peter
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



External AFP formdefs

2010-09-17 Thread Peter Hancock
Hi,

Does FOP support the declaration of formdefs/medium maps as references
to external resources?  I see from
http://xmlgraphics.apache.org/fop/1.0/output.html#afp-invoke-medium-map
that FOP can embed formdefs defined in a file, and it is not directly
clear to me if the name attribute of afp:invoke-medium-map can be a
reference to an IMM defined externally.

Thanks in advance for any help,

Peter

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



Re: FOP 1.0: images fail to render

2010-09-16 Thread Peter Hancock
Hi Dennis,

If it is any help the fop-1.0's MANIFEST.MF includes

Class-Path: avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.
 3.1.jar commons-logging-1.0.4.jar fop-hyph.jar serializer-2.7.0.jar s
 ervlet-2.2.jar xalan-2.7.0.jar xercesImpl-2.7.1.jar xml-apis-1.3.04.j
 ar xml-apis-ext-1.3.04.jar xmlgraphics-commons-1.4.jar

Other than checking those dependencies I can only suggest checking out
the source from subversion
(http://svn.eu.apache.org/repos/asf/xmlgraphics/fop/tags/fop-1_0) and
building a clean version.
I was able to run your example fine with my build of 1.0.

Pete

On Thu, Sep 16, 2010 at 1:11 PM, Eric Douglas  wrote:
> Dependancies have surely changed between FOP 0.95 and 1.0.  Read the
> manifest and make sure you have all the referenced jars.
> The manifest classpath was causing problems for me so I downloaded the
> source and compiled without it.
> Hopefully the classpath will be removed from the manifests in the next
> available binary with some documentation listing jar dependancies for
> the classpath.
> I searched the manifests of all the jars I had for FOP and found that
> xalan had a classpath in it's manifest as well so I have my own compile
> of that one also from the source download to exclude it.
>
>
> -Original Message-
> From: Dennis van Zoerlandt [mailto:dvzoerla...@vanboxtel.nl]
> Sent: Thursday, September 16, 2010 5:00 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP 1.0: images fail to render
>
>
> I am running the application under root (uid 0). I tested it a minute
> ago with a newly created non-root user in its own newly created group,
> but it got the same result. The log files also reported no different
> messages.
>
> Your hint about batik-all-1.7.jar I tried also. I formerly used
> batik-1.7 already, but then with all included Batik libraries one by one
> in my IDE (Eclipse). Now I use the all-in-one library, but with no
> changes in result.
> I tried this before and after the change of the user id under which the
> application is running.
>
> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>
> Regards,
> Dennis
>
>
> Glenn Adams-2 wrote:
>>
>> would you happen to be running as root user (uid 0), or non-root? i
>> recently encountered a similar problem on 1.0 when running junit tests
>
>> as root; the other thing to check is verify you are using
>> xmlgraphics-commons-1.4.jar and batik-all-1.7.jar;
>>
>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>> wrote:
>>
>>>
>>> Hello,
>>>
>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>> application images fail to render. The interesting part of the
>>> logging is as follows:
>>>
>>> ---
>>> Image not available. URI:
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>> org.apache.xmlgraphics.image.loader.ImageException: The file format
>>> is not supported. No ImagePreloader found for
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>> available)
>>> ---
>>>
>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4.
>>> When reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1)
>>> images are working again. The combination FOP 0.95 with XML Graphics
>>> Commons 1.4 also results in working images.
>>>
>>> As well as BMP files as JPEG files are failing to render. With both
>>> file types the same message is reported.
>>>
>>> I enabled finest logging for org.apache.fop and
>>> org.apache.xmlgraphics but I didn't find no corresponding messages
>>> about an ImagePreloader.
>>>
>>> I also installed JAI Image I/O Tools and the corresponding JAI
>>> (according to
>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to
>>> no success regarding to this problem.
>>>
>>> Can anyone give me a pointer in the right direction?
>>>
>>> Regards,
>>> Dennis
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297
>>> 25748.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
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297262
> 49.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
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

-
To unsubscri

Re: FOP 1.0: images fail to render

2010-09-16 Thread Peter Hancock
Hi Dennis,

Could you provide a simple set of example files that demonstrate the
problem, please.

Pete

On Thu, Sep 16, 2010 at 10:00 AM, Dennis van Zoerlandt
 wrote:
>
> I am running the application under root (uid 0). I tested it a minute ago
> with a newly created non-root user in its own newly created group, but it
> got the same result. The log files also reported no different messages.
>
> Your hint about batik-all-1.7.jar I tried also. I formerly used batik-1.7
> already, but then with all included Batik libraries one by one in my IDE
> (Eclipse). Now I use the all-in-one library, but with no changes in result.
> I tried this before and after the change of the user id under which the
> application is running.
>
> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>
> Regards,
> Dennis
>
>
> Glenn Adams-2 wrote:
>>
>> would you happen to be running as root user (uid 0), or non-root? i
>> recently
>> encountered a similar problem on 1.0 when running junit tests as root; the
>> other thing to check is verify you are using xmlgraphics-commons-1.4.jar
>> and
>> batik-all-1.7.jar;
>>
>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>> wrote:
>>
>>>
>>> Hello,
>>>
>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>> application
>>> images fail to render. The interesting part of the logging is as follows:
>>>
>>> ---
>>> Image not available. URI:
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>> org.apache.xmlgraphics.image.loader.ImageException: The file format is
>>> not
>>> supported. No ImagePreloader found for
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>> available)
>>> ---
>>>
>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4. When
>>> reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images are
>>> working again. The combination FOP 0.95 with XML Graphics Commons 1.4
>>> also
>>> results in working images.
>>>
>>> As well as BMP files as JPEG files are failing to render. With both file
>>> types the same message is reported.
>>>
>>> I enabled finest logging for org.apache.fop and org.apache.xmlgraphics
>>> but
>>> I
>>> didn't find no corresponding messages about an ImagePreloader.
>>>
>>> I also installed JAI Image I/O Tools and the corresponding JAI (according
>>> to
>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
>>> success regarding to this problem.
>>>
>>> Can anyone give me a pointer in the right direction?
>>>
>>> Regards,
>>> Dennis
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.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
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29726249.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
>
>

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



Re: unable to use afp:resource-level="external" for

2010-08-17 Thread Peter Hancock
Hi,

Yep my patch for feature
(https://issues.apache.org/bugzilla/show_bug.cgi?id=49379) included a
fix.  It would be great if a commiter could review that patch and
commit the fix with the feature.

Pete

On Tue, Aug 17, 2010 at 11:52 AM, Peter Hancock  wrote:
> Hi,
> There is a bug in src/java/org/apache/fop/afp/AFPStreamer.java around line 
> 160:
>  Iterator it = pathResourceGroupMap.entrySet().iterator();
> should be
>  Iterator it = pathResourceGroupMap.values().iterator();
>
> I think I fixed this is a patch I submitted recently.  Let me check..
>
> Pete
>
> On Tue, Aug 17, 2010 at 11:24 AM, Julien Aymé  wrote:
>> Hi,
>>
>> Could you provide the full stack trace, so that we can investigate the code?
>>
>> Thanks,
>>
>> Julien
>>
>> 2010/8/17 Mrutyunjay Sahasrabudhe :
>>> Hi,
>>>
>>> I am using FOP 1.0 version.
>>>
>>> I am trying to use the afp:resource-level="external" for 
>>> 
>>> but getting an exception as below:
>>>
>>> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
>>> org.apache.fop.afp.modca.StreamedResourceGroup
>>>
>>> I did check replies on a similar query posted earlier and ensured that the
>>> user running FOP does have write persmissions to the file/directory where 
>>> the
>>> external resource file is expected to be created.
>>>
>>> It would be really great if you could help here.
>>>
>>> Thanks & regards,
>>> Mrutyunjay
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>

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



Re: unable to use afp:resource-level="external" for

2010-08-17 Thread Peter Hancock
Hi,
There is a bug in src/java/org/apache/fop/afp/AFPStreamer.java around line 160:
  Iterator it = pathResourceGroupMap.entrySet().iterator();
should be
  Iterator it = pathResourceGroupMap.values().iterator();

I think I fixed this is a patch I submitted recently.  Let me check..

Pete

On Tue, Aug 17, 2010 at 11:24 AM, Julien Aymé  wrote:
> Hi,
>
> Could you provide the full stack trace, so that we can investigate the code?
>
> Thanks,
>
> Julien
>
> 2010/8/17 Mrutyunjay Sahasrabudhe :
>> Hi,
>>
>> I am using FOP 1.0 version.
>>
>> I am trying to use the afp:resource-level="external" for 
>> 
>> but getting an exception as below:
>>
>> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
>> org.apache.fop.afp.modca.StreamedResourceGroup
>>
>> I did check replies on a similar query posted earlier and ensured that the
>> user running FOP does have write persmissions to the file/directory where the
>> external resource file is expected to be created.
>>
>> It would be really great if you could help here.
>>
>> Thanks & regards,
>> Mrutyunjay
>>
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

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



Re: fop region-body border and padding issue

2010-08-13 Thread Peter Hancock
Hi Muralidhar,

Since the region-body statically positioned relative to the page (as
determined by margins of simple-page-master), then perhaps you can achieve
your desired layout by just combining the effective padding into the margins
of region-before?

Pete

On Fri, Aug 13, 2010 at 3:17 PM, Muralidhar Kulkarni <
muralidha...@igiindia.com> wrote:

>   in the XSL-FO is having border and padding attributes
> with same value. Because of this I am getting the validation exception while
> transforming the XSL-FO file to get the pdf document. If I set strict
> validation to false on fopFactory object, then I will get pdf without proper
> alignment. Please suggest how to get rid of this issue.
>
>
>
> Thanks,
>
>
>
> [image: IGI Health]
> Muralidhar Kulkarni
> Senior Software Engineer
> 371 Hoes Lane
> Piscataway NJ, 08854
> www.igihealth.com
>
> 732-271-0600 X1616
> muralidha...@igiindia.com
>
>
>
<>

Re: Keeping memory usage low when FOP is not running and avoid open file handles after FOP is run

2010-07-19 Thread Peter Hancock
Hi Dominik,

This could well be a bug, akin to the issue dealt with here
https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

Pete

On Mon, Jul 19, 2010 at 9:53 AM, Dominik Stadler
 wrote:
> Hi,
>
>
>
> my use-case is to have FOP integrated into a larger server application,
> where FOP is only executed sporadically.
>
>
>
> We already evaluated running FOP externally, but had severe trouble doing so
> for various reasons. Therefore we need to try to keep memory usage of FOP as
> low as possible when it is not running, I already had to do some workarounds
> to keep FOP from storing memory in caches or in thread locals, partly also
> the XML implementation from Sun interferes and keeps the whole FOP SAX
> Handler as thread local. Also any intermediate files need to be removed when
> FOP is finished rendering, something that caused me a bit of headache last
> week.
>
>
>
> I have one final item that I just found and would like to get input if there
> is a better solution:
>
> The FOUserAgent holds an element “imageSessionContext” which holds
> SoftReferences to Source/ImageSource elements via
> AbstractImageSessionContext.sessionSources. The memory for these items is
> cleaned correctly when we un-reference the FOUserAgent object, however the
> Source-items still hold a file-handle via the InputStream that is included
> in StreamSource/ImageStreamSource object. The effect is that I cannot remove
> intermediate image files that are used during PDF generation, but would like
> to delete after the PDF is created.
>
>
>
> Currently I employ an ugly hack where I remember the file-names and
> afterwards use FOUserAgent.getImageSessionContext().getSource() to retrieve
> the Source and do the “close()” on the item manually.
>
>
>
> -  Is this a bug, as file handles are kept open this way and are
> only given up, when the SoftReference is collected? So this can easily cause
> “out of handle” type of errors if a lot of memory is available and thus
> SoftReferences are not collected for a long time.
>
> -  Is there a way to not keep these references in the first run? I
> use different images throughout the document, so image caching is not very
> useful for me anyway.
>
>
>
> Thanks… Dominik.
>
>
>
> Dominik Stadler, Team Lead
> F +43 732 21018 | E dominik.stad...@dynatrace.com | Skype:
> stadler.dominik
>
> dynaTrace is Continuous APM >> Monitor. Resolve. Prevent. >>
>
> Web: http://www.dynatrace.com | Blog: http://blog.dynatrace.com
>
> Learn about dynaTrace in 2 minutes | Forrester rates dynaTrace “On Fire”.
> Get your copy of the report here.
>
> This e-mail message, including any attachments, is confidential and may
> contain legally privileged information. This message is intended solely for
> the use of the addressee. Use by others is prohibited. Disclosure, copying
> and distribution of this information to third parties is not permitted. If
> you have received this message in error, please notify us immediately and
> delete it from your system. The integrity and security of this message
> cannot be guaranteed and it may be subject to data corruption, interception
> and unauthorized amendment, for which we accept no liability.
>
>

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



Re: Log4j Woes

2010-05-25 Thread Peter Hancock
Hi Nancy,

The suggested method fails because all arguments to fop are passed as
arguments to the application, not the JVM.
You could change the fop script and add '-Dlog4j.configuration=...' *
directly* before or after '$HEADLESS'  on the line 'run_java ...'.

Better still you could put something like $MY_JVM_VARS instead and run
* export MY_JVM_VARS='-Dlog4j.configuration=file:///wherever/log4j.xml' fop*

Any other JVM arguments required can be placed in the MY_JVM_VARS variable.

The problem with this would be when an update changes the /usr/bin/fop.  You
might want to copy this script into ~/ somewhere and run that instead,
merging any potential future changes to fop when thy occur.

Pete

On Tue, May 25, 2010 at 4:34 PM, nancy_b  wrote:

>
> Hi Julien!
>
> Thanks a lot for trying to help me. Unfortunately, fop fails printing the
> following error:
> 2010-05-25 18:32:35,176 [main] ERROR FOP - Exception
> java.lang.IllegalArgumentException: Error creating InputHandler object.
>at
>
> org.apache.fop.cli.CommandLineOptions.createInputHandler(CommandLineOptions.java:849)
>at
> org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:167)
>at org.apache.fop.cli.Main.startFOP(Main.java:154)
>at org.apache.fop.cli.Main.main(Main.java:197)
>
> Please, advise!
> Thanks a lot again!
> Nancy
>
>
> Julien Aymé wrote:
> >
> > Hello,
> >
> > Assuming your log4j configuration file is placed in the
> > "/home/cozy/doc/xsl/" folder,
> > you can tell fop to use your log4j file like this:
> >
> > fop -Dlog4j.configuration=file:///home/cozy/doc.xsl/log4j.xml-c
> > /home/cozy/doc/xsl/myconf.xml -fo  \
> >  user_manual.fo -pdf  user_manual.pdf
> >
> > (replace log4j.xml with the actual name of your configuration file).
> >
> > HTH,
> > Julian
> >
> > 2010/5/25 nancy_b :
> >>
> >> From http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupLog4JLogging:
> >>
> >> "Set the following system property when you start the JVM:
> >> -Dlog4j.configuration=file:///C:/Dev/FOP/log4j.properties
> >> ..."
> >> Does anybody know how do I define this on Linux Debian and where?
> >>
> >> Thanks a lot in advance!
> >> nancy
> >>
> >>
> >> nancy_b wrote:
> >>>
> >>> Hi Folks!
> >>>
> >>> I use FOP 0.95 to compile PDF documents from DocBook sources on my
> Linux
> >>> Debian machine. After upgrading my Debian to v5.2, I get the following
> >>> log4j-related problem:
> >>>
> >>> fop -c /home/cozy/doc/xsl/myconf.xml -fo  \
> >>>   user_manual.fo -pdf  user_manual.pdf
> >>> log4j:WARN No appenders could be found for logger
> >>> (org.apache.fop.util.ContentHandlerFactoryRegistry).
> >>> log4j:WARN Please initialize the log4j system properly.
> >>>
> >>> and FOP does not produce any compilation-related warnings that I expect
> >>> it
> >>> to print in the console.
> >>> 2.6.18.3
> >>> I did not have this problem before (on my Debian v.2.6.18.3).
> >>>
> >>> After reading related posts on this forum, I did the following:
> >>>
> >>> 1) Created a log4j conf file (log4j-properties.xml) with the following
> >>> contents:
> >>>
> >>> 
> >>> 
> >>>
> >>> http://jakarta.apache.org/log4j/";>
> >>>   
> >>>
> >>> 
> >>>
> >>> 
> >>>   
> >>>   
> >>> 
> >>>
> >>> 
> >>>   
> >>>   
> >>>   
> >>> 
> >>> 
> >>>   
> >>>   
> >>>
> >>>
> >>>   
> >>> 
> >>>
> >>> It sits together with log4j in the /usr/share/java/ directory. I also
> >>> placed there the log4j.dtd file.
> >>>
> >>> 2) In bashrc, I defined the following:
> >>>
> >>> export
> >>>
> LOG4J_OPTS="-Dlog4j.configuration=/usr/share/java/log4j-properties.xml".
> >>>
> >>> But, guess what? It did not help at all. I still get the log4j message.
> >>> The posts also mention that it is necessary to define the conf. file in
> >>> the classpath. I have no idea what it is and how to find it
> >>>
> >>> Please, people, help! :-(
> >>>
> >>> Thanks a lot in advance
> >>> nancy
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Log4j-Woes-tp28658124p28669034.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
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Log4j-Woes-tp28658124p28669930.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.or

Re: Log4j Woes

2010-05-25 Thread Peter Hancock
Hi Nancy,

I have just realised that you are using fop via the package manager, and not
from a direct fop download - whoops!
I am sorry, but I am not sure I can help with your configuration.  Perhaps
there is a Debian mailing list that might help?  I wonder if the LOG4J_OPTS
variable is used by java-wrappers.sh script referenced in the fop script?
Maybe you could email the author fourm...@debian.org?

If you have no luck you could alternatively checkout fop with subversion and
run that using the configuration discussed in my last response.  This will
require a bit more work to set things up, but it is well documented at
 http://xmlgraphics.apache.org/fop/quickstartguide.html

I am for the confusion caused by my assumption about your fop setup!

Pete

On Tue, May 25, 2010 at 11:33 AM, nancy_b  wrote:

>
> Hi dear Peter,
>
> Thank you for your prompt response!!!
> --First put the log4j jar in fop's lib directory
>
> I don't have such a directory. I do have
> 1) /usr/bin/fop (where fop is the script)
> 2) /usr/share/java/fop-0.95.jar and /usr/share/java/fop.jar
>
> --Put your log4j.xml file in the root of the fop project.
> where is this exactly?
>
> -Uncomment the following line...
>
> I dont have such a line. Here what I have in the fop script:
> ~
> #! /bin/sh
> # Shell script wrapper around the fop program,
> # Copyright 2008 by Vincent Fourmond 
> #
> # Licensed under the same terms as fop itself, that is under
> # the conditions of the Apache 2 licence.
>
> # Include the wrappers utility script
> . /usr/lib/java-wrappers/java-wrappers.sh
>
> # comment this line if you want fop to run without headless property,
> # or write a line containing
> #  HEADLESS=
> # in your fop configuration file.
> HEADLESS=-Djava.awt.headless=true
>
> # Load system-wide configuration, if any
> if [ -f /etc/fop.conf ]; then
>. /etc/fop.conf
> fi
>
> # Load user's preferences, if any
> if [ -f "$HOME/.foprc" ]; then
>. $HOME/.foprc
> fi
>
> # We prefer to use openjdk or Sun's java if available
> find_java_runtime openjdk sun  || find_java_runtime
>
> find_jars commons-io avalon-framework serializer xalan2 xml-apis
> find_jars batik-all commons-logging servlet-api xercesImpl
> xmlgraphics-commons
> find_jars xml-apis-ext
>
> # We load the hyphenation jar at the request of the user.
> if [ "$FOP_HYPHENATION_PATH" ]; then
>find_jars $FOP_HYPHENATION_PATH
> fi
> find_jars fop
>
> run_java $HEADLESS org.apache.fop.cli.Main "$@"
> ~~~
>
> Please advise!
>
> thanks a lot in advance!!!
> Nancy
>
>
> Peter Hancock-2 wrote:
> >
> > Hi Nancy,
> >
> > I am not sure how the LOG4J_OPTS environmental variable is supposed to be
> > handled by the log4j library (I would like to know!) so I would recommend
> > changing the fop script.
> >
> > First put the log4j jar in fop's lib directory.  You can download it from
> > http://logging.apache.org/log4j/1.2/manual.html
> > Put your log4j.xml file in the root of the fop project.
> > Edit fop:
> > Uncomment the following line
> > *
> >
> LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
> > *
> >
> > edit the fop_exec_command variable (bottom of fop file) to include
> >  -Dlog4j.configuration=log4j.xml
> >
> > This approach will keep the log4j config local to fop which is preferred.
> > Other java applications using log4j would want different config.  Also
> you
> > should not have to modify /usr/share/java since it is managed by Debian.
> >
> > I hope this works for you
> >
> > Pete
> >
> > On Mon, May 24, 2010 at 9:01 PM, nancy_b  wrote:
> >
> >>
> >> Hi Pete,
> >>
> >> Thanks a lot for your prompt response!!!
> >>
> >> -- Did you change the fop script to specify the LOGCHOICE variable?
> >>
> >> No, why should I? I didn't do anything in my previous Linux, and it was
> >> fine...
> >>
> >> --Also, is the log4j.jar on your classpath too?
> >>
> >> Don't know, how do I check that??
> >>
> >> Please, advise! ;-)
> >>
> >> My best wishes,
> >> Nancy
> >>
> >>
> >>
> >> Peter Hancock-2 wrote:
> >> >
> >> > Hi Nancy,
> >> >
> >> > Did you change the fop script to specify the LOGCHOICE variable?  At
> >> the
> >> > bottom of the fop script you will find some  commented out exampl

Re: Log4j Woes

2010-05-25 Thread Peter Hancock
Hi Nancy,

I am not sure how the LOG4J_OPTS environmental variable is supposed to be
handled by the log4j library (I would like to know!) so I would recommend
changing the fop script.

First put the log4j jar in fop's lib directory.  You can download it from
http://logging.apache.org/log4j/1.2/manual.html
Put your log4j.xml file in the root of the fop project.
Edit fop:
Uncomment the following line
*
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
*

edit the fop_exec_command variable (bottom of fop file) to include
 -Dlog4j.configuration=log4j.xml

This approach will keep the log4j config local to fop which is preferred.
Other java applications using log4j would want different config.  Also you
should not have to modify /usr/share/java since it is managed by Debian.

I hope this works for you

Pete

On Mon, May 24, 2010 at 9:01 PM, nancy_b  wrote:

>
> Hi Pete,
>
> Thanks a lot for your prompt response!!!
>
> -- Did you change the fop script to specify the LOGCHOICE variable?
>
> No, why should I? I didn't do anything in my previous Linux, and it was
> fine...
>
> --Also, is the log4j.jar on your classpath too?
>
> Don't know, how do I check that??
>
> Please, advise! ;-)
>
> My best wishes,
> Nancy
>
>
>
> Peter Hancock-2 wrote:
> >
> > Hi Nancy,
> >
> > Did you change the fop script to specify the LOGCHOICE variable?  At the
> > bottom of the fop script you will find some  commented out examples of
> > setting this variable.  The convention is to name the log4j file
> > log4j.xml,
> > but it should not matter as you refer to it explicitly with the
> LOG4J_OPTS
> > system variable.  Also, is the log4j.jar on your classpath too?
> >
> > I hope this helps,
> >
> > Pete
> >
> >
> > On Mon, May 24, 2010 at 4:25 PM, nancy_b  wrote:
> >
> >>
> >> Hi Folks!
> >>
> >> I use FOP 0.95 to compile PDF documents from DocBook sources on my Linux
> >> Debian machine. After upgrading my Debian to v5.2, I get the following
> >> log4j-related problem:
> >>
> >> fop -c /home/cozy/doc/xsl/myconf.xml -fo  \
> >>  user_manual.fo -pdf  user_manual.pdf
> >> log4j:WARN No appenders could be found for logger
> >> (org.apache.fop.util.ContentHandlerFactoryRegistry).
> >> log4j:WARN Please initialize the log4j system properly.
> >>
> >> and FOP does not produce any compilation-related warnings that I expect
> >> it
> >> to print in the console.
> >> 2.6.18.3
> >> I did not have this problem before (on my Debian v.2.6.18.3).
> >>
> >> After reading related posts on this forum, I did the following:
> >>
> >> 1) Created a log4j conf file (log4j-properties.xml) with the following
> >> contents:
> >>
> >> 
> >> 
> >>
> >> http://jakarta.apache.org/log4j/";>
> >>  
> >>
> >>
> >>
> >>
> >>  
> >>  
> >>
> >>
> >>
> >>  
> >>  
> >>  
> >>
> >>
> >>  
> >>  
> >>   
> >>   
> >>  
> >> 
> >>
> >> It sits together with log4j in the /usr/share/java/ directory. I also
> >> placed
> >> there the log4j.dtd file.
> >>
> >> 2) In bashrc, I defined the following:
> >>
> >> export
> >> LOG4J_OPTS="-Dlog4j.configuration=/usr/share/java/log4j-properties.xml".
> >>
> >> But, guess what? It did not help at all. I still get the log4j message.
> >> The
> >> posts also mention that it is necessary to define the conf. file in the
> >> classpath. I have no idea what it is and how to find it
> >>
> >> Please, people, help! :-(
> >>
> >> Thanks a lot in advance
> >> nancy
> >>
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Log4j-Woes-tp28658124p28658124.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Log4j-Woes-tp28658124p28661171.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
>
>


Re: Log4j Woes

2010-05-24 Thread Peter Hancock
Hi Nancy,

Did you change the fop script to specify the LOGCHOICE variable?  At the
bottom of the fop script you will find some  commented out examples of
setting this variable.  The convention is to name the log4j file log4j.xml,
but it should not matter as you refer to it explicitly with the LOG4J_OPTS
system variable.  Also, is the log4j.jar on your classpath too?

I hope this helps,

Pete


On Mon, May 24, 2010 at 4:25 PM, nancy_b  wrote:

>
> Hi Folks!
>
> I use FOP 0.95 to compile PDF documents from DocBook sources on my Linux
> Debian machine. After upgrading my Debian to v5.2, I get the following
> log4j-related problem:
>
> fop -c /home/cozy/doc/xsl/myconf.xml -fo  \
>  user_manual.fo -pdf  user_manual.pdf
> log4j:WARN No appenders could be found for logger
> (org.apache.fop.util.ContentHandlerFactoryRegistry).
> log4j:WARN Please initialize the log4j system properly.
>
> and FOP does not produce any compilation-related warnings that I expect it
> to print in the console.
> 2.6.18.3
> I did not have this problem before (on my Debian v.2.6.18.3).
>
> After reading related posts on this forum, I did the following:
>
> 1) Created a log4j conf file (log4j-properties.xml) with the following
> contents:
>
> 
> 
>
> http://jakarta.apache.org/log4j/";>
>  
>
>
>
>
>  
>  
>
>
>
>  
>  
>  
>
>
>  
>  
>   
>   
>  
> 
>
> It sits together with log4j in the /usr/share/java/ directory. I also
> placed
> there the log4j.dtd file.
>
> 2) In bashrc, I defined the following:
>
> export
> LOG4J_OPTS="-Dlog4j.configuration=/usr/share/java/log4j-properties.xml".
>
> But, guess what? It did not help at all. I still get the log4j message. The
> posts also mention that it is necessary to define the conf. file in the
> classpath. I have no idea what it is and how to find it
>
> Please, people, help! :-(
>
> Thanks a lot in advance
> nancy
>
>
> --
> View this message in context:
> http://old.nabble.com/Log4j-Woes-tp28658124p28658124.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
>
>


Re: AcroForm extension

2010-05-11 Thread Peter Hancock
Hi Alessandro,

First off this is a development discussion and should be moved to fop-dev
mailing list - if you have not subscribed to this yet I suggest you do for
further discussion (see http://xmlgraphics.apache.org/fop/maillist.html).

I have been working on an implementation of AcroForms (Following PDF Ref 1.4
- FOP's PDF library mostly adheres to this spec).

Before you take on this task alone it would be a good idea if you review my
progress:
I am at a fairly early stage although
 * Written draft specification for fox extensions
 * Extended FOP's  PDF library (package org.apache.fop.pdf) to include a
fairly comprehensive set of PDF's acroform elements
 * Implemented a simple text label and pushbutton usecase

I will shortly submit a patch to FOP and put documentation on the FOP wiki.

It would be fantastic to get your thoughts on this and hopefully save you
independently doing the same thing!

Your approach to develop the extension as a pluggable module is
theoretically the correct approach, however you may run into problems-
perhaps insurmountable ones!
 Althougth the FO tree building and the layout/ area tree building stages
both support pluggable extension in principle,  some parts of the system
currently do not: The rendering of fox extension elements, for example, is
handled by the core renderers/painters and it does not seem trivial
(possible?) to delegate at these stages to an external handler.

I see some of the major challenges in developing the right implementation
including:
 * Defining fox elements that exploit the rich appearances that can be
prescribed to pdf fields
 * With regards to layout, defining the right bridge between existing fo
elements and PDF e.g. text labels may behave like fo:inline elements,
multiline text fields may have the layout behaviour of fo:blocks etc)
 * Externalising the rendering/painting code - perhaps not possible


Peter

On Mon, May 10, 2010 at 8:14 PM, Alessandro Marino
wrote:

> I'm trying to implement an extension to add AcroForm (§ 8.6 page 671 of PDF
> Reference 1.7) to a PDF document.
> Below there are my thoughts about the process of building such extension,
> could anyone tell me if there's somethig wrong?
>
> I have to create a jar and configure an ElementMapping provider adding the
> file /META-INF/services/org.apache.fop.fo.ElementMapping with the fully
> qualified classname of my ElementMapping implementation class.
> The ElementMapping implementation is responsible to provide a "Maker class"
> that adds an objectified representation of the xsl tag to the FOTree.
>
> After the creation of the FOTree the LayoutManagerMapping is initialized
> inside the AreaTreeHandler. The LayoutManagerMapping holds the association
> between each FONode and its LM.
>
> For the first version of this extension I would prefer (to simplify things)
> to have a LM that puts an AcroForm field on its own line.
> How do I configure a LM for these objects?
> It doesn't seem to exist an extension point for LM, obvious extension
> points are represented by: ElementMapping, ContentHandlerFactory, Renderer,
> FOEventHandler, PDFImageHandler, XMLHandler (for which I can configure an
> implementation class provider in META-INF/services).
> I saw the LayoutManagerMaker interface that has various methods for
> creating a LM from a FONode or from another LM.
> Do I need to add another method to this interface?
>
> Then I needs two things to render an AcroForm in PDF:
>
> * an array in the catalog dictionary (§ 3.6.1 page 141) that holds all
> references to each field.
>   Do I need to patch the PDFRoot object to add such array for example
> with a method "setAcroForm"?
>
> * a field dictionary (page 674) for each field
>
> Thanks and regards,
> Alessandro
>


Re: FOP, hypenation. How to compile hyph pattern? my own

2010-04-29 Thread Peter Hancock
You should have and use the standard build.xml that shipped with fox.  The
target 'compile-hyphenation' is defined in this.  See Simon's post for where
to go from here.

On Thu, Apr 29, 2010 at 2:59 PM, lexa2009  wrote:

>
> hihi, thx.
> u think problem in this? it is only warning. on some forum i read that it
> does not metter when create hyph.
>
> what must be in build.xml ?? i really do not know what to write in it.
>
> Peter Hancock-2 wrote:
> >
> > Hi,
> > Googling lead me to the suggestion that you need JAVA_HOME to point to
> the
> > jdk, not the jre.  see http://forums.sun.com/thread.jspa?threadID=757039
> >
> > Pete
> >
> > On Thu, Apr 29, 2010 at 12:08 PM, lexa2009  wrote:
> >
> >>
> >> done. now i use it from fop directory but have the same output -
> >> C:\fop-0.95>ant compile-hyphenation
> >> Unable to locate tools.jar. Expected to find it in C:\Program
> >> Files\Java\jre6\li
> >> b\tools.jar
> >> Buildfile: C:\fop-0.95\build.xml
> >>
> >> BUILD FAILED
> >> Target "compile-hyphenation" does not exist in the project "null".
> >>
> >> Total time: 0 seconds
> >>
> >>
> >>
> >> Peter Hancock-2 wrote:
> >> >
> >> > You should run ant from the your fop dir.
> >> > If ant is not in your path see http://ant.apache.org/ for details.
> >> >
> >> > Pete
> >> >
> >> > On Thu, Apr 29, 2010 at 10:58 AM, lexa2009 
> wrote:
> >> >
> >> >>
> >> >> Hi! Thx a lot, i change my pattern file for this (for example)
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> -->
> >> >> +5a
> >> >> a5+
> >> >> +5b
> >> >> b5+
> >> >> 
> >> >> 
> >> >>
> >> >> when i try to compile it( in cmd i go to ant/bin and write ant.bat
> >> >> compile-hyphenation i have an error
> >> >>
> >> >> Unable to locate tools.jar. Expected to find it in C:\Program
> >> >> Files\Java\jre6\lib\tools.jar
> >> >> Buildfile: C:\ant\bin\build.xml
> >> >>
> >> >> BUILD FAILED
> >> >> Target "compile-hyphenation" does not exist in the project "null".
> >> >>
> >> >> Total time: 0 seconds
> >> >>
> >> >> i use google and fing that i can ignore Unable to locate tools.jar.
> >> >> Expected
> >> >> to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do
> >> not
> >> >> need
> >> >> it for my task.
> >> >> but what to do with Target "compile-hyphenation" does not exist in
> the
> >> >> project "null".?
> >> >> i have to write build.xml by myself?
> >> >> thx!
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28400915.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
>
>


Re: FOP, hypenation. How to compile hyph pattern? my own

2010-04-29 Thread Peter Hancock
Hi,
Googling lead me to the suggestion that you need JAVA_HOME to point to the
jdk, not the jre.  see http://forums.sun.com/thread.jspa?threadID=757039

Pete

On Thu, Apr 29, 2010 at 12:08 PM, lexa2009  wrote:

>
> done. now i use it from fop directory but have the same output -
> C:\fop-0.95>ant compile-hyphenation
> Unable to locate tools.jar. Expected to find it in C:\Program
> Files\Java\jre6\li
> b\tools.jar
> Buildfile: C:\fop-0.95\build.xml
>
> BUILD FAILED
> Target "compile-hyphenation" does not exist in the project "null".
>
> Total time: 0 seconds
>
>
>
> Peter Hancock-2 wrote:
> >
> > You should run ant from the your fop dir.
> > If ant is not in your path see http://ant.apache.org/ for details.
> >
> > Pete
> >
> > On Thu, Apr 29, 2010 at 10:58 AM, lexa2009  wrote:
> >
> >>
> >> Hi! Thx a lot, i change my pattern file for this (for example)
> >> 
> >> 
> >> 
> >> 
> >> 
> >> -->
> >> +5a
> >> a5+
> >> +5b
> >> b5+
> >> 
> >> 
> >>
> >> when i try to compile it( in cmd i go to ant/bin and write ant.bat
> >> compile-hyphenation i have an error
> >>
> >> Unable to locate tools.jar. Expected to find it in C:\Program
> >> Files\Java\jre6\lib\tools.jar
> >> Buildfile: C:\ant\bin\build.xml
> >>
> >> BUILD FAILED
> >> Target "compile-hyphenation" does not exist in the project "null".
> >>
> >> Total time: 0 seconds
> >>
> >> i use google and fing that i can ignore Unable to locate tools.jar.
> >> Expected
> >> to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not
> >> need
> >> it for my task.
> >> but what to do with Target "compile-hyphenation" does not exist in the
> >> project "null".?
> >> i have to write build.xml by myself?
> >> thx!
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28399146.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
>
>


Re: FOP, hypenation. How to compile hyph pattern? my own

2010-04-29 Thread Peter Hancock
You should run ant from the your fop dir.
If ant is not in your path see http://ant.apache.org/ for details.

Pete

On Thu, Apr 29, 2010 at 10:58 AM, lexa2009  wrote:

>
> Hi! Thx a lot, i change my pattern file for this (for example)
> 
> 
> 
> 
> 
> -->
> +5a
> a5+
> +5b
> b5+
> 
> 
>
> when i try to compile it( in cmd i go to ant/bin and write ant.bat
> compile-hyphenation i have an error
>
> Unable to locate tools.jar. Expected to find it in C:\Program
> Files\Java\jre6\lib\tools.jar
> Buildfile: C:\ant\bin\build.xml
>
> BUILD FAILED
> Target "compile-hyphenation" does not exist in the project "null".
>
> Total time: 0 seconds
>
> i use google and fing that i can ignore Unable to locate tools.jar.
> Expected
> to find it in C:\Program Files\Java\jre6\lib\tools.jar because i do not
> need
> it for my task.
> but what to do with Target "compile-hyphenation" does not exist in the
> project "null".?
> i have to write build.xml by myself?
> thx!
> --
> View this message in context:
> http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28398640.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
>
>


Re: Image Rotate

2010-04-26 Thread Peter Hancock
You can also use the extension attribute 'translate':



You have finer control of the angle, however the absolute-position must be
set to "absolute" or "fixed" ( relative to the block-containers parent).

Pete
On Mon, Apr 26, 2010 at 10:45 AM, Venkat Reddy <
vanukuri.ven...@googlemail.com> wrote:

> You can rotate the image in the following way...
>
>
>
> Venkat.
>
>
> Thomas Peterson wrote:
>
>> Is it possible to rotate an Image Element width degrees?
>>
>> Best regards
>>
>> Thomas Peterson
>> Geschaftsfuhrender Gesellschafter - Software Development
>>
>> ***
>> PrintshopCreator GmbH
>> WebToPrint Losungen fur die Druckindustrie.
>> GF: Thomas Peterson, Heinz Broskamp
>> Am Mittelhafen 42-44
>> D - 48155 Munster
>> Tel.: +49 (0) 251-136 56 33 8
>> Fax.: +49 (0) 251-136 56 33 9
>> Web: www.printshopcreator.de
>> Email: tpeter...@printshopcreator.de
>>
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: afp images

2010-04-23 Thread Peter Hancock
Hi Sekhar,
The xml you have provided is not xsl fo (looks like a style sheet).  Could
you provide the actual fo you have used - you can strip out unrelated stuff
and we can replace the image with something local.

Cheers,
Pete

On Fri, Apr 23, 2010 at 12:28 PM, afp images  wrote:

>
> Dear All
> I am new to AFP and i am unable to work with color images
> i have used  in xconf file and in the xsl file i am
> specifing that in simple-page-master as
>  src="C:\FOP\images\combo_big.jpg"/> and inside the block container my code
> is as
>  right=".45in">
> 
> 
> name="src">C:\FOP\images\combo_big.jpg
>  
> 
> now the problem is i am able to view b+w image but not color images.plz
> help
> me out how to over come this issue.my image is of 30kb file.
>
> Thanks in advance
>
> Regards
> Sekhar.
> --
> View this message in context:
> http://old.nabble.com/afp-images-tp28340117p28340117.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
>
>


  1   2   3   4   >