473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

FOP: input XSL with SVG image gets low resolution in output PDF

I use Apache FOP to create PDF files out of XSL + XML input files. The
XSL file can contain SVG-images via

---
<fo:block>
<fo:instream-foreign-object>
<svg:svg width="70mm" height="52.5mm"
xmlns:xlink="http://www.w3.org/2000/svg">
<svg:image width="70mm" height="52.5mm"
xlink:href="{$chart_C_Test_S}"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
---

The SVG images display excellent when viewed with Batik. But in the
result of the FOP PDF-Output, the images look like painted in very low
resolution - especially curves and some lines look very "edged" with
high aliasing.

Is this a bug in the current FOP (or a used library by FOP) or is
there a configuration setting to tell FOP to create high resolution
images?
Jul 20 '05 #1
1 3254
AS
just an idea:
are you looking at the pdf doc in Adobe Reader at 100% zoom?
if its zoom was set to >100% then svg might look low-res.

"dentaku" <de*****@iname.com> wrote in message
news:69*************************@posting.google.co m...
I use Apache FOP to create PDF files out of XSL + XML input files. The
XSL file can contain SVG-images via

---
<fo:block>
<fo:instream-foreign-object>
<svg:svg width="70mm" height="52.5mm"
xmlns:xlink="http://www.w3.org/2000/svg">
<svg:image width="70mm" height="52.5mm"
xlink:href="{$chart_C_Test_S}"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
---

The SVG images display excellent when viewed with Batik. But in the
result of the FOP PDF-Output, the images look like painted in very low
resolution - especially curves and some lines look very "edged" with
high aliasing.

Is this a bug in the current FOP (or a used library by FOP) or is
there a configuration setting to tell FOP to create high resolution
images?

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Bisson | last post by:
Hi. I am using the FOP 0.20.5 task in Ant 1.5.1 to transform a .fo file into a PDF. The transformation is correct except for the image file (file not found). The image file is in a directory...
0
by: Andrew Tyson | last post by:
Hi, I am pulling my hair out trying to figure out a problem that I am having using FOP to generate PDFs that have embedded SVG graphics. The base 64 encoded SVG is embedded as an attribute...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
0
by: Karthik | last post by:
Hi I have two problems in using FOP with SVG as output format: 1. External Gifs are not coming out in the output SVG file when I use via TOP Transform (with RENDER_SVG): ...
4
by: lorna.mitchell | last post by:
I hope I'm not repeating a question or missing any good resources but I really can't figure out the best way to progress with my problem. We'd like to use apache fop to generate documents in both...
3
by: mathieu | last post by:
Hello, I have the following xml file: <Elements> <Element> <A>1235</A> <B>Hello</B> </Element> ...
3
by: John Williams | last post by:
I'm writing a stagenography program to experiment with how it works. The algorithm I'm using appears to be producing the correct result...however I'm struggling with the file input. I never...
9
by: kombu67 | last post by:
I'm reading a series of images from a MS SQL table and saving them to directory. These are staff ID pictures from our security card app. Once I've extracted the ID photo from the security app to...
1
by: jamieg99 | last post by:
Hello, I've got an object that's being converted into SAXSource and then converted into a pdf with FOP. Some of the data however is in HTML format inside the xml tags and is being escaped (&gt;, etc)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.