473,505 Members | 13,904 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 2098
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>xxxxx</comp_name>
<contact></contact>
<address>
<add1>xxxxacht Harbour</add1>
<add2>xxx</add2>
<town>Exxx</town>
<county>Hxxxx</county>
<pcode>xxxx</pcode>
</address>
<tel>0000000</tel>
</company>
<details>
<proj_id>j8888</proj_id>
<proj_name>STPs for UAE</proj_name>
<form>FORM 4 type 2</form>
<access>Front Only</access>
<cable_entry>Bottom</cable_entry>
<ip>00</ip>
<fault>50Ka 1sec 800a</fault>
<proj_manager>Mark Cleary</proj_manager>
<deadline>10/10/08</deadline>
</details>
<objects>
<obj id='894'>
<object_name>A1</object_name>
<module_name>Incoming 600x600</module_name>
<mod_desc>Incomer 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>400A SINGLE MCCB 600X600</module_name>
<mod_desc>400A 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>cable1</object_name>
<module_name>Cable</module_name>
<mod_desc>Standard 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>90KW VSD 600X1800</module_name>
<mod_desc>90KW 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>14WAY DIST BOARD 600X600</module_name>
<mod_desc>ACTUATED 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>Spare 600x400</module_name>
<mod_desc>Spare 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>SPARE 600x400</module_name>
<mod_desc>Spare 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>cable2</object_name>
<module_name>Cable</module_name>
<mod_desc>Standard 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
27956
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...
1
6899
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
5210
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...
0
3767
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...
0
2403
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...
3
17085
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...
0
3397
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 - ...
6
7580
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...
2
15689
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...
0
7098
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...
1
7017
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
7471
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...
0
5610
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,...
1
5026
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...
0
4698
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...
0
3187
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
406
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...

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.