vertical align in a block
Hello How can I define the vertical align (i.e. top / bottom..) from a text in a fo:block Thx Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Position on page
Hello If I print something like this fo:blockxsl:value-of select=text//fo:block I need to know on which position fop will this text print. For example 150 mm from the top of the page. I need this information to evaluate if I should force a line break? How do you solve this problem? Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
20mm space between inline tag
Hello How can I insert 20mm spaces between two inline tags? This don't work: 1) fo:block fo:inlinexsl:value-of select=xxx//fo:inline fo:inline space-start=20mmxsl:value-of select=yyy//fo:inline /fo:block -- WARNING: property 'space-start' ignored 2) fo:block fo:inlinexsl:value-of select=xxx//fo:inline fo:inline padding-left=20mmxsl:value-of select=yyy//fo:inline /fo:block -- no warning Any suggestion? Thx Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how starting FOP without XML-File
Hallo I generate my PDF-File in a servlet: File xmlFile = new File("c:/temp/test.xml"); File xslFile = new File("c:/temp/test.xsl"); InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); org.xml.sax.XMLReader parser = inputHandler.getParser(); driver.buildFOTree(parser, inputHandler.getInputSource()); driver.format(); driver.setOutputStream(out); driver.render(); In the above example the xml input source is a file. But I would rather passthe input source xml file (text.xml) in the memory. It's possible and howcan I do this? Thanks Marc BEGIN:VCARD VERSION:2.1 N:Jenzer;Marc;;Herr FN:Marc Jenzer ORG:j-solution GmbH TITLE:Geschäftsführer / Consultant TEL;WORK;VOICE:+41 1 851 36 03 TEL;CELL;VOICE:+41 79 543 49 02 TEL;WORK;FAX:+41 1 851 36 04 ADR;WORK:;;Geerenstrasse 18;Niederglatt;;CH-8172 LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Geerenstrasse 18=0D=0ANiederglatt CH-8172 URL:http://www.j-solution.ch URL:http://www.j-solution.ch KEY;X509;ENCODING=BASE64: MIIFDDCC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YvaHR0cHM6 Ly9jcmwuc3dpc3NrZXkuY2gvcHJvZHNzbC9nZXRfc3RhdHVzP3NpZD0wQwYDVR0gBDwwOjA4 BgdghXQFCgEBMC0wKwYIKwYBBQUHAgEWH2h0dHA6Ly93d3cuc3dpc3NrZXkuY2gvcHJvZC9j cHMwQwYDVR0RBDwwOqUdoAYTBDAwODWhExMRMTAwMDEzMTIwMDAwMDAxNTCBGW1hcmMuamVu emVyQGotc29sdXRpb24uY2gwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMEMA0GCSqG SIb3DQEBBQUAA4IBAQBSHXq5nXCnPHC9EOllO+V1DqMI4Kkn2UDtUI6U2rTr8TrlJAot7hb4 eYJAoFQpZvIJbM3pkr6p/JyzmKwlenEQSPor6Z/ib8Qcqz6stl3YNAJFx+6TPMea+CvZnzTM DwSEQsra11xmoeobPIbaBQAowIhK+7bAkQbzcAriJ+MMa7odsBPHioU0455fpLbL+SXgP1Lo KgBifz2+RlYUMYnFyDF1rYsPOrlxGT2wsusb03LjNMvpYM8F+C2tF5bzfTy0V2+obw9Tymvp A01pYTPU+OXGFhfL/x9miRkF32daOocaNAQTebErBFkHkVjsh/OXjtk1Zn35jJIYh6Q/z0aE EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010209T164031Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: how starting FOP without XML-File
Thanks for the answer! But with your solution, I can't pass the fop xsl file. This file is on the filesystem. Could you help me? Thanks -Original Message-This code will read the XML from a String object and write the PDF outputback to the browser.: try { String fopstring = your function to generate the XML InputSource foSource = InputSource(new StringReader(fopstring)); ByteArrayOutputStream out = new ByteArrayOutputStream(); response.setContentType("application/pdf"); Driver driver = new Driver(foSource, out); driver.setRenderer(Driver.RENDER_PDF); driver.run(); byte[] content = out.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); response.flushBuffer(); }Jim Urban -Original Message----- From: Marc Jenzer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 7:14 AM To: [EMAIL PROTECTED] Subject: how starting FOP without XML-File Hallo I generate my PDF-File in a servlet: File xmlFile = new File("c:/temp/test.xml"); File xslFile = new File("c:/temp/test.xsl"); InputHandler inputHandler = new XSLTInputHandler(xmlFile,xslFile); org.xml.sax.XMLReader parser = inputHandler.getParser(); driver.buildFOTree(parser, inputHandler.getInputSource()); driver.format(); driver.setOutputStream(out); driver.render(); In the above example the xml input source is a file. But I would ratherpass the input source xml file (text.xml) in the memory. It's possible andhow can I do this? Thanks Marc
RE: how starting FOP without XML-File
Jim, Thanks a lot for your help! It works now! Cheers Marc
TTF and hyphenation
Hallo If I use an imported font (like Arial), the hyphenation functionality of fop doesn't work. Exists for this problem a patch or a workaround? Thanks Marc
fop shrink the column-width
What do I wrong or what can I do better? I define in the below example that the first column should be 133mm long. If the text for the first column is short, fop shrink this first column to 60 mm. If thetext is longer, than it work's fine. fo:table fo:table-column column-width="133mm"/ fo:table-column column-width="8mm"/ fo:table-body fo:table-row fo:table-cellfo:blockMy Col 1/fo:block/fo:table-cell fo:table-cellfo:block text-align="end"My Col 2/fo:block/fo:table-cell /fo:table-row /fo:table-body/fo:table Any suggestion? Thanks Marc