Re: How to load tiff images successfully in PDF

2015-07-01 Thread becofuan
You may means you need to convert Tiff to PDF.
I just found such a resource that must be helpful to you:
Convert TIFF to PDF in .net application
http://www.rasteredge.com/software/tiff-pdf-converter/  



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/How-to-load-tiff-images-successfully-in-PDF-tp17746p42502.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to load tiff images successfully in PDF

2010-11-01 Thread mehdi houshmand
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 srikrish...@techset.co.uk 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:54 AM

 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:24 AM
 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Friday, October 29, 2010 3:02 PM
 To: 'fop-users@xmlgraphics.apache.org'
 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: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: How to load tiff images successfully in PDF

2010-11-01 Thread SriKrishnan
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:med1...@gmail.com] 
Sent: Monday, November 01, 2010 5:21 PM
To: fop-users@xmlgraphics.apache.org
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 srikrish...@techset.co.uk 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:54 AM

 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:24 AM
 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Friday, October 29, 2010 3:02 PM
 To: 'fop-users@xmlgraphics.apache.org'
 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: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e

Re: How to load tiff images successfully in PDF

2010-11-01 Thread mehdi houshmand
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 srikrish...@techset.co.uk 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:med1...@gmail.com]
 Sent: Monday, November 01, 2010 5:21 PM
 To: fop-users@xmlgraphics.apache.org
 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 srikrish...@techset.co.uk 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:54 AM

 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Saturday, October 30, 2010 10:24 AM
 To: 'fop-users@xmlgraphics.apache.org'
 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:srikrish...@techset.co.uk]
 Sent: Friday, October 29, 2010 3:02 PM
 To: 'fop-users@xmlgraphics.apache.org'
 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

RE: How to load tiff images successfully in PDF

2010-11-01 Thread SriKrishnan
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:med1...@gmail.com] 
Sent: Monday, November 01, 2010 6:18 PM
To: fop-users@xmlgraphics.apache.org
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

Re: How to load tiff images successfully in PDF

2010-11-01 Thread mehdi houshmand
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 srikrish...@techset.co.uk 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:med1...@gmail.com]
 Sent: Monday, November 01, 2010 6:18 PM
 To: fop-users@xmlgraphics.apache.org
 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

Re: How to load tiff images successfully in PDF

2010-11-01 Thread mehdi houshmand
Hi SriKrishnan,

I tried it in Windows7 (not based on MSDOS) and FOP 1.0 and it worked,
same warning messages that you'll want to attend to, but it worked.
I'd suggest you use 1.0, if that doesn't work, let me know.

Thanks

Mehdi

On 1 November 2010 12:53, SriKrishnan srikrish...@techset.co.uk 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:med1...@gmail.com]
 Sent: Monday, November 01, 2010 6:18 PM
 To: fop-users@xmlgraphics.apache.org
 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

RE: How to load tiff images successfully in PDF

2010-11-01 Thread SriKrishnan
Hi Mehdi,

Thanks for your continous effort to clarify my doubt.

I have analysed my tif. Actually original tif files (which I uploaded to
fop-users) are created using Adobe Photoshop CS2 Windows. But those files
are not natively supported by fop-0.95. But when I save as those files in
IrfanView in the same format, fop-0.95 supports those files and the output
appears correctly as same as yours.
In fop-1.0, original tif files are supported without doing anything in the
figures.
I think there may be some issues in the tif format with the older version of
fop.
But now my problem with tif images fixed and also I came to understand many
more things regarding fop, with your valuable guidance.

Thanks,
Srikrishnan

-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: Monday, November 01, 2010 8:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: How to load tiff images successfully in PDF

Hi SriKrishnan,

I tried it in Windows7 (not based on MSDOS) and FOP 1.0 and it worked,
same warning messages that you'll want to attend to, but it worked.
I'd suggest you use 1.0, if that doesn't work, let me know.

Thanks

Mehdi

On 1 November 2010 12:53, SriKrishnan srikrish...@techset.co.uk 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:med1...@gmail.com]
 Sent: Monday, November 01, 2010 6:18 PM
 To: fop-users@xmlgraphics.apache.org
 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

RE: How to load tiff images successfully in PDF

2010-10-31 Thread SriKrishnan
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:srikrish...@techset.co.uk] 
Sent: Saturday, October 30, 2010 10:54 AM
To: 'fop-users@xmlgraphics.apache.org'
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:srikrish...@techset.co.uk] 
Sent: Saturday, October 30, 2010 10:24 AM
To: 'fop-users@xmlgraphics.apache.org'
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:srikrish...@techset.co.uk] 
Sent: Friday, October 29, 2010 3:02 PM
To: 'fop-users@xmlgraphics.apache.org'
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

 

 



Re: How to load tiff images successfully in PDF

2010-10-30 Thread mehdi houshmand
Hi SriKrishan,

I think there may have been some confusion about what I said, first of
all this tif image embedding is supported by FOP 0.95, so I asked if
you could open the tif file using a image viewer. The command you have
used is perfectly valid (if the tif file is indeed it does point at
the tif file) so the issue could be that the tif file is corrupted and
thereby throwing this error. It's worth checking if the tif file is a
valid TIFF.

Just for clarification, I was suggesting my question was stupid not yours.

Thanks

Mehdi

On 30 October 2010 05:54, SriKrishnan srikrish...@techset.co.uk wrote:
 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:srikrish...@techset.co.uk]
 Sent: Friday, October 29, 2010 3:02 PM
 To: 'fop-users@xmlgraphics.apache.org'
 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: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: How to load tiff images successfully in PDF

2010-10-30 Thread SriKrishnan
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:srikrish...@techset.co.uk] 
Sent: Saturday, October 30, 2010 10:24 AM
To: 'fop-users@xmlgraphics.apache.org'
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:srikrish...@techset.co.uk] 
Sent: Friday, October 29, 2010 3:02 PM
To: 'fop-users@xmlgraphics.apache.org'
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

 

 



Re: How to load tiff images successfully in PDF

2010-10-29 Thread mehdi houshmand
Hi Srikrishnan,

In order to help we need to know what version of FOP are you using?
Also which version of Adobe Acrobat? Have you tried using another
viewer? Does that work? Also, it sounds like a stupid question, but
have you checked that the tif file isn't corrupted?

Thanks

Mehdi

On 29 October 2010 10:31, SriKrishnan srikrish...@techset.co.uk wrote:
 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: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: How to load tiff images successfully in PDF

2010-10-29 Thread SriKrishnan
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:srikrish...@techset.co.uk] 
Sent: Friday, October 29, 2010 3:02 PM
To: 'fop-users@xmlgraphics.apache.org'
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