Re: Image Size Issue
On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image Size Issue
hi all, Good Day!!! i have read lots about images in PDF and have successfully displayed an image already however i noticed on my system that it could not accommodate an image greater than 60kb to 70kb of size, what happens is i get an empty pdf file when the image size goes higher than mentioned. before creating the xml file i call: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= org.apache.fop.image.FopImageFactory.resetCache(); ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= as mentioned on one of the docs frees up memory to accommodate image transactions. now on the XML file here is what i use: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= figurephoto image=http://FQDN/images/drawings/B747/ThisIsATest-1234- 5678/.061_67-11-018-Sht5_RevA.jpg//figure ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= and on the XSL file: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= xsl:template match=figure fo:block xsl:apply-templates/ /fo:block /xsl:template xsl:template match=photo fo:block text-align=center fo:external-graphic src=[EMAIL PROTECTED]/ /fo:block /xsl:template ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= my system runs on a Pentium 3 800Mhz with 256Mb RAM having: ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= Operating System: Linux RedHat 7.2 Java: j2sdk1.4 Tomcat: jakarta-tomcat-4.1.27 FOP: fop-0.20.5 Cocoon: cocoon-2.1.2 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= ok where does this all boil down to? ... Image Quality... when i lower down the image file size to 60Kb all the small figures, numbers and tables get blurry to the point that even when the document gets printed those small numbers could not be read anymore not to mention the actual drawings/diagrams the original file size with good quality could go up to 17x11inches in dimension @ 100 ppi quality = 400Kb file size imagine bringing that down to 60Kbto 70Kb... i was hoping if anyone has a workaround for this case so as i could still maintain the sharpness in detail of the images attached in the PDF file... herewith i also attach the 60kb image for a better view of the quality disintegration thanks for the attention... all the best!!! pal, benjohn The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. File information --- File: 061_67-11-018-Sht1-RevA0001.gif Date: 24 Dec 2003, 11:40 Size: 60456 bytes. Type: GIF-image attachment: 061_67-11-018-Sht1-RevA0001.gif- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: url port 8080
thanks mike for the suggestion i am a bit worried though since apache httpd uses port 80 hence moving tomcat to port 80 might cause some problems... am still finding other means... all the best!!! pal, benjohn On 24 Mar 2004 at 10:41, Witt, Mike (OH35) wrote: Hi, look in your server.xml and set the port to 80 instead of 8080. Since the web browser looks for port 80 by default, it does not need to be specified on the URL line. If you running Windows, IIS is probably already using port 80 though. -Original Message- From: Benjohn P. Villedo [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 3:13 AM To: [EMAIL PROTECTED] Subject: url port 8080 hi all, Good Day!!! am not sure if this is the right place to post this i just hope to get all the help i could... here it is i am able to access fop with the url http://localhost:8080/fop?fo=/usr/local/fop/examples/fo/basic/fonts.fo or with cocoon implementation with the url http://localhost:8080/cocoon/xml-files/xml-file1.pdf is there a means by which i could access those web applications without port 8080?? i am actually able to do it with my other JSP web applications but the method i use for my other web applications when implemented on fop or cocoon wont work... here is what i did inside server.xml of tomcat i placed the context ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= !-- Define Cocoon Context -- Context path=/cocoon docBase=/var/www/cocoon debug=3 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cocoon_log. suffix=.txt timestamp=true/ /Context ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= mod_jk.conf file added the line ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= JkMount /cocoon/* worker1 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= but still doesn't work... any hint or tip would be very much appreciated... all the best!!! pal, benjohn - 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: url port 8080
i just thought its possible to access fop without the ports so as the user wont need to be bothered with those ports numbers during entry... will follow ur suggestions... thanks a lot :-) The Cocoon-user list may also be of help here. But I'm missing something--I don't see how any of this could possibly change your servlet port (parameters that use numeric attributes would appear to be more plausible, no? ;) Glen all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url port 8080
hi all, Good Day!!! am not sure if this is the right place to post this i just hope to get all the help i could... here it is i am able to access fop with the url http://localhost:8080/fop?fo=/usr/local/fop/examples/fo/basic/fonts.fo or with cocoon implementation with the url http://localhost:8080/cocoon/xml-files/xml-file1.pdf is there a means by which i could access those web applications without port 8080?? i am actually able to do it with my other JSP web applications but the method i use for my other web applications when implemented on fop or cocoon wont work... here is what i did inside server.xml of tomcat i placed the context ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= !-- Define Cocoon Context -- Context path=/cocoon docBase=/var/www/cocoon debug=3 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_cocoon_log. suffix=.txt timestamp=true/ /Context ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= mod_jk.conf file added the line ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= JkMount /cocoon/* worker1 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= but still doesn't work... any hint or tip would be very much appreciated... all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tables question
hi there all, Good Day!!! i came across this property tag fo:table absolute-position=absolute left=1in top=2in and tried to implement it however the tables still don't get horizontally aligned with each other on the .xsl file ~~ xsl:template match=table fo:table width=2in table-layout=fixed absolute-position=absolute left=1in top=2in xsl:apply-templates/ /fo:table /xsl:template xsl:template match=table2 fo:table width=2in table-layout=fixed absolute-position=absolute left=3.5in top=2in xsl:apply-templates/ /fo:table /xsl:template xsl:template match=table3 fo:table width=2in table-layout=fixed absolute-position=absolute left=6in top=2in xsl:apply-templates/ /fo:table /xsl:template ~~ now on the .xml file block_table tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest /p/entry /row /tbody /tgroup /table block_table2 tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest 2 /p/entry /row /tbody /tgroup /table block_table3 tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest 3/p/entry /row /tbody /tgroup /table however, instead the output becomes horizontally aligned, they turn out to become still vertically aligned... hmm i thought i had the solution already... hope to hear again from you all thanks... all the best!!! pal, benjohn On 13 Mar 2004 at 15:06, Andreas L. Delmelle wrote: -Original Message- From: Benjohn P. Villedo [mailto:[EMAIL PROTECTED] i was wondering if anyone could teach me the easiest way to output 3 to 4 tables that are horizontally aligned with each other... hmm am so lost in this XSL-FO thingy though i am able to print tables but they are in vertical alignment if possible it would be like __ __ __ __ |table 1| |table 2| |table 3| |table 4| Hi, Can you create a phantom table for this with 4 columns? Each of the columns contains one of the above specified tables... Hope this helps! Cheers, Andreas - 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: tables question
hi all, Good Day!!! thanks for giving me that bright idea i was able to achieve what i wanted... hmm... i shouldn't have looked at at block-container in the first place it made me all the more confused hehehe :-) here is what i did though using the existing xsl-fo table tag i omitted the p/p of the table cell in the xml file thus giving me this table tgroup cols=3 colspec colname=col1 colwidth=2in/ colspec colname=col2 colwidth=2in/ colspec colname=col3 colwidth=2in/ tbody row entry colnum=1 valign=top /entry entry colnum=2 valign=top /entry entry colnum=3 valign=top /entry /row /tbody /tgroup /table then inserted this table inside each column block_table tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest/p/entry /row /tbody /tgroup /block_table which now looked like this table tgroup cols=3 colspec colname=col1 colwidth=2in/ colspec colname=col2 colwidth=2in/ colspec colname=col3 colwidth=2in/ tbody row entry colnum=1 valign=top block_table tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest row 1/p/entry /row row entry colnum=1 valign=topptest row 2/p/entry /row row entry colnum=1 valign=topptest row 3/p/entry /row /tbody /tgroup /block_table /entry entry colnum=2 valign=top block_table tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest 2/p/entry /row /tbody /tgroup /block_table /entry entry colnum=3 valign=top block_table tgroup cols=1 colspec colname=col1 colwidth=2in/ tbody row entry colnum=1 valign=topptest 3/p/entry /row /tbody /tgroup /block_table /entry /row /tbody /tgroup /table this one worked :-) thanks once more for the patience in teaching me this technique... all the best!!! pal, benjohn On 15 Mar 2004 at 4:04, J.Pietschmann wrote: Benjohn P. Villedo wrote: i came across this property tag fo:table absolute-position=absolute left=1in top=2in and tried to implement it however the tables still don't get horizontally aligned with each other Absolut positioning isn't implemented for tables. Use another blind table and put your for tables in it. 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]
tables question
hi all, Good Day!!! i was wondering if anyone could teach me the easiest way to output 3 to 4 tables that are horizontally aligned with each other... hmm am so lost in this XSL-FO thingy though i am able to print tables but they are in vertical alignment if possible it would be like __ __ __ __ |table 1| |table 2| |table 3| |table 4| appreciate any help out there... all the best!!! pal, benjohn
Re: tables question
i forgot to mention the process of conversion its XML - XSL - FOP - PDF thanks in advance... - same hi all, Good Day!!! i was wondering if anyone could teach me the easiest way to output 3 to 4 tables that are horizontally aligned with each other... hmm am so lost in this XSL-FO thingy though i am able to print tables but they are in vertical alignment if possible it would be like __ __ __ __ |table 1| |table 2| |table 3| |table 4| appreciate any help out there... all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP commands to XSL
hi all, Good Day!!! i am really new to this thus the experimentation. i wanted to create tables that are side by side each other like on a page i have 5 tables aligned side by side with each other... am really not sure how this is done but as far as reading is concerned i came across block- containers property i was wondering if you could help me convert these lines FO to XSL lines fo:block-container border-color=black border-style=solid border- width=.5mm height=0.5cm width=8.95 cm top=3cm left=0cm padding=.6mm position=absolute fo:block text-align=start line-height=14pt font- family=sans-serif font-size=12pt SOLD TO /fo:block /fo:block-container i just found those lines in the example/fo/basic/border.fo file which clearly works on this url http://www.chpii.com:8080/fop?fo=/usr/local/fop/examples/fo/basic/b order.fo now since we are getting data from a dynamic source the approach was to create an XML file then use the XSL file to translate the XML file then further convert it to PDF file inside the XSL file i tried this but didn't work xsl:template match=block_table fo:block-container border-color=black border-style=solid border-width=.5mm height=0.5cm width=8.95cm top=3cm left=0cm padding=.6mm position=absolute fo:block text-align=start line-height=14pt font-family=sans-serif font-size=12pt xsl:apply-templates/ /fo:block /fo:block-container /xsl:template inside the XML file i tried block_table this is a test /block_table but the browser gave me the error Failed To Execute Pipeline org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: java.lang.ClassCastException: org.apache.fop.layout.BlockArea hope you could help me in this endeavor... all the best!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]