Questions tagged [apache-xml-graphics]

11 questions
2
votes
1 answer

org.apache.fop.fo.flow.ExternalGraphic catches and logs ImageException I want to handle myself

I am transforming an Image into pdf for test purposes. To ensure that the Image is compatible with the printing process later on, I'm running a quick test print during the upload. I'm creating a simple Test-PDF with a transformer. When I try to…
2
votes
0 answers

GlyphVector.getoutline() never returning

I am trying to create a PostScript file using the Apache xml-graphics library. When I run under Java, it works fine. But when I build for .NET using IKVM, then on a call to GlyphVector.getoutline(x, y), the code never returns. This is happening…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
1
vote
0 answers

FopFactory.newInstance(new File(".").toURI()) is throwing NoSuchMethodError error

I am getting error while converting xml file into pdf. I am trying to upgrade fop version from 1.0 to 2.8. So in this line of code FopFactory fopFactory = FopFactory.newInstance(); I was initially getting newInstance() method requires…
Pragya
  • 11
  • 2
1
vote
0 answers

Fop vs xmlgraphics jar conflict

I have a heavy monolithic guidewire application that has both fop.jar and xmlgraphics-commons.jar. So, I am trying to add an image into a pdf file which is supposed to get rendered with the xmlgraphics-commons.jar. This jar has about 5/6 image…
1
vote
1 answer

Registering my own implementation of the ImageSessionContext for Apache XMLGraphics

We use Apache FOP with its XMLGraphics library to generate documents for our customers based on their designed templates. Their templates often have images which are taken from a web based resource. It has become apparent however, that in some cases…
JRSofty
  • 1,216
  • 1
  • 24
  • 49
1
vote
1 answer

Not able to build XERCESS 3.2.3 on MAC for arm64 configuration

I am trying to build xerces 3.2.3 for ARM64 configuration on MAC 10.15 using XCODE 12.2 but it fails with error that ** This header is for x86 only This is coming from Cupid.h can Xerces-c 3.2,3 build on MAC for ARM64 configuration?
0
votes
1 answer

Setting SVG 1.1 doctype (public and system ids) in Batik

I'm trying to get a specific DOCTYPE entry in my SVG output when using Apache Batik (1.14). A simple example looks like: DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); String svgNS =…
BradHards
  • 650
  • 9
  • 27
0
votes
2 answers

xsl:fo Increment a variable inside page sequences?

I have a several pages sequences in my xsl file. An xsl-template is called inside each page sequence. Inside each template I have a block that contains a variable that I need to be incremented if the block is executed....I tried to use a global…
HamSoft
  • 67
  • 7
0
votes
1 answer

PSDocumentGraphics2D - how do I write a <>setpagedevice

I am using the PSDocumentGraphics2D class in the Apache™ XML Graphics Commons library to create a .PS file. Works great. However I now need the ability to write the below commands at the start/end of a…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
0
votes
0 answers

FOP Xmlgraphics

I m using FOP for generating pdfs, it works fine and has been generating pdf file. However From time to time, when I Add url links to be displayed within the pdf. The pdf generation fails especially when the URL contains any keywords such as…
Magnus Melwin
  • 1,509
  • 1
  • 21
  • 32
0
votes
0 answers

Rendering SVG ARC in AFP (advanced function presentation) using Apache FOP

I am using apache fop xmlgraphics 2.2 to generate SVG for PDF and AFP, Bellow is the code snippet which I have coded