473,769 Members | 5,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="ht tp://www.w3.org/2000/svg">
<svg:image width="70mm" height="52.5mm"
xlink:href="{$c hart_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 3281
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.goog le.com...
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="ht tp://www.w3.org/2000/svg">
<svg:image width="70mm" height="52.5mm"
xlink:href="{$c hart_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
2254
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 relative to the ..fo file as stipulated in the FOP-ANT doc (by default the baseDir is where the .fo file is). But de baseDir is the directory where the fop task is running. I tried to change the baseDir with <key>baseDir</key> in the
0
1414
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 within a source XML document <?xml version="1.0" encoding="UTF-8"?> <ReportCashAcctStmt portfolioCode="FIXED_1" portfolioRptName="Fixed Interest
1
3109
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 Transformer convert that via XSLT to valid XSL-FO. So I define a SAXReader which fires the SAX Events for the Java Object. This works fine and the Transformation to PDF is ok. However, I have one object which contains an XHTML String and the tags
0
1218
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): <fo:external-graphic src="url(images/logo.gif)"> <fo:table-row background-image="backgrounds/purple.gif">
4
2139
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 PDF and PCL format - our email system will only take PDF and the fax system only PCL, Apache FOP is spot on for this. However it is choking on whatever I feed it, I think because not all the tags have been implemented. Can anyone recommend me...
3
1767
by: mathieu | last post by:
Hello, I have the following xml file: <Elements> <Element> <A>1235</A> <B>Hello</B> </Element> ...
3
6115
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 learned file input/output very well (I self taught all the programming I know...and my c++ book was not good) and so I'm not sure what's wrong with this. The problem is the function void encodemsg(fstream *img, fstream *msg, fstream *out, char key) ...
9
9641
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 disk, I need to reference the disk file in our HR app. As part of the process, I'm resizing the image and changing its resolution from 96 to 72 dpi. If they are not at a 72 dpi resolution, the HR app freezes. The resizing works without a hitch, but...
1
2358
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) before it transformed. I'd like to have this these html tags parsed as actual elements by the stylesheet, which would mean reading it in it's unescaped format, but I can't figure out how to do this. I have "disable-output-escaping" set in the...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3964
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3564
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.