Block won't fit on page

2004-02-25 Thread Jiri_Nejedly
Hi, this is maybe a beginner question, but cannot find solution: I have a few identical blocks which fill several pages. Situation on 1st page - three full block fit there, but the fourth is split and continues on next page and so on... Can I tell every block if you don't fit on current page,

Footnote problem

2003-04-11 Thread Jiri_Nejedly
I have problem with footnotes. When the fo:flow text fills the whole page, I am able only to show what is in footnote's fo:inline, but the footnote text itself is not shown at all, not even on another page. I slightly modified example from FOP (0.20.5), so it shows exactly that case. Is there

analogy to table frame=void

2003-02-28 Thread Jiri_Nejedly
I have simple table with 2 cells, 1 row . I want a simple vertical line between them , no other borders. Does exist some analogy to HTML's table frame=void ? Or any other way ? Thanks. - To unsubscribe, e-mail: [EMAIL

Re: No pictures in PDF

2003-02-17 Thread Jiri_Nejedly
messages). What version of Acrobat do you use? and on which OS? On 14.02.2003 14:16:34 Jiri_Nejedly wrote: I just upgraded to FOP 0.20.5 . Everything seems to be fine, but one thing - in generated PDF, there are no pictures present ( no matter what type (bmp, gif, jpg), with or without extension

Re: No pictures in PDF

2003-02-17 Thread Jiri_Nejedly
I'm not really sure that the jpg file format is what is wrong. Several arguments : - Both in current (0.20.5) and recent version (0.20.3), I have one special picture with question mark, which I use in case, when there's picture missing in database. In FOP 0.20.3 was all ok, and this picture

Re: No pictures in PDF - solved

2003-02-17 Thread Jiri_Nejedly
I must apologize - problem is not in FOP. Because I had problem openning result PDF file (some sharing violation) I do a copy of it and then send the copy to browser: File inputFile = new File(outFilePath); File outputFile = new File(outPDFPath); FileReader fr = new FileReader(inputFile);

No pictures in PDF

2003-02-14 Thread Jiri_Nejedly
I just upgraded to FOP 0.20.5 . Everything seems to be fine, but one thing - in generated PDF, there are no pictures present ( no matter what type (bmp, gif, jpg), with or without extension). No error is logged, no exception thrown. It works that way only when FOP is embedded, running from batch

Re: Could not load external SVG

2003-02-12 Thread Jiri_Nejedly
I upgraded FOP to 0.20.5 and now the error is different:: [ERROR]: Error while creating area : No ImageReader for this type of image (file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29396pas) Mentioned file is jpg without extension. However, I also tried to rename the file before FOP

Re: Could not load external SVG

2003-02-12 Thread Jiri_Nejedly
Please ignore this thread, I found reason why this happens - two files have zero length. I upgraded FOP to 0.20.5 and now the error is different:: [ERROR]: Error while creating area : No ImageReader for this type of image (file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29396pas)

Picture files without extension

2003-02-10 Thread Jiri_Nejedly
Some function (which I cannot modify) in my appliaction generates picture files in jpg format, but the files don't have .jpg extension. Am I able somehow to render them in fop ? I tried this: fo:external-graphic width=2cm height=2.5cm content-type=image/jpeg xsl:attribute name=srcxsl:value-of

Could not load external SVG

2003-02-10 Thread Jiri_Nejedly
Recently I used FOP embedded in my aplication to make PDFs with pictures. I did it this way: fo:external-graphic width=2cm height=2.5cm xsl:attribute name=srcxsl:value-of select=Photo//xsl:attribute /fo:external-graphic ... and it worked OK. Now I upgraded my Oracle's JDeveloper from version

Error logged, but PDF with pictures is OK

2003-01-22 Thread Jiri_Nejedly
I create PDF with pictures in it. Here's a fragment from fo file: fo:table-rowfo:table-cellfo:block fo:external-graphic src =file:/C:/JavaProject/Klient/public_html/DT/Fop/pechanec/pict0.jpg/ /fo:block/fo:table-cell/fo:table-row The PDF is created and is OK, tha path is also OK, files are there,

How to dynamically set src attribute

2003-01-21 Thread Jiri_Nejedly
I want to place picture to the pdf file, but the file name is not given in advance , it is stored in XML . For example XML: imagefilepicture.bmp/imagefile XSL fo:block fo:external-graphic src=image.bmp ... / /fo:block Can I dynamically change the src attribute to the value , which is in

FOP and Oracle's interMedia

2003-01-20 Thread Jiri_Nejedly
I have Oracle database with interMedia, which is database support for pictures, sounds, etc ... In BC4J technology, I use simple function WriteXML ( ...) , which can output the data from the database table to XML in format like this: Table TableRow Atr1Data1/Atr1 Atr2Data2/Atr2

Text on last page

2003-01-16 Thread Jiri_Nejedly
I have a simple report - a few pages of text. I would like to put a special line (who and when printed this document) on the last page only. The line should be at the bottom of the last page, no matter where the previous text ends. Is there some simple solution ? Thanks.

Different borders in PDF

2002-12-17 Thread Jiri_Nejedly
I have on my XSLs simple a header (stored in one *.ent file) which consists of simple table (report name, date) fo:block space-before.optimum=0cm font-family=Arial hyphenate=true language=cs fo:table width=100% border-top-width=0.5pt border-top-style =solid border-bottom-width=0.5pt

Re: Upgrading to 0.20.4 problems

2002-11-22 Thread Jiri_Nejedly
I found your comment in Bugzilla Bug 14319

Upgrading to 0.20.4 problems

2002-11-21 Thread Jiri_Nejedly
I am trying to upgrade version 0.20.3. to 0.20.4 , but have problems. If I try run FOP.BAT , everything is OK, the problem is in servlet. The error java.lang.NullPointerException int org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int org.apache.fop.layout.FontState.getAscender() void

Cannot log the same as fop.bat with -d option

2002-11-20 Thread Jiri_Nejedly
What I must do, to make logger log everything, as FOP.BAT (with -d option) does ? In servlet I log FOP (0.20.4) actions into file: FileOutputStream log_fos = new FileOutputStream(log_file); PrintStream log_ps = new PrintStream(log_fos); if (log == null) { Hierarchy hierarchy =

Re: Cannot log the same as fop.bat with -d option

2002-11-20 Thread Jiri_Nejedly
I tried that, it logs well. But I would like to have the log written to file. This doesn't work: FileOutputStream fos = new FileOutputStream(filename); PrintStream ps = new PrintStream(fos); PrintStream out_orig = System.out; System.setOut(ps); here I run FOP ... fos.close();

Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-19 Thread Jiri_Nejedly
I serched a little, and I found one difference between calling the fop.bat and processing servlet . The fop.bat use org.apache.xerces.parsers.SAXParser while servlet code uses oracle.xml.parser.v2.SAXParser The library xmlparserv2.jar is necessary, without it whole JDeveloper won't run. All

Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly
I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's JDeveloper 9i To my project I added all libraries, which I found in fop.bat : fop.jar batik.jar xalan-2.3.1.jar xercesImpl-2.0.1.jar xml-apis.jar avalon-framework-cvs-20020315.jar logkit-1.0.jar When I process my FO file

Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly
, you should get a better error message. Maybe you didn't set the second logger in the MessageHandler class correctly because that's where the original error message should have been logged. The logging in the maint branch is still somewhat strange. On 18.11.2002 12:01:52 Jiri_Nejedly wrote: I am

Re: How to show PDF file in jsp page II.

2002-11-06 Thread Jiri_Nejedly
I tried it , it works, but I have one great suspicion: Will it work even on remote server ? response.sendRedirect(outPDF); // outPDF is C:/Program Files/Apache Tomcat 4.0/Fop/TMP.PDF I have Tomcat and browser on one PC . Doesn't the browser thus open the PDF file directly, bypassing

How to show PDF file in jsp page II.

2002-11-05 Thread Jiri_Nejedly
Yesterday, after a few good advices there from fop users I successfuly used this code to show pdf content in browser. It works in my JDeveloper 9i. File inputFile = new File(pdfFile); FileReader fr = new FileReader(inputFile); ByteArrayOutputStream baos = new ByteArrayOutputStream(); int ch;

How to show PDF file in jsp page ?

2002-11-04 Thread Jiri_Nejedly
I successfully created PDF , but now I don't know how to make browser show it like PDF (Acrobat is installed, when I open file directly in browser, all is ok). If I use this code: File inputFile = new File(pdfFile); FileReader fr = new FileReader(inputFile); int c; while( (c = in.read()) != -1)

Re: How to show PDF file in jsp page ?

2002-11-04 Thread Jiri_Nejedly
Thanks to all, this code works ... File inputFile = new File(pdfFile); FileReader fr = new FileReader(inputFile); ByteArrayOutputStream baos = new ByteArrayOutputStream(); int ch; while((ch = fr.read()) != -1) {