I'm mystified as to why 0.94 has no problem with external-graphic (and in my case SVGs) and using SVGS as background and the trunk does.
You must of misunderstood me, the FO file is down to 20megs, the PDF with all SVGs, linking, and such is around 70megs. There are 500+ full page SVGS and 15000+ links (mainly in indexes). It is a 1400+ page parts manual. It is quite impressive when done, if I might say so myself. We run the entire process on a 12gig Ram 64bit Windows XP machine. Eric, you are exactly right in that I'm also seeing a blank space where external-graphic should be placing and SVG. I'll see if I can find the log, or if there isn't one at the moment, then have it created. Thanks for your insight and relating your experience with this issue. Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -----Original Message----- From: Eric Douglas [mailto:[email protected]] Sent: Tuesday, July 06, 2010 8:47 AM To: [email protected] Subject: RE: Problems with SVG display as background to region-body (FOP-Trunk) I had too many problems with external-graphic, is why I'm using instream-foreign-object. When I get time I need to take another look at getting external-graphic to work. If you're having the same problem I was having, everything prints fine except the external-graphic space is blank, and if you can see the Java Console it will show logs of file not found. 20 megs sounds ridiculously large for a PDF file. If you're embedding images, the problem is no doubt the inclusion of ridiculously large image files. The largest reports I've generated so far are around 44kb for a 1 page report and an 84kb 7 page report which includes this svg image 3 times per page.. At that ratio a 20 meg file should be over 1600 pages.. -----Original Message----- From: Mario Madunic [mailto:[email protected]] Sent: Tuesday, July 06, 2010 9:28 AM To: [email protected] Subject: RE: Problems with SVG display as background to region-body (FOP-Trunk) Eric, I'm using external-graphic for all non-background images to keep the file size down. I have the FO file down to around 20 megs from whopping 250 megs. I also remove all the <xsl:comments /> I place in the output, this saves another 20 megs. They are used to inform me where the various attributes and their values are coming from for style debugging. I'll try and place them inline and see what happens. If you don't mind can you post one of your SVGs? Just want to see the root element (don't need the content itself) and any DTD/XSD declarations. I want to compare what you have and see how mine are different, if there any differences. Thanks Marijan (Mario) Madunic Publishing Specialist New Flyer Industries From: Eric Douglas [mailto:[email protected]] Sent: Tuesday, July 06, 2010 8:10 AM To: [email protected] Subject: RE: Problems with SVG display as background to region-body (FOP-Trunk) My SVG images appear find, using 0.95 and the Trunk, but I haven't tried background images. I'm drawing the SVG within instream-foreign-object. ________________________________________ From: Mario Madunic [mailto:[email protected]] Sent: Tuesday, July 06, 2010 9:00 AM To: [email protected] Subject: Problems with SVG display as background to region-body (FOP-Trunk) I have the following as a child of simple-page-master <fo:region-body region-name="sectionBody_Section" background-image="url(file:graphics/partsTable_4ColBG.svg)" background-repeat="no-repeat" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginInside}" margin-left="{$g_MarginOutside}" /> I've tried various values for background-image, from relative to absolute paths, and other formats for file: (ie. file:///), and with or without url(). Everything I tried basically worked with 0.94 but once I'm using the Trunk, no SVG appears in the output as a background or even as an external-graphic. Note this happens with all the SVGS. Below is the SVG partsTable_4ColBG.svg. Is it a problem with the SVG itself or how I'm referencing the SVG? <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> <svg width="7.25in" height="9.3625in"> <!-- vertical border lines --> <line x1="0.01in" y1="0.01in" x2="0.01in" y2="9.3625in" stroke="black" stroke-width="0.02in" /> <line x1="7.24in" y1="0.01in" x2="7.24in" y2="9.3625in" stroke="black" stroke-width="0.02in" /> <line x1="0.01in" y1="0.35in" x2="7.24in" y2="0.35in" stroke="black" stroke-width="0.01in" /> <!-- horizontal border lines --> <line x1="0.5in" y1="0.01in" x2="0.5in" y2="9.3625in" stroke="black" stroke-width="0.01in" /> <line x1="1.0in" y1="0.01in" x2="1.0in" y2="9.3625in" stroke="black" stroke-width="0.01in" /> <line x1="2.2in" y1="0.01in" x2="2.2in" y2="9.3625in" stroke="black" stroke-width="0.01in" /> </svg> Any help will be appreciated. Marijan (Mario) Madunic Publishing Specialist New Flyer Industries ________________________________________ P Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
