RE: Marker issue
But why didn't you encounter the problem. How do you write your XSL in order to go through the transformation without seeing the error ? -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: 27 July 2001 11:24 À: [EMAIL PROTECTED] Objet: RE: Marker issue Quoting GALLO Jean-Claude [EMAIL PROTECTED]: I do some change in RetrieveMarker code, the first page condition was forgotten. The RetrieveMarker.layout method calls RetreiveMarker.locatePrevioussPage which can retrun a nul value when the page is the first one. I just put a test inside the loop looking for a page containing a marker. Whoa! You're right! :-) Untested boundary condition... I'll examine your other comments, and get that into CVS. Regards, Arved --- This mail was sent through the Nova Scotia Provincial Server, with technical resources provided by Chebucto Community Net. http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/tools TestConverter.java
keiron 01/07/27 06:49:04 Modified:src/org/apache/fop/tools TestConverter.java Log: handles xml only input, assumes fo file Revision ChangesPath 1.6 +22 -13xml-fop/src/org/apache/fop/tools/TestConverter.java Index: TestConverter.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/TestConverter.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TestConverter.java2001/07/04 13:55:28 1.5 +++ TestConverter.java2001/07/27 13:49:03 1.6 @@ -94,7 +94,7 @@ * The document is read as a dom and each testcase is covered. */ public Hashtable runTests(String fname, String dest, String compDir) { -System.out.println(running tests in file: + fname); +//System.out.println(running tests in file: + fname); try { if (compDir != null) { compare = new File(baseDir + / + compDir); @@ -118,7 +118,7 @@ if (testsuite.hasAttributes()) { String profile = testsuite.getAttributes().getNamedItem( profile).getNodeValue(); -System.out.println(testing test suite: + profile); +//System.out.println(testing test suite: + profile); } NodeList testcases = testsuite.getChildNodes(); for (int count = 0; count testcases.getLength(); count++) { @@ -143,7 +143,7 @@ if (tcase.hasAttributes()) { String profile = tcase.getAttributes().getNamedItem( profile).getNodeValue(); -System.out.println(testing profile: + profile); +//System.out.println(testing profile: + profile); } NodeList cases = tcase.getChildNodes(); for (int count = 0; count cases.getLength(); count++) { @@ -182,22 +182,31 @@ String xml = test.getAttributes().getNamedItem(xml).getNodeValue(); -String xsl = - test.getAttributes().getNamedItem(xsl).getNodeValue(); -System.out.println(converting xml: + xml + and xsl: + - xsl + to area tree); +Node xslNode = test.getAttributes().getNamedItem(xsl); +String xsl = null; +if (xslNode != null) { +xsl = xslNode.getNodeValue(); +} +//System.out.println(converting xml: + xml + and xsl: + +// xsl + to area tree); try { File xmlFile = new File(baseDir + / + xml); try { -Configuration.put(baseDir, xmlFile.getParentFile().toURL().toExternalForm()); +Configuration.put(baseDir, + xmlFile.getParentFile().toURL().toExternalForm()); } catch (Exception e) { System.err.println(Error setting base directory); } -InputHandler inputHandler = new XSLTInputHandler(xmlFile, -new File(baseDir + / + xsl)); +InputHandler inputHandler = null; +if (xsl == null) { +inputHandler = new FOInputHandler(xmlFile); +} else { +inputHandler = new XSLTInputHandler(xmlFile, +new File(baseDir + / + xsl)); +} XMLReader parser = inputHandler.getParser(); setParserFeatures(parser); @@ -220,9 +229,9 @@ if (outname.endsWith(.xml)) { outname = outname.substring(0, outname.length() - 4); } -driver.setOutputStream( - new FileOutputStream(new File(destdir, outname + (outputPDF ? .pdf : .at.xml; -System.out.println(ddir: + destdir + on: + outname + .pdf); +driver.setOutputStream( new FileOutputStream( + new File(destdir, outname + (outputPDF ? .pdf : .at.xml; +//System.out.println(ddir: + destdir + on: + outname + .pdf); driver.render(); // check difference - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file is taking long time to download!
Hai all, I am using FOP.17. When I am downloading the PDF file its working fine but taking little bit longer when file is even 185 KB. Did anyone know why its doing that, please help me. thanks in advance regards remella. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: file is taking long time to download!
Hi, Yes, I have noticed that too. Also, is there a way we could optimize our PDF's so that 300 pages file or so is not like 15MB big. I am continuously generating PDF's of 300-400 pages and the file size fluctuates between 10MB-20MB with and without any external images. Please help..anyone. Thanks, -Chetan Vig Ravi Remella wrote: Hai all, I am using FOP.17. When I am downloading the PDF file its working fine but taking little bit longer when file is even 185 KB. Did anyone know why its doing that, please help me. thanks in advance regards remella. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
pdf security
Hi all, I'm using FOP 0.19 and Acrobat 5, and whenever I try to export my FOP-generated pdf to rtf, all I get are seemingly blank pages, but it is in fact white text on a white background (In case you're wondering, my original pdf is black, red and grey text on white). I contacted Adobe technical support and they've informed me that it's a result of the security settings in my pdf - it's been set for non-copying of text. Obviously the only place it could have been set is in the FOP code. How do I change it to allow copying? Thanks, Ralph Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Bug 2867] New: - external-graphic content-width and content-height do not render in PDF
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2867 *** shadow/2867 Fri Jul 27 14:05:56 2001 --- shadow/2867.tmp.3118Fri Jul 27 14:05:56 2001 *** *** 0 --- 1,27 + ++ + | external-graphic content-width and content-height do not render in PDF | + ++ + |Bug #: 2867Product: Fop | + | Status: NEW Version: all | + | Resolution:Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: images | + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + The following FO tag is not rendered properly in a generated PDF file when it + is specified in an XSLT file and the FOP.jar is called to convert an XML file + with the XSL stylesheet to a PDF. + + The image is rendered in the PDF the same size as the original file. The image + is viewed correctly when using the Antenna House XSL formatter (1x800px). + + fo:block + fo:external-graphic src=file:1x1-black.bmp content-height=1px content- + width=800px/ + /fo:block - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Current state of fonts+PDF files??? (embedding fonts in pdf)
I've got barcodes working in my servlet and I'm programmatically loading userconfig.xml. yay me. Now, the faq states that FOP does not support embedding fonts in PDF documents. Is this information current? I see the barcode fonts in my generated PDF document on my local development machine. Is there planned support for embedded fonts in PDF? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Inheritance for fo:marker
At 01:46 AM 7/28/01 +1000, Peter B. West wrote: Arved Karen, On the surface of it, this re-parenting issue looks like a tree operation. The point of definition of the marker remains in its context at the point of definition. When a retrieve-marker is found, the marker sub-tree is attached as a child of the retrieve-marker. As long as there is a check for cycles, there s no reason that a sub-tree cannot be attached at multiple points in the tree. There are probably a few complications in terms of removal, but I have yet to work through all of these issues anyway. In fact, you're right, this would be much better. Rather than change the parent of the original, just create a temporary copy that gets attached as a child of the fo:retrieve-marker. Because the original should stay where it is for future marker operations. In any case the code does not permit the original to be laid-out, so there is no problem leaving the fo:marker there. Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: pdf security
At 04:42 PM 7/27/01 +0100, Ralph Bruno wrote: I'm using FOP 0.19 and Acrobat 5, and whenever I try to export my FOP-generated pdf to rtf, all I get are seemingly blank pages, but it is in fact white text on a white background (In case you're wondering, my original pdf is black, red and grey text on white). I contacted Adobe technical support and they've informed me that it's a result of the security settings in my pdf - it's been set for non-copying of text. Obviously the only place it could have been set is in the FOP code. How do I change it to allow copying? Adobe technical support does exactly what all other big-company support folks do as a first line of defense - blame someone else. In fact, FOP contains precisely zero source code to put an Encrypt key in the PDF document trailer dictionary, and hence it is not possible for documents produced by FOP, out of the box, to have security. If you produce a document with FOP, and look at the document security, not only will it tell you that you can print and copy text to your heart's content, but also that there is no security method. When you say Acrobat 5, I'm guessing you mean Acrobat Exchange. Well, that is the only part of this whole equation that can set security, and so Adobe support lied to you. OK, let's be charitable - they didn't know any better. Given my experience with customer/technical support for big companies that is a very plausible explanation. I'm a bit irritable because I'm just coming off a 12-hour day wrestling with idiosyncracies of a J2EE server which shall go unnamed, and has involved a certain support system for 6 weeks to no avail, so I'm venting a bit at Adobe's expense. They actually deserve the flak to some degree, anyway. Seriously, though, did you inspect the FOP-produced doc using _Reader_? As soon as FOP produced it? Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
File is damaged and could not be repaired
Hi there, I have been running FOP 0.17 sucessfully as a servlet for sometime now, but when I moved to FOP 0.19 I am getting this error File is damaged and could not be repaired from Acrobat reader when I attempt to convert ever the simple.fo file to PDF in the browser. It does work however from the command line. I based my sevlet on the embedded example. Has anyone come accross this problem, am I not linking the correct libraries? I am attaching the .pdf file which was generated from the simple.fo running in the servlet. Any help would be much appreciated. Cheers, Jules. -- Julian Bright BrightSparc Technologies [EMAIL PROTECTED] -- simple.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]