RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-07 Thread Mario Madunic
Thanks Tom for the code. Tried it and still blank space where the svg should be. (Tested with absolute and relative paths). Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -Original Message- From: Tom Browder [mailto:tom.brow...@gmail.com] Sent: Tuesday, July 06,

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-07 Thread Eric Douglas
I never got FOP to work with any images in external files, at least with a reference which works on different machines. I haven't had a chance to revisit that yet but I will figure it out. I had figured out a format for the href which worked for svg and not for other image formats but it was

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-07 Thread Mario Madunic
Eric, I'm keeping away from having the SVGs inline. The FO file will be 250+ megs and I'm trying to keep the size of the FO as small as possible if I need to debug it and/or issues with running such a big file on my 32bit machine. I did a test of some SVGs inline for one section (out of 21).

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-07 Thread Eric Douglas
How are you calling FOP, and what OS? I personally use embedded code to reference the classes directly from a Java extension language called BBj (which you can find at www.basis.com). I run all my programs in webstart which tells me what it's doing in the Java console. If you go into Java on

Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Mario Madunic
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}

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Eric Douglas
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:mario_madu...@newflyer.com] Sent: Tuesday, July 06, 2010 9:00 AM To:

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Mario Madunic
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

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Mario Madunic
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

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Eric Douglas
I haven't gotten anything but blanks for external-graphic because it keeps saying it can't find the file. I haven't researched yet why, if there's a problem with FOP or just a problem with the format of my link to the file. I haven't tested 0.94, only 0.95 and Trunk. I don't know if there is a

RE: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Mario Madunic
Read the graphics.html for FOP and it doesn't say how to construct a link to an SVG that works. It does say that there were changes with 0.95+. Ran the build.xml in the trunkdir/examples/fo to see the external.fo example. The SVGs did not appear in the final PDF tests/external.pdf also. Well

Re: Problems with SVG display as background to region-body (FOP-Trunk)

2010-07-06 Thread Tom Browder
I'm not sure if this would help, but I've been able to use the trunk and an external svg file like this: fo:instream-foreign-object content-width='1.5in' content-height='auto' text-align='center' xi:include href=images/value-xhairs-only.svg/!-- relative svg file name --