Hi SriKrishnan, Ok, well the XSL spec can be found here: http://www.w3.org/TR/2001/REC-xsl-20011015/
It may help you figure out some of those error messages, as for your TIF issue, does the PDF I attached to my last email display the document as expected? Thanks Mehdi On 1 November 2010 12:53, SriKrishnan <[email protected]> wrote: > Hi Mehdi, > > Thanks for testing my sample. > > 1. I am just learning to write xsl-fo. This is my first sample. There are > lot need to fix in my stylesheet. > 2. I am running fop in my windows environment using MSDOS, my commandline is > as follows: > Fop lhp0008.fo lhp0008.pdf > 3. So far, I am using fop-0.95 (just now I downloaded version 1.0, I need to > check in that) > > Thanks a lot, > Srikrishnan > > > -----Original Message----- > From: mehdi houshmand [mailto:[email protected]] > Sent: Monday, November 01, 2010 6:18 PM > To: [email protected] > Subject: Re: How to load tiff images successfully in PDF > > Hi SriKrishnan, > > First of all, there are a lot of "WARNING" issues with the FO file, > you might want to check the XSL spec to find the necessary parameters > for FO elements, I'm using the trunk FOP.jar, and I've copy-pasted the > errors below. And I've attached the PDF, that it produces. The images > are being shown in TIF format, so I'm not sure where your issue comes > from. What version of FOP are you using? Are you invoking fop via the > command line? > > Also does the PDF look like it is supposed to? > > Thanks > > Mehdi > > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 40:277) > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 605:277) > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 1010:277) > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 1288:277) > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > SEVERE: Invalid property value encountered in font-style="bold": > org.apache.fop.fo.expr.PropertyException: > file:***/008/lhp008.fo:25:137: No conversion defined bold; > property:'font-style' (See position 2993:1842) > org.apache.fop.fo.expr.PropertyException: > file:***/008/lhp008.fo:25:137: No conversion defined bold; > property:'font-style' > at > org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:444) > at > org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java: > 412) > at > org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:319) > at org.apache.fop.fo.FObj.processNode(FObj.java:119) > at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav > a:282) > at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) > at > org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transforme > rIdentityImpl.java:1072) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown > Source) > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc > her.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at > org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId > entityImpl.java:484) > at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) > at org.apache.fop.cli.Main.startFOP(Main.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:136) > at org.apache.fop.cli.Main.main(Main.java:210) > 01-Nov-2010 12:32:39 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 2995:277) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > SEVERE: Invalid property value encountered in font-style="bold": > org.apache.fop.fo.expr.PropertyException: > file:***/008/lhp008.fo:25:137: No conversion defined bold; > property:'font-style' (See position 3915:938) > org.apache.fop.fo.expr.PropertyException: > file:***/008/lhp008.fo:25:137: No conversion defined bold; > property:'font-style' > at > org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:444) > at > org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java: > 412) > at > org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:319) > at org.apache.fop.fo.FObj.processNode(FObj.java:119) > at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav > a:282) > at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) > at > org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transforme > rIdentityImpl.java:1072) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown > Source) > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc > her.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at > org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId > entityImpl.java:484) > at > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) > at org.apache.fop.cli.Main.startFOP(Main.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:136) > at org.apache.fop.cli.Main.main(Main.java:210) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: In collapsing border model a table does not have padding (see > http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders), but a > non-zero value for padding was found. The padding will be ignored. > (See position 3921:277) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman,normal,400" not found. Substituting > with "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman Italic,normal,400" not found. > Substituting with "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Helvetica Bold,normal,400" not found. Substituting with > "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman Bold,normal,400" not found. > Substituting with "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman Bold Italic,normal,400" not found. > Substituting with "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "?" (0x3b7, eta) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "a" (0x3b1, alpha) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "ß" (0x3b2, beta) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "e" (0x3b5, epsilon) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "MetaBook-Caps,normal,400" not found. Substituting with > "any,normal,400". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "?" (0x3b3, gamma) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman,normal,700" not found. Substituting > with "any,normal,700". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 1 of a paragraph overflows the available area by 1992 > millipoints. (See position 836:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 3440 > millipoints. (See position 3152:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 1 of a paragraph overflows the available area by 2552 > millipoints. (See position 3387:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 1 of a paragraph overflows the available area by 3000 > millipoints. (See position 3434:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 1 of a paragraph overflows the available area by 22096 > millipoints. (See position 3672:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Font "Times New Roman Italic,normal,700" not found. > Substituting with "any,normal,700". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "=" (0x2264, lessequal) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 3572 > millipoints. (See position 4167:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 4084 > millipoints. (See position 4205:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 3572 > millipoints. (See position 4243:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 4084 > millipoints. (See position 4282:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 3572 > millipoints. (See position 4321:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Line 2 of a paragraph overflows the available area by 4084 > millipoints. (See position 4359:96) > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "?" (0x3b8, theta) not available in font "Times-Roman". > 01-Nov-2010 12:32:40 org.apache.fop.events.LoggingEventListener processEvent > WARNING: Glyph "?" (0x394, Deltagreek) not available in font "Times-Roman". > > > On 1 November 2010 12:07, SriKrishnan <[email protected]> wrote: >> Hi Mehdi, >> >> Here I have attached the complete set. Zip file size is 2mb. Forgive me if >> such a big file size creates problem at the time of downloading at your > end. >> >> Thanks, >> Srikrishnan >> >> -----Original Message----- >> From: mehdi houshmand [mailto:[email protected]] >> Sent: Monday, November 01, 2010 5:38 PM >> To: [email protected] >> Subject: Re: How to load tiff images successfully in PDF >> >> Just attach them to an email, then everyone will be able to see them. >> Do make sure you remove any personal material from them, just in case. >> >> Thanks >> >> Mehdi >> >> On 1 November 2010 11:53, SriKrishnan <[email protected]> wrote: >>> Hi Mehdi, >>> >>> Thanks for your support. >>> >>> Can you guide me, how can I upload my fo, xsl, xml and images to you? Is >>> there any option in "fop-users" or I can email straightaway to you? >>> >>> Thanks for your patience with me >>> >>> Thanks, >>> Srikrishnan >>> >>> -----Original Message----- >>> From: mehdi houshmand [mailto:[email protected]] >>> Sent: Monday, November 01, 2010 5:21 PM >>> To: [email protected] >>> Subject: Re: How to load tiff images successfully in PDF >>> >>> Hi SriKrishan >>> >>> Could your upload all your source data i.e. the FO file (if you're >>> using one, if not the XSLT and XML) and the image in TIF format. >>> Obviously, remove any data from the FO/XML that maybe personal, but it >>> looks as if you may have overflown the page with the TIF file. >>> >>> If you'd rather not do that, if you look in the wiki >>> (http://wiki.apache.org/xmlgraphics-fop/ImageSupport) you'll see that >>> TIF format images aren't scaled down (1:1 embedding), so it's quite >>> possible that you've attempted to embed an image that's larger than >>> the page or something of the sort. >>> >>> I hope that helps >>> >>> Mehdi >>> >>> On 31 October 2010 07:11, SriKrishnan <[email protected]> wrote: >>>> Hi, >>>> >>>> >>>> >>>> Thanks for your support. >>>> >>>> >>>> >>>> When I convert my fo using fop, the following warnings only appears: >>>> >>>> >>>> >>>> Oct 31, 2010 12:35:11 PM org.apache.fop.fonts.FontInfo >>> notifyFontReplacement >>>> >>>> WARNING: Font 'Symbol,normal,700' not found. Substituting with >>>> 'Symbol,normal,400'. >>>> >>>> Oct 31, 2010 12:35:11 PM org.apache.fop.hyphenation.Hyphenator >>>> getHyphenationTree >>>> >>>> SEVERE: Couldn't find hyphenation pattern en >>>> >>>> Oct 31, 2010 12:35:11 PM >>>> org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm >>>> updateData2 >>>> >>>> WARNING: Line 1 of a paragraph overflows the available area by 38160mpt. >>>> (fo:block, location: 1845/59) >>>> >>>> >>>> >>>> But the pdf size seems that it loads all tif images into it >>>> >>>> >>>> >>>> My gif loaded pdf size is 18,741KB >>>> >>>> My tif loaded pdf size is 22,242 KB >>>> >>>> >>>> >>>> FYI: I have converted the same tif files as gif files, those gif works >>>> correctly with my fop >>>> >>>> >>>> >>>> Thanks, >>>> >>>> Srikrishnan >>>> >>>> >>>> >>>> ________________________________ >>>> >>>> From: SriKrishnan [mailto:[email protected]] >>>> Sent: Saturday, October 30, 2010 10:54 AM >>>> >>>> To: '[email protected]' >>>> Subject: RE: How to load tiff images successfully in PDF >>>> >>>> >>>> >>>> Hi, >>>> >>>> >>>> >>>> Sorry I forgot to mention one more thing: >>>> >>>> >>>> >>>> My tiff images are not corrupted those are embedded correctly in the pdf >>>> when I use them through InDesign or Quark or LaTeX >>>> >>>> >>>> >>>> Thanks, >>>> >>>> Srikrishnan >>>> >>>> >>>> >>>> ________________________________ >>>> >>>> From: SriKrishnan [mailto:[email protected]] >>>> Sent: Saturday, October 30, 2010 10:24 AM >>>> To: '[email protected]' >>>> Subject: RE: How to load tiff images successfully in PDF >>>> Importance: High >>>> >>>> >>>> >>>> Hi, >>>> >>>> >>>> >>>> May be it is a stupid question for you. >>>> >>>> >>>> >>>> As I said clearly in my mail, I am new to FOP. I don’t found any proper >>> user >>>> friendly Documentation for FOP. So I am in a confusion whether I missed >>>> something or anything not supported by FOP. If you people like experts > in >>>> all these things need any further details if you ask me, certainly it is >>> my >>>> duty to furnish those details. >>>> >>>> >>>> >>>> My system and software details: >>>> >>>> >>>> >>>> OS: Windows XP professional >>>> >>>> FOP: version 0.95 >>>> >>>> Saxon: version 8 >>>> >>>> >>>> >>>> I have tried to open the pdf in two version of Acrobat >>>> >>>> >>>> >>>> In version 9, it popup the error message as mentioned in my earlier mail >>>> (with empty space for the image places). >>>> >>>> In version 6, it popup the error message as “Colour space” (with empty >>> space >>>> for the image places) >>>> >>>> In GSVIEW, without showing any error message it opens the pdf (with >> empty >>>> space for the image places) >>>> >>>> >>>> >>>> If you are not interested to answer such a stupid questions, don’t > reply. >>>> Such kind of replies will discourage new users >>>> >>>> >>>> >>>> Regards, >>>> >>>> Srikrishnan >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> >>>> From: SriKrishnan [mailto:[email protected]] >>>> Sent: Friday, October 29, 2010 3:02 PM >>>> To: '[email protected]' >>>> Subject: How to load tiff images successfully in PDF >>>> >>>> >>>> >>>> Hi all, >>>> >>>> >>>> >>>> I am new to fop. I have successfully converted fo to pdf when gif images >>> are >>>> loaded in the file. When came to tif images, pdf creates successfully, >> but >>>> when I scroll to the image page in Adobe Acrobat, the following error >>>> message popup: >>>> >>>> >>>> >>>> “An error exists on this page. Acrobat may not display the page >> correctly. >>>> Please contact the person who created the PDF document to correct the >>>> problem” >>>> >>>> >>>> >>>> My fo coding is as follows: >>>> >>>> >>>> >>>> <fo:external-graphic src="url(file:/c:/sample/lhp01301.tif)" > width="auto" >>>> height="auto" content-width="auto" content-height="auto"/> >>>> >>>> >>>> >>>> But in the same above coding when I use gif image it works correctly. > Any >>>> help would be very much useful. >>>> >>>> >>>> >>>> Thanks in Advance, >>>> >>>> Srikrishnan >>>> >>>> >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> 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] >> > > > --------------------------------------------------------------------- > 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]
