where can I find the javadoc
Hello, I have tried to hunt through both the source code tar and the binary tar, and can't find the javadoc for FOP. Am I blind, or is it somewhere else. Any help would be great Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can FOP generate .fo from the original XML?
Robert, FOP uses XALAN to do its XSLT processing. Using xalan.bat (it's in the BINARY of 0.20.5rc2 and I think the SOURCE, too), you can output to FO. The command line is: xalan.bat -in (XML_FILE.xml) -xsl (XSL_FILE.xsl) -out (NEW_FO_FILE.fo) For more information, simply run xalan.bat from the command line. Hope this helps! Web Maestro Clay Robert P. J. Day wrote: from its command-line options, it appears that FOP can take the original XML and XSL and go straight to PDF. can i have it just generate the .fo file instead? as far as i can see, the -fo option is strictly for referring to the .fo input file. is this correct? rday - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can FOP generate .fo from the original XML?
On Tue, 11 Mar 2003, Clay Leeds wrote: Robert, FOP uses XALAN to do its XSLT processing. Using xalan.bat (it's in the BINARY of 0.20.5rc2 and I think the SOURCE, too), you can output to FO. The command line is: xalan.bat -in (XML_FILE.xml) -xsl (XSL_FILE.xsl) -out (NEW_FO_FILE.fo) um ... ok, i really should have deduced that. argh. thanks. rday - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where can I find the javadoc
Steve Vanspall wrote: I have tried to hunt through both the source code tar and the binary tar, and can't find the javadoc for FOP. Am I blind, or is it somewhere else. Good question. Currently, the only way to get the javadocs is to build them from the sources, using the ant target javadocs, typically run using the build.bat or build.sh scripts. For example: build.sh javadocs should build them. BTW, I just updated the FAQ source file with this information, but it may take a few days for it to be reflected on the web site. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where can I find the javadoc
Thanks, scrolled through the source doe, got the info I wanted. Regards Steve -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 12:49 PM To: [EMAIL PROTECTED] Subject: RE: where can I find the javadoc Steve Vanspall wrote: I have tried to hunt through both the source code tar and the binary tar, and can't find the javadoc for FOP. Am I blind, or is it somewhere else. Good question. Currently, the only way to get the javadocs is to build them from the sources, using the ant target javadocs, typically run using the build.bat or build.sh scripts. For example: build.sh javadocs should build them. BTW, I just updated the FAQ source file with this information, but it may take a few days for it to be reflected on the web site. Victor Mote - 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]
Line-wrap in fo:leader
How can I handle line-wrap in fo:leader? I'd like to get: blahref,ref blahref,ref,ref blah, blah, blah, blah, blah,... .ref,ref,ref However, the justification gets lost when it line wraps for me, and I get: blahref,ref blahref,ref,ref blah, blah, blah, blah, blah,... ref,ref,ref This looks ragged. Here's a link to my stuff, which uses Fop 0.20.5rc2: http://coolbox.seseit.com/~rob/mims_index_218.xml.index.6.xsl.fo.fop-0.2 0.5rc2.rtf.html Any help would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:leader weird output (again) ;o)
I do apologise. I've unfirewalled port 8080. I hadn't realised that it was set up like that. -Original Message- From: laurent marot [mailto:[EMAIL PROTECTED] Sent: 09 March 2003 17:43 To: [EMAIL PROTECTED] Subject: Re: fo:leader weird output (again) ;o) sorry but url doesn't work when i click submit button - Original Message - From: Rob Staveley (Tom) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 6:34 PM Subject: RE: fo:leader weird output (again) ;o) Thank you so much! I followed your recommendations and http://coolbox.seseit.com/~rob/fop.0.20.5rc2.using-index.3.html looks good to me with 0.20.5rc2 -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: 09 March 2003 11:29 To: [EMAIL PROTECTED] Subject: Re: fo:leader weird output (again) ;o) Rob Staveley (Tom) wrote: In the same vein... I'm trying to put together a catalogue index, which is dependent on fo:leader. I'm also getting a ragged right-hand margin from 0.20.5rc2 (see to GET from http://coolbox.seseit.com/~rob/fop.0.20.5rc2.html), but when I used the last of yesterday's snapshot from the CVS repository (xml-fop_20030309052748.tar.gz) the output looks worse rather than better (sorry I've not got a link for this). The problem is, the lines are correctly aligned during layout, in the PDF renderer the (912) strings have exactly the same x-position and area width. I can only guess something weird happens with the space calculation between the leader and the word on the line end. Also , the space at the block end is occasionally a problem. As a workaround: - Use leader-alignment=reference-area. This guarantees the leaders end at the same x-position if the followig word has the same length as on the line before. It also looks better. - Write your XSLT so that no extra space occurs at the end of the line, i.e. ...080)/fo:inline/fo:block instead of ...080)/fo:inline /fo:block This looks already much better. J.Pietschmann - 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] - 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]
Re: embedded svg with blank anchor elements causes NullPointerException in 1.0Dev
More bad SVG, if you ask me, but FOP shouldn't crash because of that. I've fixed the bug in CVS. Thanks for reporting it. I still have to find out why it doesn't crash in 0.20.5rc2. The code is almost the same. On 11.03.2003 23:59:16 Krautbauer, Bruce wrote: The following document processes without error with 0.20.5rc2 but causes a java.lang.NullPointerException with 1.0Dev. I narrowed it down to the fact that the a has 'null' content. Should I submit a bug or is this bad XSL:FO? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
On 11.03.2003 16:04:00 Hans Stoessel wrote: If I convert the SVG file with the version of FOP, the PDF file is much bigger (about 5 times). And a font I use (Arial) in the SVG file is changed in the PDF file. With the version 0.20.5 works this correct. I think I use the old version for the moment... Probably safe. The reason for these two problems is the lack of configuration (no compression, no custom fonts), I think. This will be addressed for the first release of the PDF transcoder. Monitor this mailing list for announcements. One more question: Can I change the size (widht and height) of the generated PDF file? There's something about that here: http://xml.apache.org/fop/dev/svg.html The test.svg and the resulting PDF you sent are pretty simple. I've cross-checked most elements in the PDF with the PDF spec and I can't see anything strange. Without access to Adobe Illustrator and/or a better error message from it I can't do anything else. Probably best if you sent the PDF to Adobe support. The PDF, by the way, opens nicely in GhostScript/GhostView and CorelDraw. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Word character encoding.
I am interested in your MS Word cleaner. Actually, I would like to see it right away if it is possible. Regards, Dennis Myrén -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11. mars 2003 19:20 To: [EMAIL PROTECTED] Subject: Question about Word character encoding. Hi, I have a little query : I am looking for a table with the hexadecimal code for the MS Word specific characters (eg: ... or the ' character). I am coding a java class that will clean the Word input to avoid FOP to render specific character as #. eg : if (c == 0x85) { stBuffer.append(...); } else { stBuffer.append(c); } I looked over the web using google and didn't find it ... I began the work with an hexadecimal editor, but a such table would be really usefull ! =) The best would be a existing class, but I don't think it exists yet. If someone need a such class, I'll send mine here once I will have finished to code it. Thanks, Simon - 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]
Letter-spacing / kerning between words in PDFRenderer
Hi, To begin with: we use FOP 0.20.4, and this mail is about a partly fix for missing letter-spacing/kerning between words in PDF's. In PDF's produced with FOP compared to PDF's from other an other source, we noticed that FOP doesn't apply kerning (letter-spacing) to spaces between words, most obviously at the end of sentences. I.e., no kerning is applied to the character pairs word-characterspace (for example, . ) and spaceword-character (for example, V). The cause, or in any case, the place where it can (partly?) be fixed, can be found in the method renderWordArea(WordArea area) in PDFRenderer.java. The latter case (spaceword-character) I could easily fix. All I had to do was move the lines String s; if (area.getPageNumberID() != null) {// this text is a page number, so resolve it s = idReferences.getPageNumber(area.getPageNumberID()); if (s == null) { s = ; } } else { s = area.getText(); } int l = s.length(); up a few lines so they precede 'if (!textOpen || bl != prevWordY)', and add the following lines in the else-part of 'if (!textOpen || bl != prevWordY)': if (kerningAvailable l 0) { addKerning(pdf, (new Integer((int) ' ')), (new Integer((int) area.getFontState().mapChar(s.charAt(0, kerning, startText, endText); } I've attached the complete code of the method renderWordArea separately. But..., that's only half of the solution! The first case (word-characterspace) is more difficult. I think that in renderWordArea we can not be sure that a space is following the word we just rendered - or can we? And we don't have the last character of the previous word available. Anyone has any ideas? Regards, Joop Vriend. /** * render inline area to PDF * * @param area inline area to render */ public void renderWordArea(WordArea area) { synchronized (_wordAreaPDF) { StringBuffer pdf = _wordAreaPDF; pdf.setLength(0); Hashtable kerning = null; boolean kerningAvailable = false; kerning = area.getFontState().getKerning(); if (kerning != null !kerning.isEmpty()) { kerningAvailable = true; } String name = area.getFontState().getFontName(); int size = area.getFontState().getFontSize(); // This assumes that *all* CIDFonts use a /ToUnicode mapping boolean useMultiByte = false; Font f = (Font) area.getFontState(). getFontInfo().getFonts().get(name); if (f instanceof LazyFont) { if (((LazyFont) f).getRealFont() instanceof CIDFont) { useMultiByte = true; } } else if (f instanceof CIDFont) { useMultiByte = true; } // String startText = useMultiByte ? FEFF : (; String startText = useMultiByte ? : (; String endText = useMultiByte ? : ) ; if ((!name.equals(this.currentFontName)) || (size != this.currentFontSize)) { closeText(); this.currentFontName = name; this.currentFontSize = size; pdf = pdf.append(/ + name + + ((float)size / 1000) + Tf\n); } //Do letter spacing (must be outside of [..] TJ) float letterspacing = ((float) area.getFontState().getLetterSpacing()) / 1000; if (letterspacing != this.currentLetterSpacing) { this.currentLetterSpacing = letterspacing; closeText(); pdf.append(letterspacing).append( Tc\n); } PDFColor areaColor = null; if (this.currentFill instanceof PDFColor) { areaColor = (PDFColor) this.currentFill; } if (areaColor == null || areaColor.red() != (double) area.getRed() || areaColor.green() != (double) area.getGreen() || areaColor.blue() != (double) area.getBlue()) { areaColor = new PDFColor((double) area.getRed(), (double) area.getGreen(), (double) area.getBlue()); closeText(); this.currentFill = areaColor; pdf.append(this.currentFill.getColorSpaceOut(true)); } int rx = this.currentXPosition; int bl = this.currentYPosition; addWordLines(area, rx, bl, size, areaColor); String s; if (area.getPageNumberID() != null) {// this text is a page number, so resolve it s = idReferences.getPageNumber(area.getPageNumberID()); if (s == null) { s = ; } } else { s = area.getText(); } int l = s.length(); if (!textOpen || bl != prevWordY) { closeText(); pdf.append(1 0 0 1 + (rx / 1000f) + + (bl / 1000f) + Tm [ + startText); prevWordY = bl; textOpen = true; } else { // express the space between words in thousandths of an em
using FOP for docbook
for the folks who want to play along with testing what does and does not work with docbook-PDF rendering, one of the test environments i find useful is tim waugh's selfdocbookx example, that you can download from www.cyberelk.net/tim/docbook/index.html. at the bottom of that page, you can find a link to the source for the XML version, which is a tar ball containing a document, Makfile and associated support files from which you can easily generate HTML, FO and PDF. at the moment, the makefile uses passivetex for the FO and PDF transformations, and *that's* the part i'm replacing with FOP to see the difference. it's worth downloading that and seeing the FO and PDF generated by passivetex so you can compare it to what comes out of FOP, which is what i'm playing with at the moment. if you want to do this, you should make sure that you have the latest versions of docbook-style-xsl (1.60.1) passivetex (1.23) from tim's test environment, you can quickly see what parts FOP is having problems with. more later, as i poke around with this. rday - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsl-region-before flow control
Hi all, I have been using FOP for more then a year and a half. Till now i needed to put something on the first page but not on the others, and i solved this with a variable. But as you all might know it's not really clean programming. So without having to define a new page-sequence, is there a way to find out if it's the first page or not? Remember i'm still using 0.20.3 -- upgrade to 0.20.5 will be for around may (i don't have the time now) thank you all... Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app
I saw a number of posted responses to David's query but it seems like most respondents are using FOP on the server side. Is there much experience in using FOP on the client side, say inside of an applet? I am interested in streaming XSLT to the user's browser and having an applet transform it into a PDF, then invoke Acrobat reader to render it on the desktop. Is this a common application? It is related to this thread in that I am concerned about production support in such an environment. Is there a better way? Thanks. Ken Van Camp [EMAIL PROTECTED] -Original Message- From: Holk, David A [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:37 PM To: '[EMAIL PROTECTED]' Subject: FOP in production app Is anyone using FOP in a production app? Should I expect a commercial product like XEP or XSLFormatter to be more robust in a production application? Any experiences/comments appreciated. David Holk LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Word character encoding.
I am interested in your MS Word cleaner. Actually, I would like to see it right away if it is possible. Regards, Dennis Myrén Hi Dennis, Here is the function I just coded to resolve my issue with the Word's specific characters (appearing as # in the resulting PDF). As I said, I did'nt find any complete table of the M$ Word's specific characters, so this function is not complete at all, but it is enought for my problem ! And it's not optimised at all, but it didn't slow my process so much ! A stupid java question, should I make a first test like : if ((source.indexOf(0x85) 0) (source.indexOf(0x91) 0) (source.indexOf(0x92) 0) (source.indexOf(0x93) 0) (source.indexOf(0x94) 0) (source.indexOf(0x20) 0) (source.indexOf(0x96) 0) (source.indexOf(0x9C) 0)) { stBuffer.append(c); } Cheers, Simon //--- /** * Clean the MS Word characters in the codeString/code object given as parameter. * * @param source The codeString/code object to format. * @return A new formatted codeString/code object. */ public static String formatWord2K(String source) { String output = source; if ((source.indexOf(0x85) 0) || (source.indexOf(0x91) 0) || (source.indexOf(0x92) 0) || (source.indexOf(0x93) 0) || (source.indexOf(0x94) 0) || (source.indexOf(0x20) 0) || (source.indexOf(0x96) 0) || (source.indexOf(0x9C) 0)) { StringBuffer stBuffer = new StringBuffer(); int len = source.length(); for (int i = 0; source != null i len; i++) { char c = source.charAt(i); // Replace the Word's (...) character (0x85). if (c == 0x85) { stBuffer.append(...); } // Replace the Word's (' and ') characters (0x91 et 0x92). else if (c == 0x91 || c == 0x92) { stBuffer.append('); } // Replace the Word's ( et ) characters (0x93 et 0x94). else if (c == 0x93 || c == 0x94) { stBuffer.append(''); } // Replace the Word's (?) character (0x96). else if (c == 0x96) { stBuffer.append(-); } // Replace the Word's hard space ( ) character (0x20). else if (c == 0x20) { stBuffer.append( ); } // Replace the Word's (?) character (0x9C). else if (c == 0x9C) { stBuffer.append(oe); } else { stBuffer.append(c); } } output = stBuffer.toString(); } return output; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: FOP in production app (clienside)
Hi, You have to consider the additional JARs used by FOP (Xalan, Avalon, ...). IMHO you get somewhat around 5 MB of JARs. It will take a long time for your users to download so much stuff (at least the first time they use the applet). This was the reason for us to have FOP on the server and send PDF from there to the client. Markus $ -Ursprüngliche Nachricht- $ Von: Van Camp, Kenneth (Exchange) [mailto:[EMAIL PROTECTED] $ Gesendet: Mittwoch, 12. März 2003 14:56 $ An: '[EMAIL PROTECTED]' $ Betreff: RE: FOP in production app $ $ $ I saw a number of posted responses to David's query but it $ seems like most $ respondents are using FOP on the server side. Is there much $ experience in $ using FOP on the client side, say inside of an applet? I am $ interested in $ streaming XSLT to the user's browser and having an applet $ transform it into $ a PDF, then invoke Acrobat reader to render it on the desktop. $ $ Is this a common application? It is related to this thread $ in that I am $ concerned about production support in such an environment. $ $ Is there a better way? Thanks. $ $ Ken Van Camp [EMAIL PROTECTED] $ $ -Original Message- $ From: Holk, David A [mailto:[EMAIL PROTECTED] $ Sent: Monday, March 10, 2003 12:37 PM $ To: '[EMAIL PROTECTED]' $ Subject: FOP in production app $ $ $ Is anyone using FOP in a production app? $ $ Should I expect a commercial product like XEP or $ XSLFormatter to be more $ robust in a production application? $ $ Any experiences/comments appreciated. $ $ David Holk $ $ $ LEGAL NOTICE $ Unless expressly stated otherwise, this message is $ confidential and may be $ privileged. It is intended for the addressee(s) only. Access $ to this E-mail $ by anyone else is unauthorized. If you are not an addressee, $ any disclosure $ or copying of the contents of this E-mail or any action $ taken (or not taken) $ in reliance on it is unauthorized and may be unlawful. If $ you are not an $ addressee, please inform the sender immediately. $ $ - $ To unsubscribe, e-mail: [EMAIL PROTECTED] $ For additional commands, e-mail: [EMAIL PROTECTED] $ $ $ * $ ** $ Bear Stearns is not responsible for any recommendation, $ solicitation, $ offer or agreement or any information about any transaction, $ customer $ account or account activity contained in this communication. $ * $ ** $ $ $ - $ 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]
RE: Question about Word character encoding.
Thank you Simon! I have got use for it! Regards, Dennis Myrén -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12. mars 2003 15:16 To: [EMAIL PROTECTED] Subject: RE: Question about Word character encoding. I am interested in your MS Word cleaner. Actually, I would like to see it right away if it is possible. Regards, Dennis Myrén Hi Dennis, Here is the function I just coded to resolve my issue with the Word's specific characters (appearing as # in the resulting PDF). As I said, I did'nt find any complete table of the M$ Word's specific characters, so this function is not complete at all, but it is enought for my problem ! And it's not optimised at all, but it didn't slow my process so much ! A stupid java question, should I make a first test like : if ((source.indexOf(0x85) 0) (source.indexOf(0x91) 0) (source.indexOf(0x92) 0) (source.indexOf(0x93) 0) (source.indexOf(0x94) 0) (source.indexOf(0x20) 0) (source.indexOf(0x96) 0) (source.indexOf(0x9C) 0)) { stBuffer.append(c); } Cheers, Simon //--- /** * Clean the MS Word characters in the codeString/code object given as parameter. * * @param source The codeString/code object to format. * @return A new formatted codeString/code object. */ public static String formatWord2K(String source) { String output = source; if ((source.indexOf(0x85) 0) || (source.indexOf(0x91) 0) || (source.indexOf(0x92) 0) || (source.indexOf(0x93) 0) || (source.indexOf(0x94) 0) || (source.indexOf(0x20) 0) || (source.indexOf(0x96) 0) || (source.indexOf(0x9C) 0)) { StringBuffer stBuffer = new StringBuffer(); int len = source.length(); for (int i = 0; source != null i len; i++) { char c = source.charAt(i); // Replace the Word's (...) character (0x85). if (c == 0x85) { stBuffer.append(...); } // Replace the Word's (' and ') characters (0x91 et 0x92). else if (c == 0x91 || c == 0x92) { stBuffer.append('); } // Replace the Word's ( et ) characters (0x93 et 0x94). else if (c == 0x93 || c == 0x94) { stBuffer.append(''); } // Replace the Word's (?) character (0x96). else if (c == 0x96) { stBuffer.append(-); } // Replace the Word's hard space ( ) character (0x20). else if (c == 0x20) { stBuffer.append( ); } // Replace the Word's (?) character (0x9C). else if (c == 0x9C) { stBuffer.append(oe); } else { stBuffer.append(c); } } output = stBuffer.toString(); } return output; } - 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]
AW: FOP in production app (clienside)
I agree with Markus. FOP needs so much JARs and rendering PDF take so much ressources that I think it's better to do the transformations server side and then send the result to the client. That is my opinion about using FOP clientside with an applet (for web app, I think the servlet approach is better). But I already used command line version of FOP (clientside) integrated in my VB app using SHELL32.DLL, it is working well, we just had to deploy the proper JAR's over the network. Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: FOP in production app
I use FOP on the client side. The application (not applet) offers templates for different kinds of documents e.g. invitations, advertisements etc. The user can enter text and choose from an image list (remote db and local files) and the app produces a pdf. In my case it was better to use fop on the client side because the images are rather big and once used are saved on the clients hard disk. So every subsequent use of the same template and pictures takes place on the client side with no further downloading. So far everything works fine with fop. But I can't tell you much about big documents because I only have single page documents. And there are only images and texts, so fop is sufficient for my needs. Compared to the prize of xep, I think fop is the library of choice. Alex -Ursprüngliche Nachricht- Von: Van Camp, Kenneth (Exchange) [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 14:56 An: '[EMAIL PROTECTED]' Betreff: RE: FOP in production app I saw a number of posted responses to David's query but it seems like most respondents are using FOP on the server side. Is there much experience in using FOP on the client side, say inside of an applet? I am interested in streaming XSLT to the user's browser and having an applet transform it into a PDF, then invoke Acrobat reader to render it on the desktop. Is this a common application? It is related to this thread in that I am concerned about production support in such an environment. Is there a better way? Thanks. Ken Van Camp [EMAIL PROTECTED] -Original Message- From: Holk, David A [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:37 PM To: '[EMAIL PROTECTED]' Subject: FOP in production app Is anyone using FOP in a production app? Should I expect a commercial product like XEP or XSLFormatter to be more robust in a production application? Any experiences/comments appreciated. David Holk LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - 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]
RE: Question about Word character encoding.
On Wed, 2003-03-12 at 09:16, [EMAIL PROTECTED] wrote: Here is the function I just coded to resolve my issue with the Word's specific characters (appearing as # in the resulting PDF). As I said, I did'nt find any complete table of the M$ Word's specific characters, so this function is not complete at all, but it is enought for my problem ! Simon, I don't know what Word uses for internal character representation, but I would not be surprised if it is the Windows-1252 character set. Win1252 is a superset of ISO8859-1. It defines the characters between 0x80 and 0x9f which ISO8859-1 specifically leaves undefined. It is in this range that you find the curly quotes, em dash and TM symbol that often make their way into documents and then don't display properly on non-Windows platforms. There is a great Web page about it here: http://czyborra.com/charsets/iso8859.html HTH Philip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app (clienside)
Good point. Here's my problem: I need to generate on-demand some good-size PDFs (a few hundred pages) for a lot of users. Our tests with FOP indicate it is too resource intensive to do on my web servers for this many users, so I'd like to generate XSLT and somehow let the client's PC do the transform to PDF. If applet is not practical, I wonder if there are any browser plug-ins that can do it (hopefully much smaller than 5MB)? It would be great if Adobe produced a version of Acrobat that can consume XSLT and render the PDF directly, but I have not heard anything to indicate they are working on this. -Original Message- From: Müller, Markus [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:18 AM To: [EMAIL PROTECTED] Subject: AW: FOP in production app (clienside) Hi, You have to consider the additional JARs used by FOP (Xalan, Avalon, ...). IMHO you get somewhat around 5 MB of JARs. It will take a long time for your users to download so much stuff (at least the first time they use the applet). This was the reason for us to have FOP on the server and send PDF from there to the client. Markus $ -Ursprüngliche Nachricht- $ Von: Van Camp, Kenneth (Exchange) [mailto:[EMAIL PROTECTED] $ Gesendet: Mittwoch, 12. März 2003 14:56 $ An: '[EMAIL PROTECTED]' $ Betreff: RE: FOP in production app $ $ $ I saw a number of posted responses to David's query but it $ seems like most $ respondents are using FOP on the server side. Is there much $ experience in $ using FOP on the client side, say inside of an applet? I am $ interested in $ streaming XSLT to the user's browser and having an applet $ transform it into $ a PDF, then invoke Acrobat reader to render it on the desktop. $ $ Is this a common application? It is related to this thread $ in that I am $ concerned about production support in such an environment. $ $ Is there a better way? Thanks. $ $ Ken Van Camp [EMAIL PROTECTED] $ $ -Original Message- $ From: Holk, David A [mailto:[EMAIL PROTECTED] $ Sent: Monday, March 10, 2003 12:37 PM $ To: '[EMAIL PROTECTED]' $ Subject: FOP in production app $ $ $ Is anyone using FOP in a production app? $ $ Should I expect a commercial product like XEP or $ XSLFormatter to be more $ robust in a production application? $ $ Any experiences/comments appreciated. $ $ David Holk *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP in production app (clienside)
Van Camp, Kenneth (Exchange) wrote: If applet is not practical, I wonder if there are any browser plug-ins that can do it (hopefully much smaller than 5MB)? I'd look to Java Web Start. 5MB is required, but it can be downloaded once only. It would be great if Adobe produced a version of Acrobat that can consume XSLT and render the PDF directly, but I have not heard anything to indicate they are working on this. They are working on server side, which costs 20K actually. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app (clienside)
On Wed, 2003-03-12 at 11:03, Van Camp, Kenneth (Exchange) wrote: If applet is not practical, I wonder if there are any browser plug-ins that can do it (hopefully much smaller than 5MB)? It would be great if Adobe produced a version of Acrobat that can consume XSLT and render the PDF directly, but I have not heard anything to indicate they are working on this. Rendering XSL FO -- PDF is a pretty complex task and I would be surprised if you find any simple applications to do it. By simple I mean apps that don't require that you have already installed a parser, etc. Adobe Document Server (http://www.adobe.com/products/server/documentserver/main.html) lists among its key features that it can Flow XML data into templates using standard XSL-FO formatting. This is only one of eleven key features so one can hardly say it is the main focus of the product but it seems like Adobe is paying some attention to rendering XSL FO. But this, like FOP, is a product intended for server-side use and for much the same reasons I suspect. Good luck Philip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app (clienside)
We had the same needs, generate on-demand big PDF with some images (between 200 and 500 pages), fop is mostly used here by the employees in their usual apps, but there was also a few need for our websites' users. We first have integrated FOP in our front apps using SHELL32.DLL in Visual Basic environment. So we just had to deploy the JARs over the network and the renders were made by the clients. Then we made a servlet to integrate our work on the websites. If your clients are on a Windows platform, why don't you use a customised command line version of FOP which could be easily integrated into your client app ? As I said, we did that here, a command line version for the (lots of) client users here in the society, and a servlet embedded version for the (few) remote users. Simon Van Camp, Kenneth (Exchange) [EMAIL PROTECTED] 12/03/2003 17:03 Veuillez répondre à fop-user Pour : '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc : Objet : RE: FOP in production app (clienside) Good point. Here's my problem: I need to generate on-demand some good-size PDFs (a few hundred pages) for a lot of users. Our tests with FOP indicate it is too resource intensive to do on my web servers for this many users, so I'd like to generate XSLT and somehow let the client's PC do the transform to PDF. If applet is not practical, I wonder if there are any browser plug-ins that can do it (hopefully much smaller than 5MB)? It would be great if Adobe produced a version of Acrobat that can consume XSLT and render the PDF directly, but I have not heard anything to indicate they are working on this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : RE: Question about Word character encoding.
Many thanks for your answer, and your expertise ! I didn't know about that unused range, it will help me a lot since I just have to focus my attention on it now. Simon Philip Semanchuk [EMAIL PROTECTED] 12/03/2003 15:53 Veuillez répondre à fop-user Pour : [EMAIL PROTECTED] [EMAIL PROTECTED] cc : Objet : RE: Question about Word character encoding. On Wed, 2003-03-12 at 09:16, [EMAIL PROTECTED] wrote: Here is the function I just coded to resolve my issue with the Word's specific characters (appearing as # in the resulting PDF). As I said, I did'nt find any complete table of the M$ Word's specific characters, so this function is not complete at all, but it is enought for my problem ! Simon, I don't know what Word uses for internal character representation, but I would not be surprised if it is the Windows-1252 character set. Win1252 is a superset of ISO8859-1. It defines the characters between 0x80 and 0x9f which ISO8859-1 specifically leaves undefined. It is in this range that you find the curly quotes, em dash and TM symbol that often make their way into documents and then don't display properly on non-Windows platforms. There is a great Web page about it here: http://czyborra.com/charsets/iso8859.html HTH Philip - 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]
tab characters alignment
Hi, does anybody know how FOP works with tab characters? I'm trying to generate a PDF file starting from a simple text which contains tab characters, and I want to keep them in the resulting PDF. I put the text into a block tag with the attribute white-space-collapse=false ( the text to be printed hasn't a standard format, so I can't use tables ) It seems that FOP recognize tabs but it simply replaces them with a fixed number of white spaces without any kind of consideration about horizontal alignment Thanks in advance Claudio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app (clienside)
I use Java Web Start to deliver a Java application embedding FOP and it works great. I consider a one-time 5M download to be small these days, compared to lots of other internet practices people frequently use (like downloading game demos). Besides, you can quickly surpass 5M in PDF downloads by clients generating PDF files server-side, particularly if you're using any SVG. Rendering large FOP documents server-side (or client-side) is very resource-intensive, and it doesn't take much math to figure out that you will quickly need to have a number of servers to support any significant population of active users. For my purposes, the incremental cost associated with adding a new user under a server-side arrangement would exceed what I could charge them. Meanwhile, their CPUs would be sitting 99% idle waiting for the document to render on the server Patrick Rusk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tab characters alignment
Claudio De Bernardi does anybody know how FOP works with tab characters? I'm trying to generate a PDF file starting from a simple text which contains tab characters, and I want to keep them in the resulting PDF. I put the text into a block tag with the attribute white-space-collapse=false ( the text to be printed hasn't a standard format, so I can't use tables ) It seems that FOP recognize tabs but it simply replaces them with a fixed number of white spaces without any kind of consideration about horizontal alignment I do not know the answer to your direct question. However, AFAIK, the spirit, and probably the letter, of the XSL-FO standard is that tabular data should be put into tables. The tab was invented for typewriters similar devices, and is inferior to real tables. I may be wrong, but it seems that if you have tabs separating tabular data, that you do indeed have a standard format that could use tables. Consider digging a little deeper along that axis. HTH. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tab characters alignment
Victor, thanks for your reply. I agree with your opinion about tabs modernity, but it sound strange that a modern tool like FOP isn't backward compatible with a so simple features, consider that most editors support tabs in the rigth way and people still use them my aim is to have the most simple editor to create a PDF file based on an HTML textarea, obviuosly users should be free to use the poor ways provided by textareas to format a text which I think are only tabs (if the user use copy and paste), white spaces and line breaks Now I think I will try with different solutions Regards, Claudio Victor Mote wrote: Claudio De Bernardi does anybody know how FOP works with tab characters? I'm trying to generate a PDF file starting from a simple text which contains tab characters, and I want to keep them in the resulting PDF. I put the text into a block tag with the attribute white-space-collapse="false" ( the text to be printed hasn't a standard format, so I can't use tables ) It seems that FOP recognize tabs but it simply replaces them with a fixed number of "white spaces" without any kind of consideration about horizontal alignment I do not know the answer to your direct question. However, AFAIK, the spirit, and probably the letter, of the XSL-FO standard is that tabular data should be put into tables. The tab was invented for typewriters similar devices, and is inferior to real tables. I may be wrong, but it seems that if you have tabs separating tabular data, that you do indeed have a standard format that could use tables. Consider digging a little deeper along that axis. HTH. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing to FOP / Tomcat
Hello, First I must admit that as far as getting this up and running I failed miserably and i'm having troubles finding a good guide to get this up and running. What i've tried to do is install jakarta-tomcat-4.1.18 on my win2k server. This seems to be working. As per the documentation on fop i simply 'dropped' fop.war from the /examples/servlet directory into the webapps directory in tomcat. This seem to 'extract' the war file into webapps/fop/. when i tried to access this from the server i couldn't access http://localhost:8080/fop/fop?blag : tomcat got mad at me. i checked in the tomcat web application manager and /fop was started so i stopped it and started it again. no luck. At this point i removed /fop from the web application manager and deleted the fop directory and tried to reextract the war manually into /webapps/fop thinking that this may help 'reinitialize' the automatic tomcat installation. This did not. Now fop is gone and i have not been able to bring it back. Yes i am new to all of this technology but I want to play with it. If anyone knows of any resources that better describe installing servlets for use with tomcat (maybe specifically FOP, but anything would do) that would be great. I've been cruising through documentation on this but most of the documentation seems to assume that this stuff just works; it has not. I have successfully used fop from the batch file but for my purposes i need this web enabled. A servlet would be nice to get running. Any help on this would be super appreciated, thanky you for u're time -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tab characters alignment
Claudio, Claudio De Bernardi wrote: my aim is to have the most simple editor to create a PDF file based on an HTML textarea, obviuosly users should be free to use the poor ways provided by textareas to format a text which I think are only tabs (if the user use copy and paste), white spaces and line breaks Now I think I will try with different solutions As I recall, a textarea on a web page will not allow the input of a [tab]. In most web browers, pressing the [tab] key will move out of the textarea and on to the next field or form element. I guess one could paste a tab in (I'm not sure). But in any case, it sounds like either pre-processing the form contents with a custom SAX parser or just using Javascript or server-side scripting to create some sort of XSL-FO table might be the way to go. Good luck! -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP in production app
FYI - we use FOP in an online production app to deliver on-demand print verions of our managment reports and lab reports. Our clients (drug companies) use the app to log on and see how their clinical trials are going. Luckily we haven't had much demand for large (50+ pages) PDFs or many medium-sized reports being run concurrently. If this demand ever does appear, we know we would have a major performance issue on our hands. We would have to create a task-scheduler to run larger reports during off-hours. We did test RenderX's product, XEP, and generally found performance the same or worse than FOP. Support was really spotty as well. One report took about 10 times longer on XEP than FOP. I emailed their sales address and made it clear that only chance these guys had for a sale was to help me figure out what was causing this gap. After a week or so wait, the president of the company called and told me to call tech support, but not to tell them he told me to call because they don't like that. Tech support finally said they couldn't help me. At $5000/CPU (not even purchased yet!) I was expecting a little more. It was kind of surreal. IMO anyone who thinks you are guranteed to get any kind of support after the contract is signed is living in the past. There are good companies out there (I would put BEA at the top of the list), but don't assume you're going to get top-notch support just because you spend some $$$ or sign a maintenance contract. I hope I don't sound too much like a commercial for FOP, but given this experience I'll take an open-source project with a dedicated user and dev community over a sketchy dotcom-ish company any day. Matt Savino -Original Message- From: Holk, David A [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 9:37 AM To: '[EMAIL PROTECTED]' Subject: FOP in production app Is anyone using FOP in a production app? Should I expect a commercial product like XEP or XSLFormatter to be more robust in a production application? Any experiences/comments appreciated. David Holk LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. - 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]
Re: PDF boomarks not created due to location?
Philip Semanchuk wrote: Thank you very much Jeremias. The documentation that I have not been able to find is something that states whether this feature is WAD (working as designed) or if it is just a known quirk/bug. If patches are welcome then I guess it is the latter. =) I believe when bookmars were introduced it didn't matter where they were declared in the FO document. With 0.20.1 or so streaming rendering was introduced in order to reduce memory consumption, and since then it matters. Bookmarks are regarded a root extension and will be 'rendered' when the end tag of the first page sequence is encountered. This means bookmarks must be completely declared *before* the first page sequence, or they'll just be dropped. I'm sure this is an unintended consequence, but one which bothers me *much* less than others. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Word character encoding.
[EMAIL PROTECTED] wrote: I have a little query : I am looking for a table with the hexadecimal code for the MS Word specific characters (eg: ... or the ' character). You should probably take a look at jakarta POI http://jakarta.apache.org/poi/index.html The claim to be able to read/write Word and other MS proprietary file formats. BTW the peculiarities of Word files vary considerably between versions. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing to FOP / Tomcat
Hello, thanks for the reply Phillip I just reinstalled tomcat (to start from scratch) and placed the war file in the webapps dir. This seemed to get processed right away then I copied the supporting .jar files into the web-inf/lib directory. This is from the log file. 2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at context path /fop from URL file:C:/Program Files/Apache Group/Tomcat 4.1/webapps/fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes 2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator class java.security.SecureRandom 2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number generator has been completed 2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet default 2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet invoker 2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host 'localhost' This is from stderr.txt INFO: Jk running ID=0 time=0/120 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 23: The content of element type servlet-mapping must match (servlet-name,url-pattern). org.xml.sax.SAXParseException: The content of element type servlet-mapping must match (servlet-name,url-pattern). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30 5) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 51) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1012) at java.lang.Thread.run(Thread.java:536) I couldn't find any reference to this in my mail list archives, bugzilla, or the faq. I know that its something that this is probably something to do with an incomplete setup. I have read that tomcat comes with detailed instructions on howto install fop but i'm unable to locate this. Any help would be appreciated. oh yeah, right now i'm using fop-0.20.4 -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Line-wrap in fo:leader
Rob Staveley (Tom) wrote: blah, blah, blah, blah, blah,... ref,ref,ref Add text-align=justify. I'd like to get: blahref,ref blahref,ref,ref blah, blah, blah, blah, blah,... .ref,ref,ref Getting a second leader on the second line is definitely tricky. You could try to add a second leader: fo:blockblah, blah, blah, blah, blah,fo:leader leader-pattern=dots/fo:leader leader-pattern=dots leader-length.optimum=50% leader-length.minimum=0/ref,ref,ref/fo:block This will (hopefully) break if the line is half full with blah text. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl-region-before flow control
[EMAIL PROTECTED] wrote: I have been using FOP for more then a year and a half. Till now i needed to put something on the first page but not on the others, and i solved this with a variable. But as you all might know it's not really clean programming. So without having to define a new page-sequence, is there a way to find out if it's the first page or not? I have no idea what you mean by solved this with a variable. Did you look at the FAQ? http://xml.apache.org/fop/faq.html#fo_first_page_header Oh, *big* thanks to Victor for stable, meaningful FAQ anchors!!! J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Letter-spacing / kerning between words in PDFRenderer
Joop Vriend wrote: To begin with: we use FOP 0.20.4, and this mail is about a partly fix for missing letter-spacing/kerning between words in PDF's. Well, thanks for the effort but this patch wont make it into FOP soon, mainly because the layout core doesn't take kerning into account at all, which needs to be fixed first. Also, if I understand you correctly, kerning should also be applied for the case (emDiff -33000), and text decoration position as well as the rx and word width should be compensated for the kerning. But..., that's only half of the solution! The first case (word-characterspace) is more difficult. Not really: keep the text of the last rendered word in lastWord or something and add the kerning correction to the current rx respective the space. The lastWord must be cleared if something special like an image is rendered in between. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing to FOP / Tomcat
The web.xml in the web app does not adhere to the DTD. Look at the servlet-mapping element in the web.xml. Is it and its children in the correct place according to the DTD? -Original Message- From: Adam Shelley [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: RE: Installing to FOP / Tomcat Hello, thanks for the reply Phillip I just reinstalled tomcat (to start from scratch) and placed the war file in the webapps dir. This seemed to get processed right away then I copied the supporting .jar files into the web-inf/lib directory. This is from the log file. 2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at context path /fop from URL file:C:/Program Files/Apache Group/Tomcat 4.1/webapps/fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes 2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator class java.security.SecureRandom 2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number generator has been completed 2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet default 2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet invoker 2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host 'localhost' This is from stderr.txt INFO: Jk running ID=0 time=0/120 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 23: The content of element type servlet-mapping must match (servlet-name,url-pattern). org.xml.sax.SAXParseException: The content of element type servlet-mapping must match (servlet-name,url-pattern). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30 5) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 51) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1012) at java.lang.Thread.run(Thread.java:536) I couldn't find any reference to this in my mail list archives, bugzilla, or the faq. I know that its something that this is probably something to do with an incomplete setup. I have read that tomcat comes with detailed instructions on howto install fop but i'm unable to locate this. Any help would be appreciated. oh yeah, right now i'm using fop-0.20.4 -Adam - To unsubscribe,
Re: tab characters alignment
On Wed, 2003-03-12 at 14:06, Claudio De Bernardi wrote: Hi, does anybody know how FOP works with tab characters? TAB characters are replaced with 8 white spaces. Effective width depends on the font used. I'm trying to generate a PDF file starting from a simple text which contains tab characters, and I want to keep them in the resulting PDF. I put the text into a block tag with the attribute white-space-collapse=false ( the text to be printed hasn't a standard format, so I can't use tables ) If you want to indent your text use start-indent attribute of fo:block. This is your only option if you can't use tables. It seems that FOP recognize tabs but it simply replaces them with a fixed number of white spaces without any kind of consideration about horizontal alignment You are right. Thanks in advance Claudio Hope this helps, Rodolfo -- Rodolfo M. Raya [EMAIL PROTECTED] Heartsome Holdings Pte. Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tab characters alignment
Claudio De Bernardi wrote: I agree with your opinion about tabs modernity, but it sound strange that a modern tool like FOP isn't backward compatible with a so simple features, consider that most editors support tabs in the rigth way and people still use them Backward compatibility or not, there is a XSLFO spec, which is in turn based on the XML spec, which defines tabs as whitespace. Whitespace treatment is detailed to some degree in http://www.w3.org/TR/xsl/slice7.html#white-space-treatment Basically, the spec requires to treat tabs exactly like spaces. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsl:fo to svg rendering with raster images
I tried to render my fo files to svg, which works fine for text. But none of the external images makes it to the svg file. Batik can produce image tags with links to external images. Is this a limitation in fop? (producing a pdf with the same fo file works fine). Regards Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl:fo to svg rendering with raster images
Alexander Koppelhuber wrote: I tried to render my fo files to svg, which works fine for text. But none of the external images makes it to the svg file. Batik can produce image tags with links to external images. Is this a limitation in fop? (producing a pdf with the same fo file works fine). Most likely your images weren't found. Check whether the source URLs would work with an fo:external-graphic. You might need to use absolute URLs. Other possiblities: - The image file formats are not supported. I'm not sure but perhaps installing Jimi (see FOP FAQ) helps with this issue. - You forgot to declare the xlink namespace. A code sample would have helped in diagnosing the problem. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]