Lars Bjørndal | 2 Jan 15:21 2012
Picon

Re: Batik not loaded

Hi, list!

[Pascal Sancho]

> Le 21/12/2011 22:24, Lars Bjørndal a écrit :
>> Hi!
>> 
>> [Pascal Sancho]
>> 
>>> Lars, are you running FOP on Linux without Xserver?
>> 
>> Yes, I'm blind, and don't need the graphic. Also, I do run from a server
>> to which I connect through ssh.
>> 
>>> If this is the case, you should run FOP (and Batik) in headless
>>> environment. See [1] for further info.
>>>
>>> [1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik
>> 
>> I tried to run 'xvfb-run fop <parameters>', but that doesn't give any
>> better result. I looked at your reference, but I'm not able to figure
>> out how to do this. Can you please give me some more hints?
>
> I'm not familiar enough about running FOP on Linux Server. You should
> have a look on FopUserList archives, some related issues have been
> reported many times (see [2] and [3]).
> Note that your issue is quite more like the latter [3]
>
> [2]
> http://old.nabble.com/FOP-not-properly-working-in-UNIX-environment-to32828794.html#a32853367
(Continue reading)

Theresa Jayne Forster | 6 Jan 13:28 2012
Picon

How to do what i am trying to do?

In the past with the modified 0.23 I had a template using z-index  and it worked.

 

But now I have upgraded to 1.0 its not working. (the compliance page says “No”)

 

So how can you specify the order of sections overlapping/overlaying rather than pushing each other out of the way.

 

I have

region-before (the header)

region-after (the footer)

region-start (the graphics)

region end (the faded background)

region-body (the text)

 

before we had the start and end in the body area not touching the header or footer but the end behind the start and the body over them all

so the Z-index is as follows

body = 1

start = 2

end = 3

 

so how can I do this?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

Pascal Sancho | 6 Jan 17:15 2012
Picon

Re: How to do what i am trying to do?

Hi Theresa,

IIRC, under FOP 0.2x, body was drawn before other regions, as it was
under other.
With current FOP, the body is drown after other regions, as it is over
other.

You can try to change the region order in simple-page-master
declaration, I don't know if this can help or not.

Note that in strict mode, you cannot change the order in
simple-page-master declaration (body-before-after-start-end). You have
to unset it before (see at strict-configuration [1])

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

Le 06/01/2012 13:28, Theresa Jayne Forster a écrit :
> In the past with the modified 0.23 I had a template using z-index  and
> it worked.
> 
>  
> 
> But now I have upgraded to 1.0 its not working. (the compliance page
> says “No”)
> 
>  
> 
> So how can you specify the order of sections overlapping/overlaying
> rather than pushing each other out of the way.
> 
>  
> 
> I have
> 
> region-before (the header)
> 
> region-after (the footer)
> 
> region-start (the graphics)
> 
> region end (the faded background)
> 
> region-body (the text)
> 
>  
> 
> before we had the start and end in the body area not touching the header
> or footer but the end behind the start and the body over them all
> 
> so the Z-index is as follows
> 
> body = 1
> 
> start = 2
> 
> end = 3
> 
>  
> 
> so how can I do this?
> 
>  
> 
>  
> 
> Kindest regards
> 
>  
> 
> 
> Theresa Forster
> 
> Senior Software Developer
> 
>  
> 

--

-- 
Pascal
Dilip Shah | 6 Jan 17:39 2012
Picon

Re: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

Hi Glen,
 
Any update on FOP release date with Gujarati font support?
 
Thanks,
 
Dilip

Sent: Wednesday, November 30, 2011 12:35 PM
Subject: Re: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

Thanks for checking. I just ran the same data with Arial Unicode MS (see attached). There appears to be some issues on matra positioning. I'll look into this.

On Wed, Nov 30, 2011 at 1:18 PM, Dilip Shah <dilipvshah <at> hotmail.com> wrote:
Hi Glen,
 
Language / ligatures are perfect in the PDF document. This is very encouraging, especially because the words in the document are quite complex.
 
I know that many users of my application use Arial Unicode MS on Windows and so that would be a good font family to test.
 
I'm thrilled to see it take shape! I'll be happy to review other documents you generate and once the code is stable, would be happy to test it out.
 
Regards,
 
Dilip
 

Sent: Wednesday, November 30, 2011 10:57 AM
Subject: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

Hi Dilip,

Attached is a test FO file and resulting PDF I just generated with Gujarati support enabled. Could you take a quick look to verify. I used an excerpt from [1] as a sample.

I currently have only the Shruti (regular and bold) fonts from Windows 7 to test against. Do you have other Gujarati OpenType (1.5 or later) fonts you would like me to verify?


Regards,
Glenn

On Wed, Nov 30, 2011 at 8:39 AM, Glenn Adams <glenn <at> skynav.com> wrote:
yes; i started work on this (Gujarati) a few days ago


On Wed, Nov 30, 2011 at 8:24 AM, dilipvshah <dilipvshah <at> hotmail.com> wrote:

Are we still shooting for the end of the year release?

Dilip


dilipvshah wrote:
>
> I wish to use XSL-FO technology to generate PDF documents in Indian
> languages.
>
> Here are the steps I took:
> 1) I downloaded fop-1.0 and tried their first example to display a name. I
> tried to display name in one of the Indian languages, Gujarati.
> 2) I modified the fop configuration file to load Arial Unicode MS
> 3) The example application does produce PDF document with Gujarati fonts
> but the text is displayed as a sequence of individual characters and
> doesn't use ligature to display the text correctly. The font glyphs are
> displayed in the ordered they are entered in Google's transliterate tool
> but since ligature rules are not applied, the name is displayed
> incorrectly.
> Does FOP have ligature rules for Indian languages? If so, how do I apply
> them when generating a PDF document.
> Thanks!
>

--
View this message in context: http://old.nabble.com/How-To-Implement-Ligature-For-Indian-Languages-In-Pdf-Documents--tp32677144p32884784.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org




Glenn Adams | 9 Jan 03:34 2012

Re: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

i expect to return from holiday tomorrow, and will take this work up again, so stay tuned... i haven't forgotten

On Fri, Jan 6, 2012 at 9:39 AM, Dilip Shah <dilipvshah <at> hotmail.com> wrote:
Hi Glen,
 
Any update on FOP release date with Gujarati font support?
 
Thanks,
 
Dilip

Sent: Wednesday, November 30, 2011 12:35 PM
Subject: Re: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

Thanks for checking. I just ran the same data with Arial Unicode MS (see attached). There appears to be some issues on matra positioning. I'll look into this.

On Wed, Nov 30, 2011 at 1:18 PM, Dilip Shah <dilipvshah <at> hotmail.com> wrote:
Hi Glen,
 
Language / ligatures are perfect in the PDF document. This is very encouraging, especially because the words in the document are quite complex.
 
I know that many users of my application use Arial Unicode MS on Windows and so that would be a good font family to test.
 
I'm thrilled to see it take shape! I'll be happy to review other documents you generate and once the code is stable, would be happy to test it out.
 
Regards,
 
Dilip
 

Sent: Wednesday, November 30, 2011 10:57 AM
Subject: Gujarati Support [Was: How To Implement Ligature For Indian Languages In Pdf Documents?]

Hi Dilip,

Attached is a test FO file and resulting PDF I just generated with Gujarati support enabled. Could you take a quick look to verify. I used an excerpt from [1] as a sample.

I currently have only the Shruti (regular and bold) fonts from Windows 7 to test against. Do you have other Gujarati OpenType (1.5 or later) fonts you would like me to verify?


Regards,
Glenn

On Wed, Nov 30, 2011 at 8:39 AM, Glenn Adams <glenn <at> skynav.com> wrote:
yes; i started work on this (Gujarati) a few days ago


On Wed, Nov 30, 2011 at 8:24 AM, dilipvshah <dilipvshah <at> hotmail.com> wrote:

Are we still shooting for the end of the year release?

Dilip


dilipvshah wrote:
>
> I wish to use XSL-FO technology to generate PDF documents in Indian
> languages.
>
> Here are the steps I took:
> 1) I downloaded fop-1.0 and tried their first example to display a name. I
> tried to display name in one of the Indian languages, Gujarati.
> 2) I modified the fop configuration file to load Arial Unicode MS
> 3) The example application does produce PDF document with Gujarati fonts
> but the text is displayed as a sequence of individual characters and
> doesn't use ligature to display the text correctly. The font glyphs are
> displayed in the ordered they are entered in Google's transliterate tool
> but since ligature rules are not applied, the name is displayed
> incorrectly.
> Does FOP have ligature rules for Indian languages? If so, how do I apply
> them when generating a PDF document.
> Thanks!
>

--
View this message in context: http://old.nabble.com/How-To-Implement-Ligature-For-Indian-Languages-In-Pdf-Documents--tp32677144p32884784.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org





Jonathan Levinson | 10 Jan 21:44 2012

Null Poinuter exception in batik when using linearGradient

Hi,

 

With skynav-fop-de1b874, I get a NullPointerException in batik.  I don’t think the problem is due to skynav.  I also get a null pointer exception in fop-1.0, but without a stack trace.  I suspect the fop trunk has been updated to include a stack trace in this case.

 

In any case, the attached .fo file won’t render the SVG with FOP.  It seems to be complaining about a gradient I’ve defined but I don’t know which one or why.

 

Could anyone on this list help me with an insight or a work-around?

 

If I get rid of ALL the gradients the PDF renders fine, but my PDF rendering is supposed to be duplicating the HTML rendering of the SVG, which employs the gradients successfully in for example FireFox.

 

Jan 10, 2012 3:32:01 PM org.apache.fop.events.LoggingEventListener processEvent

SEVERE: SVG graphic could not be built. Reason: java.lang.NullPointerException

java.lang.NullPointerException

               at org.apache.batik.bridge.SVGLinearGradientElementBridge.buildGradient(Unknown Source)

               at org.apache.batik.bridge.AbstractSVGGradientElementBridge.createPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertURIPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown Source)

               at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown Source)

               at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createFillStrokePainter(Unknown Source)

               at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createShapePainter(Unknown Source)

               at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)

               at org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:98)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:298)

               at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:202)

               at org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1271)

               at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816)

               at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:777)

               at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:851)

               at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:674)

               at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:898)

               at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:639)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)

               at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:594)

               at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:964)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:542)

               at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:594)

               at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:964)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:542)

               at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:447)

               at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:730)

               at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:424)

               at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:348)

               at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:295)

               at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:734)

               at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:269)

               at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:234)

               at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:583)

               at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:117)

               at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:313)

               at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:173)

               at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)

               at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:258)

               at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)

               at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)

               at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)

               at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)

               at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)

               at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:447)

               at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

               at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)

               at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

               at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

               at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

               at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

               at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:397)

               at net.sf.saxon.event.Sender.send(Sender.java:156)

               at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:32)

               at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)

               at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)

               at org.apache.fop.cli.Main.startFOP(Main.java:177)

               at org.apache.fop.cli.Main.main(Main.java:208)

Jan 10, 2012 3:32:01 PM org.apache.fop.events.LoggingEventListener processEvent

INFO: Rendered page #1.

 

Best Regards,

Jonathan Levinson

Senior Software Developer

Object Group

InterSystems

+1 617-621-0600

jonathan.levinson <at> intersystems.com

 

Attachment (COSLinearGradient.zip): application/x-zip-compressed, 6765 bytes

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
Luis Bernardo | 11 Jan 00:01 2012
Picon

Re: Null Poinuter exception in batik when using linearGradient


Nice pie!

The problem seems to be with the batik jar included in FOP. I just ran it against batik trunk and it generated the PDF (attached). I suggest you replace the jar by one provided by Batik or build one from the trunk.


On 1/10/12 8:44 PM, Jonathan Levinson wrote:
<!-- /* Font Definitions */ <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

Hi,

 

With skynav-fop-de1b874, I get a NullPointerException in batik.  I don’t think the problem is due to skynav.  I also get a null pointer exception in fop-1.0, but without a stack trace.  I suspect the fop trunk has been updated to include a stack trace in this case.

 

In any case, the attached .fo file won’t render the SVG with FOP.  It seems to be complaining about a gradient I’ve defined but I don’t know which one or why.

 

Could anyone on this list help me with an insight or a work-around?

 

If I get rid of ALL the gradients the PDF renders fine, but my PDF rendering is supposed to be duplicating the HTML rendering of the SVG, which employs the gradients successfully in for example FireFox.

 

Jan 10, 2012 3:32:01 PM org.apache.fop.events.LoggingEventListener processEvent

SEVERE: SVG graphic could not be built. Reason: java.lang.NullPointerException

java.lang.NullPointerException

               at org.apache.batik.bridge.SVGLinearGradientElementBridge.buildGradient(Unknown Source)

               at org.apache.batik.bridge.AbstractSVGGradientElementBridge.createPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertURIPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown Source)

               at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown Source)

               at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown Source)

               at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createFillStrokePainter(Unknown Source)

               at org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createShapePainter(Unknown Source)

               at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)

               at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)

               at org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:98)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149)

               at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:298)

               at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:202)

               at org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1271)

               at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816)

               at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:777)

               at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:851)

               at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:674)

               at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:898)

               at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:639)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)

               at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:594)

               at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:964)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:542)

               at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:594)

               at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:964)

               at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:542)

               at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:447)

               at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:730)

               at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:424)

               at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:348)

               at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:295)

               at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:734)

               at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:269)

               at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:234)

               at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:583)

               at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:117)

               at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:313)

               at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:173)

               at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)

               at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:258)

               at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)

               at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)

               at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)

               at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)

               at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)

               at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:447)

               at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

               at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)

               at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

               at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

               at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

               at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

               at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:397)

               at net.sf.saxon.event.Sender.send(Sender.java:156)

               at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:32)

               at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)

               at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)

               at org.apache.fop.cli.Main.startFOP(Main.java:177)

               at org.apache.fop.cli.Main.main(Main.java:208)

Jan 10, 2012 3:32:01 PM org.apache.fop.events.LoggingEventListener processEvent

INFO: Rendered page #1.

 

Best Regards,

Jonathan Levinson

Senior Software Developer

Object Group

InterSystems

+1 617-621-0600

jonathan.levinson <at> intersystems.com

 



--------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org

Attachment (grad.pdf): application/pdf, 34 KiB

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
Craig Ringer | 11 Jan 05:46 2012
Picon

Duplicate fonts in PDF when Distiller processes fop PostScript

Hi all

I'm struggling with font embedding in fop's PostScript output - it's
embedding multiple copies of fonts, just like pdf output with
fop-pdf-image, and this is causing some big problems with our RIP.

As a workaround for the issues I've been having with fop-pdf-image where
output PDFs land up with tens or hundreds of different embedded subsets
of the same font, I've been trying to see if chucking PostScript output
from fop through Adobe Acrobat Distiller would work better. In our
current (non-fop-based) workflow Distiller seems to coalesce fonts so
the documents that're produced contain only one copy of the font despite
the input EPSs each having their own embedded subset. I was hoping it'd
do the same for PostScript from fop.

Unexpectedly, I get the same kind of font duplication when I process
fop's PostScript through distiller as I get from fop-pdf-image and the
pdf renderer. A side-by-side comparison of the PostScript from the old
system and from fop shows that the embedded EPS files are copied
verbatim in to the PostScript stream by both fop and the old system, so
it's not doing any kind of clever transformation to the EPS data its
self. Somehow, though, the old system manages to merge fonts, and fop's
PostScript output doesn't.

The old system uses similar-looking pre- and post- eps inclusion
procedures, but they're a little simpler. They don't try to compensate
for leaked stack entries like fop's seem to; they also don't mess with
`userdict', strokeadjust or overprint. There's certainly no font magic
in them. It's not that, though, as I get the same results if I replace
fop's pre- and post-eps procedures with those used in the old system.

I don't speak PostScript particularly well, and I'm beginning to really
bash my head against a wall here, so I thought I'd look for some advice.
Is merging fonts the norm with Distiller, or is it something magic that
the old system's PostScript file is doing? If it's the norm, what might
Fop's PostScript files be doing to block it? If it's not the norm, any
ideas how the old files might be doing the merging magic?

I can happily provide PostScript files from the old system to anyone
interested. The ones I'm working on are about 60MB each, but I can
produce cut-down one page ones that should be no more than 5MB
compressed. I don't know if I can legally provide excerpts of just the
PostScript procedures so I'm going to err on the side of providing a
whole file as a complete document.

If I/we can figure out what's different it'll hopefully allow font
merging in fop's PostScript output, so I'd be very happy to hear from
anyone else interested in the same problem.

I'm still working on PDF font merging in fop-pdf-image, btw, I was just
hoping this would be a faster track where I could let Distiller do the
merging for me. Merging fonts in fop-pdf-image will require me to extend
fop's core to allow image handlers etc to hook on events in the renderer
system so it's going to take patches to fop core and therefore time.

Ideas on what might be going on? Let me know if you want a copy of the
PostScript files involved.

--
Craig Ringer
Harshini Madurapperuma | 12 Jan 08:12 2012

LazyFont and MultiByteFont NullPointerException

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.
Peter Hancock | 12 Jan 11:31 2012
Picon

Re: LazyFont and MultiByteFont NullPointerException

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
<harshini.madurapperuma <at> ifsworld.com> 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.
>

Gmane