473,657 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache fop drawing in pdf

178 New Member
Hi,

Can anyone help? Im really stuck. I have an xml document with co-ordinates, lengths and widths. Is there anyway of drawing shapes when using apache fop to generate a pdf?
Oct 16 '08 #1
5 2105
Dormilich
8,658 Recognized Expert Moderator Expert
what kind of xml holds these values, a svg file?

a note on svg to pdf.

regards
Oct 16 '08 #2
cleary1981
178 New Member
Heres my xml file. I want one page of my document to be a drawing. Need to draw all <obj>.

[HTML]<?xml version='1.0' encoding='ISO-8859-1' ?>
<quote>
<company>
<comp_name>xxxx x</comp_name>
<contact></contact>
<address>
<add1>xxxxach t Harbour</add1>
<add2>xxx</add2>
<town>Exxx</town>
<county>Hxxxx </county>
<pcode>xxxx</pcode>
</address>
<tel>0000000</tel>
</company>
<details>
<proj_id>j888 8</proj_id>
<proj_name>ST Ps for UAE</proj_name>
<form>FORM 4 type 2</form>
<access>Front Only</access>
<cable_entry>Bo ttom</cable_entry>
<ip>00</ip>
<fault>50Ka 1sec 800a</fault>
<proj_manager>M ark Cleary</proj_manager>
<deadline>10/10/08</deadline>
</details>
<objects>
<obj id='894'>
<object_name>A1 </object_name>
<module_name>In coming 600x600</module_name>
<mod_desc>Incom er connection section 600x600</mod_desc>
<obj_desc></obj_desc>
<xpos>180</xpos>
<ypos>210</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='895'>
<object_name>A2 </object_name>
<module_name>40 0A SINGLE MCCB 600X600</module_name>
<mod_desc>400 A SINGLE MCCB 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>180</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='896'>
<object_name>B2 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>240</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='897'>
<object_name>B1 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>240</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='898'>
<object_name>ca ble1</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>300</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
<obj id='899'>
<object_name>A3 </object_name>
<module_name> 0 - 3KW CONV VSD 600X600</module_name>
<mod_desc>0 - 3KW CONV VSD 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>180</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='900'>
<object_name>B3 </object_name>
<module_name> 0 - 5.5KW DOL 600x400</module_name>
<mod_desc>0 - 5.5KW DOL 600x400</mod_desc>
<obj_desc></obj_desc>
<xpos>240</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='901'>
<object_name>C1 </object_name>
<module_name>90 KW VSD 600X1800</module_name>
<mod_desc>90K W VSD 600X1800</mod_desc>
<obj_desc></obj_desc>
<xpos>340</xpos>
<ypos>90</ypos>
<height>1600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='902'>
<object_name>D1 </object_name>
<module_name> 3 - 7.5KW CONV VSD 600X600</module_name>
<mod_desc>3 - 7.5KW CONV VSD 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>400</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='903'>
<object_name>D2 </object_name>
<module_name>14 WAY DIST BOARD 600X600</module_name>
<mod_desc>ACTUA TED VALVE 14WAY DIST BOARD 600X600</mod_desc>
<obj_desc></obj_desc>
<xpos>400</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='904'>
<object_name>D3 </object_name>
<module_name>Sp are 600x400</module_name>
<mod_desc>Spa re section 600x400</mod_desc>
<obj_desc></obj_desc>
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='904'>
<object_name>D3 </object_name>
<module_name>SP ARE 600x400</module_name>
<mod_desc>Spa re 600x400</mod_desc>
<obj_desc></obj_desc>
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
<obj id='905'>
<object_name>ca ble2</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>460</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
</objects> </quote>
[/HTML]
Oct 16 '08 #3
Dormilich
8,658 Recognized Expert Moderator Expert
transform your <obj>s to svg and let apache draw it.

regards
Oct 16 '08 #4
cleary1981
178 New Member
Thanks, can you point me in the direction of any working example/tutorials? Its just I find the Apache sites documentation a bit hard to follow. Even a book perhaps?
Oct 16 '08 #5
Dormilich
8,658 Recognized Expert Moderator Expert
I have not used svg before, but you can try the svg wiki.
besides that, google is your friend.

regards
Oct 16 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
27980
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written another servlet - bean - jsp but I am hitting an error from tomcat that I have no idea why it is failing. I am getting an org.apache.jasper.JasperException: with the root cause being java.lang.ClassNotFoundException:
1
6912
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
19
5237
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the application under heavy load. When increasing the number of requests, all my memory is filled, and the Linux server begins to cache and remains frozen. ab -n 100 -c 10 http://localsite/testscript
0
3779
by: zhenya.tkachenko | last post by:
Hi! Have a problem with mod_auth_mysql. Compilation and installation of module done ok: # /usr/local/apache/bin/apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c /usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include
0
2415
by: spookdog | last post by:
Hi, I have apache installed on our dmz server, while applying oracle patches some file must have gotten over-ridden as now when I start apache with httpdsctl startssl apache starts but not the apache that listens on port 8290, 8200 + 90 which is the port of the oracle instance. I have looked at the conf files till Im bleary eyed. Our I products work as they use the apache that starts. I have worked with oracle on this and they are drawing a...
3
17111
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke the service using client stub, I get this error... Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a...
0
3410
rsrinivasan
by: rsrinivasan | last post by:
Hi All, When i run my JSP program, ihave the following exception. How i solve this problem? HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message
6
7594
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
2
15698
by: ramprakashjava | last post by:
sorry still that error exist , how to avoid this deprecated method overriding in my netbeans ! In Bundled tomcat log it shows Dec 30, 2009 9:03:45 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts.taglib.TagUtils.pageURL(TagUtils .java:1070) at org.apache.struts.taglib.TagUtils.computeURLWithCh...
0
8403
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8509
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
7345
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4168
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...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
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.