Re: Big problem with printing from adobe Reader 4
Both when sent directly to a printer with PDF-RIP and printing from Acrobat Reader?I only get my pictures to print when I print from Acrobat Reader.To get them through the big printers with RIP I need to convert to .ps then distiller back to PDF.regardsClaes
Unable to generate PDF file from EJB using FOP
I have written a simple class which takes XML and XSL and translate it into PDF using FOP (this works fine when run it as a standalone application) but when I embed this program/logic in a stateless EJB it doesn't render the content to the output stream. I have checked out the class path also, I am using the same setEnv.bat file to set the environment for running both standalone program as well as weblogic application server. Please help me Thanks Amit -Original Message- From: RamanaJV [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Page details support? I understand that messing around with FOP is not a good idea. But what to do, I doesn't get any solution till. I'll put the problem in greater detail again. I will be having FO templates, that specify the style of the report. Let's say the template is like: ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format !-- defines the layout master -- fo:layout-master-set fo:simple-page-master master-name=first page-height=11in page-width=8.5in margin-top=25pt margin-bottom=25pt margin-left=20pt margin-right=10pt fo:region-body margin-top=50pt fo:region-before extent=50pt fo:region-after extent=25pt /fo:simple-page-master /fo:layout-master-set !-- starts actual layout -- fo:page-sequence master-reference=first fo:static-content flow-name=xsl-region-before !-- Static content goes here -- /fo:static-content fo:flow flow-name=xsl-region-body fo:block white-space-collapse=false space-after=12pt fo:inline font-weight=bold##/fo:inline + /fo:block /fo:flow /fo:page-sequence /fo:root There will be templates like above where the hashpart(###) is the hole area where the programs fill the data. The data will be got from the database and the client program supplies the server with the data and the sever program takes the data and for every write call the client program says, the server creates a new fo:block element and places the data supplied in the hash portion. The client proceeds in this fashion. The client program may supply large amount of records, can be around 15,000 records also. So, it is not advisable to make the user wait till all the data is supplied and the entire FO constructed. There is an assumption made now, say we can show 40 records per page. The client supplies 40 records to the sever, which renders the page using FOP API. But, the problem comes if the data supplied will not fit in the single line. If the data spans more than 1 line, then the assumption becomes incorrect and the remnant portion of the data ( a small chunk, could be one or two lines) comes in the second page. This is not good. There actually will be number of templates and client filling out the templates. So, I'm trying to find a solution where in which at any point of time client should be able to know that Still how many lines of display remain?. With that the client can hold until the server gives it a ready signal again. I hope I'm clear now... I'm not finding how to solve the above problem... I think this type of viewing is common in business applications... For now, it is assumed that the page size is 8.5in * 11in and portrait mode. Is it possible? I'll be waiting to hear for a solution... -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 8:54 PM To: [EMAIL PROTECTED] Subject: Re: Page details support? The font classes could help you here, too. But I wonder if that helps you a lot. Questions like that often indicate that someone is trying to work around a problem that is actually supposed to be worked out in a different way. If you experience a deficiency with FOP, first try to find out, if it's XSL:FO that doesn't provide what you need or if it's FOP. If it's FOP, tell us what you want to accomplish. We may (!) be able to help you find another solution that doesn't involve messing around with FOP. And
Re: Character Encoding
- Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 9:58 PM Subject: Re: Character Encoding Holger Prause wrote: I use the character squence #8722; in a html page it will be dispalyed as an - minus sign. So far so good.Now i want to use that chracter sequence in FO but in the ^ ^ ^ ^ ^ ^ ^ It is a character reference Yes your are right. generated pdf it will displayed as an # sign(which stands for undefined ?) This means the selected font does not have a glyph for it. Ok i undestand that, its also written in the FOP Faq. What can i do to display this character squence, changeing the encoding in the stylesheet(or using xsl:output /)? The only way is to get a font with a glyph for it and let FOP use it. The mathematical minus is pretty esoteric, you'll probably need a special math font, rummage through implementations for MathML or TeX distributions. Why can't you usse a dash or hyphen? What i wanted was a dash, but for some reasons i choosed the character reference #8722; which is , like u already said, a mathematical minus. Now i use a the character reference for dash , and i works fine with my font. Thx for the quick response, Bye, Holger J.Pietschmann - 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/test/resources/fop/svg paints.svg
keiron 2002/07/10 01:22:25 Modified:src/org/apache/fop/svg PDFGraphics2D.java test/resources/fop/svg paints.svg Log: improved patterns, the contents should be visible now Revision ChangesPath 1.37 +16 -12xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java Index: PDFGraphics2D.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- PDFGraphics2D.java9 Jul 2002 14:59:03 - 1.36 +++ PDFGraphics2D.java10 Jul 2002 08:22:24 - 1.37 @@ -768,7 +768,7 @@ // this makes the pattern the right way up, since // it is outside the original transform around the // whole svg document -pattStream.write(1 0 0 -1 0 + rect.getHeight() + cm\n); +pattStream.write(1 0 0 -1 0 + (rect.getHeight() + rect.getY()) + cm\n); pattStream.write(pattGraphic.getString()); pattStream.write(Q); @@ -776,16 +776,20 @@ ArrayList bbox = new ArrayList(); bbox.add(new Double(0)); bbox.add(new Double(0)); -bbox.add(new Double(rect.getWidth())); -bbox.add(new Double(rect.getHeight())); +bbox.add(new Double(rect.getWidth() + rect.getX())); +bbox.add(new Double(rect.getHeight() + rect.getY())); + ArrayList translate = new ArrayList(); -// TODO combine with pattern transform -translate.add(new Double(1)); -translate.add(new Double(0)); -translate.add(new Double(0)); -translate.add(new Double(1)); -translate.add(new Double(0/*rect.getX()*/)); -translate.add(new Double(0/*rect.getY()*/)); +AffineTransform pattt = pp.getPatternTransform(); +pattt.translate(rect.getWidth() + rect.getX(), rect.getHeight() + rect.getY()); +double[] flatmatrix = new double[6]; +pattt.getMatrix(flatmatrix); +translate.add(new Double(flatmatrix[0])); +translate.add(new Double(flatmatrix[1])); +translate.add(new Double(flatmatrix[2])); +translate.add(new Double(flatmatrix[3])); +translate.add(new Double(flatmatrix[4])); +translate.add(new Double(flatmatrix[5])); FontSetup.addToResources(pdfDoc, res, fi); 1.3 +3 -2 xml-fop/test/resources/fop/svg/paints.svg Index: paints.svg === RCS file: /home/cvs/xml-fop/test/resources/fop/svg/paints.svg,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- paints.svg28 Jun 2002 06:21:29 - 1.2 +++ paints.svg10 Jul 2002 08:22:24 - 1.3 @@ -16,14 +16,16 @@ /linearGradient linearGradient id=grad2 x1=0 y1=0 x2=0 y2=1 stop offset=0 style=stop-color:crimson / +stop offset=0.4 style=stop-color:purple / stop offset=1 style=stop-color:gold / /linearGradient linearGradient id=grad3 x1=0 y1=0 x2=1 y2=1 stop offset=0 style=stop-color:crimson / +stop offset=0.7 style=stop-color:blue / stop offset=1 style=stop-color:gold / /linearGradient radialGradient id=rad -fx=20% fy=0% rx=10% ry=30% r=40% +fx=20% fy=30% rx=10% ry=30% r=40% stop offset=0 stop-color=gold / stop offset=1 stop-color=green stop-opacity=0.4/ /radialGradient @@ -32,7 +34,6 @@ rect x=15 y=117.5 width=100 height=75 style=fill:url(#grad2) / rect x=15 y=195 width=100 height=75 style=fill:url(#grad3) / rect x=15 y=275 width=100 height=75 style=fill:url(#rad) / - text x=120 y=35 style=font-size:12Pattern/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/conf fop.xconf
keiron 2002/07/10 01:59:16 Added: conf fop.xconf Log: start of example configuration file contains default values so that if used will have no effect by default no configuration is needed, only if values need to be changed Revision ChangesPath 1.1 xml-fop/conf/fop.xconf Index: fop.xconf === ?xml version=1.0? !-- NOTE: This is the version of the configuration -- fop version=1.0 userAgent base url=.// !-- pixel to millimeter to specify dpi, 72dpi -- pixelToMillimeter value=0.3528/ /userAgent !-- Information for specific renderers -- !-- Uses renderer mime type for renderers -- renderers renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on)-- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList fonts !-- embedded fonts -- !-- this information must exactly match the font specified in the fo file otherwise it will use a default font. ie. fo:inline font-family=Arial font-weight=bold font-style=normal Arial-normal-normal font /fo:inline for the font triplet specified by: font-triplet name=Arial style=normal weight=bold/ -- !-- font metrics-url=arial.xml kerning=yes embed-url=arial.ttf font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ /font font metrics-url=arialb.xml kerning=yes embed-url=arialb.ttf font-triplet name=Arial style=normal weight=bold/ font-triplet name=ArialMT style=normal weight=bold/ /font -- /fonts xmlHandler mime=text/svg+xml /xmlHandler /renderer renderer mime=application/ps xmlHandler mime=image/svg+xml /xmlHandler /renderer renderer mime=pcl /renderer renderer mime=mif /renderer renderer mime=text/svg+xml format type=paginated/ link value=true/ strokeText value=false/ /renderer renderer mime=awt /renderer renderer mime=text/xml /renderer renderer mime=application/rtf /renderer renderer mime=text/text pageSize columns=80/ /renderer /renderers fop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to generate PDF file from EJB using FOP
Is it throwing any exceptions or simply the rendering not done? Ramana.JV. -Original Message- From: Amit Rangari [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 12:39 PM To: [EMAIL PROTECTED] Subject: Unable to generate PDF file from EJB using FOP I have written a simple class which takes XML and XSL and translate it into PDF using FOP (this works fine when run it as a standalone application) but when I embed this program/logic in a stateless EJB it doesn't render the content to the output stream. I have checked out the class path also, I am using the same setEnv.bat file to set the environment for running both standalone program as well as weblogic application server. Please help me Thanks Amit -Original Message- From: RamanaJV [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Page details support? I understand that messing around with FOP is not a good idea. But what to do, I doesn't get any solution till. I'll put the problem in greater detail again. I will be having FO templates, that specify the style of the report. Let's say the template is like: ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format !-- defines the layout master -- fo:layout-master-set fo:simple-page-master master-name=first page-height=11in page-width=8.5in margin-top=25pt margin-bottom=25pt margin-left=20pt margin-right=10pt fo:region-body margin-top=50pt fo:region-before extent=50pt fo:region-after extent=25pt /fo:simple-page-master /fo:layout-master-set !-- starts actual layout -- fo:page-sequence master-reference=first fo:static-content flow-name=xsl-region-before !-- Static content goes here -- /fo:static-content fo:flow flow-name=xsl-region-body fo:block white-space-collapse=false space-after=12pt fo:inline font-weight=bold##/fo:inline + /fo:block /fo:flow /fo:page-sequence /fo:root There will be templates like above where the hashpart(###) is the hole area where the programs fill the data. The data will be got from the database and the client program supplies the server with the data and the sever program takes the data and for every write call the client program says, the server creates a new fo:block element and places the data supplied in the hash portion. The client proceeds in this fashion. The client program may supply large amount of records, can be around 15,000 records also. So, it is not advisable to make the user wait till all the data is supplied and the entire FO constructed. There is an assumption made now, say we can show 40 records per page. The client supplies 40 records to the sever, which renders the page using FOP API. But, the problem comes if the data supplied will not fit in the single line. If the data spans more than 1 line, then the assumption becomes incorrect and the remnant portion of the data ( a small chunk, could be one or two lines) comes in the second page. This is not good. There actually will be number of templates and client filling out the templates. So, I'm trying to find a solution where in which at any point of time client should be able to know that Still how many lines of display remain?. With that the client can hold until the server gives it a ready signal again. I hope I'm clear now... I'm not finding how to solve the above problem... I think this type of viewing is common in business applications... For now, it is assumed that the page size is 8.5in * 11in and portrait mode. Is it possible? I'll be waiting to hear for a solution... -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 8:54 PM To: [EMAIL PROTECTED] Subject: Re: Page details support? The font classes could help you here, too. But I wonder if that helps you a lot. Questions like that often indicate that someone is trying to work around a problem that is actually supposed to be worked out in a different way. If you
RE: Unable to generate PDF file from EJB using FOP
Simply the rendering not done -Original Message- From: RamanaJV [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:55 PM To: [EMAIL PROTECTED] Subject: RE: Unable to generate PDF file from EJB using FOP Is it throwing any exceptions or simply the rendering not done? Ramana.JV. -Original Message- From: Amit Rangari [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 12:39 PM To: [EMAIL PROTECTED] Subject: Unable to generate PDF file from EJB using FOP I have written a simple class which takes XML and XSL and translate it into PDF using FOP (this works fine when run it as a standalone application) but when I embed this program/logic in a stateless EJB it doesn't render the content to the output stream. I have checked out the class path also, I am using the same setEnv.bat file to set the environment for running both standalone program as well as weblogic application server. Please help me Thanks Amit -Original Message- From: RamanaJV [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Page details support? I understand that messing around with FOP is not a good idea. But what to do, I doesn't get any solution till. I'll put the problem in greater detail again. I will be having FO templates, that specify the style of the report. Let's say the template is like: ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format !-- defines the layout master -- fo:layout-master-set fo:simple-page-master master-name=first page-height=11in page-width=8.5in margin-top=25pt margin-bottom=25pt margin-left=20pt margin-right=10pt fo:region-body margin-top=50pt fo:region-before extent=50pt fo:region-after extent=25pt /fo:simple-page-master /fo:layout-master-set !-- starts actual layout -- fo:page-sequence master-reference=first fo:static-content flow-name=xsl-region-before !-- Static content goes here -- /fo:static-content fo:flow flow-name=xsl-region-body fo:block white-space-collapse=false space-after=12pt fo:inline font-weight=bold##/fo:inline + /fo:block /fo:flow /fo:page-sequence /fo:root There will be templates like above where the hashpart(###) is the hole area where the programs fill the data. The data will be got from the database and the client program supplies the server with the data and the sever program takes the data and for every write call the client program says, the server creates a new fo:block element and places the data supplied in the hash portion. The client proceeds in this fashion. The client program may supply large amount of records, can be around 15,000 records also. So, it is not advisable to make the user wait till all the data is supplied and the entire FO constructed. There is an assumption made now, say we can show 40 records per page. The client supplies 40 records to the sever, which renders the page using FOP API. But, the problem comes if the data supplied will not fit in the single line. If the data spans more than 1 line, then the assumption becomes incorrect and the remnant portion of the data ( a small chunk, could be one or two lines) comes in the second page. This is not good. There actually will be number of templates and client filling out the templates. So, I'm trying to find a solution where in which at any point of time client should be able to know that Still how many lines of display remain?. With that the client can hold until the server gives it a ready signal again. I hope I'm clear now... I'm not finding how to solve the above problem... I think this type of viewing is common in business applications... For now, it is assumed that the page size is 8.5in * 11in and portrait mode. Is it possible? I'll be waiting to hear for a solution... -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 8:54 PM To: [EMAIL PROTECTED] Subject: Re: Page details support? The font
Stupid Question
Where do i can get the api docs for fop ? I already read the FAQ. As far as i can see it is not include in the distribution. Thx, Holger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stupid Question
Refer to the JavaDocs folder in your FOP home directory. Ramana.JV. -Original Message- From: Holger Prause [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: Stupid Question Where do i can get the api docs for fop ? I already read the FAQ. As far as i can see it is not include in the distribution. Thx, Holger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Stupid Question
- Original Message - From: RamanaJV [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 12:29 PM Subject: RE: Stupid Question Refer to the JavaDocs folder in your FOP home directory. Ramana.JV. I got it, its diretly in theFOP home directory like u told me, but its only there if u download the src version and if u build the project Thank You, Holger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Big problem with printing from adobe Reader 4
On Tue, 2002-07-09 at 17:52, [EMAIL PROTECTED] wrote: I think i might have found it... good. [snip] one more question, what font is used by the adobe when you don't specify nor embed another font In pdf it must specify a font otherwise it is an error. I presume you mean in FOP. If there is no font specified in the fo then it will default to sans-serif which is aka Helvetica. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
baseDir entry in userconfig.xml
Hello! btw, baseDir entry in userconfig.xml is still marked as NOT IMPLEMENTED, but I believe it does implemented and works already. -- Oleg Tkachenko Multiconn International, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Unable to generate PDF file from EJB using FOP
Amit Rangari wrote: Simply the rendering not done It is hard to guess your problem from such a sparse description. Some possibilities: - Are you using IEx as a client? Do you use a URL ending in .pdf to access the PDF? - Have you used a command line client like wget to retrieve the PDF? Do you get an error? Do you get an empty or corrupted PDF? - is there anything interesting in the logs of the EJB container? - Have you tried the servlet example distributed with FOP? Do you have prolems there alos? J.Pietschmann -Original Message- You are supposed to trim unnecessary old quotes, in particular if there are completely unrelated old messages therein. Look at the archives: http://marc.theaimsgroup.com/?l=fop-devm=102629436519701w=2 Assume someone searches the archive for white-space-collapse and gets a hit on your post. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: [ERROR] Don't know what to do with
e are having a problem using FOP on a suse shell system. first of all we wrote a batchfile containinng the following: java -cp ./build/fop.jar:./lib/batik.jar:./lib/xalan-2.0.0.jar:./lib/xerces-1.2.3.jar:./lib/avalon-framework-4.0.jar:./lib/logkit-1.0.jar:./lib /jimi-1.0.jar org.apache.fop.apps.Fop $1 $2 $3 $4 $5 $6 $7 $8 1. Improvement, not a problem here: use $* instead of $1 $2 $3 etc. 2. Check that you don't have a linebreak after java -cp. If you're working with Suse Linux, chances are you're editing the shellscript with the pico editor. This one has the annoying behaviour of breaking long lines as soon as you edit them... Arnd Beissner -- Cappelino Informationstechnologie GmbH Arnd Beißner Bahnhofstr. 3, 71063 Sindelfingen, Germany Email: [EMAIL PROTECTED] Phone: +49-7031-463458 Fax: +49-7031-463460 Mobile: +49-173-3016917 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]