Re: Character spacing problems

2008-05-21 Thread Rakesh Kumar S

Hi

Sorry i had mentioned FOP 0.25 its fop0.20.5.

1. I tried making kerning=yes did not work.
2. PDF is not set to Reduce to Fit while printing.

does this version not support kerning??

Thanks  Regards,
Rakesh Kumar S



Another possibility is the PDF viewer has 'Reduce to fit' set when
printing (Page Setup or advanced print options).

Clay



On 5/20/08, Rakesh Kumar S [EMAIL PROTECTED] wrote:
 Hi

 Does FOP 0.25 not support Kerning?

 I have tries setting both kerning=yes and kerning=no but it does not
 work???

 Thanks in Advance

 Rakesh Kumar S

 
 From: Amick, Eric [EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 6:23 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Character spacing problems

 This is just a guess, but is kerning turned on in Word? I suspect it
 isn't.


 Eric Amick
 Legislative Computer Systems
 Office of the Clerk

 -Original Message-
 From: Rakesh Kumar S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 6:40
 To: fop-users@xmlgraphics.apache.org
 Subject: Character spacing problems

 I'm using Arial font in FOP and when I render it to PDF with a specific
 font type and size (bold, size 12
 pt) and I do the same with Microsoft word and print both. It is exact
 same line and same font etc. The Microsoft version of it is longer (when
 I overlay and
 compare) than the FOP version even though both are using the same fonts?
 Somehow the spacing of the characters/words seems to be different in FOP
 than with word.

 Is this a known issue? Can this be corrected? This is causing some
 inconsistency between 2 formats namely word and PDF. Please help.



 -- I found this post earlier, i am also facing the same problem.

 What is the solution to this problem




 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unwanted extra page between page-sequences

2008-05-21 Thread Talken, Patrick (GE Infra, Aviation)
I am running 0.20.5 but it might not make a difference. I tried your .fo
file  after removing the  initial-page-number=1 on the second page
sequence and I didn't get the blank page, so that maybe the issue.
 
Patrick

  _  

From: David Gerdt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 19, 2008 12:48 PM
To: fop-users@xmlgraphics.apache.org
Subject: Unwanted extra page between page-sequences


Hello all-
 
Can someone help me understand why I'm getting an extra blank page with
the attached fo file? If I remove either one of the page sequences, it
renders correctly as a single page pdf. If both are together, I keep
getting a blank page between the two.
 
I'm sure it's probably a simple error that I've just overlooked, but
I've hit a wall and would love another pair of eyes to help me see what
I'm not seeing.
 
I'm running 0.95beta.
 
Thanks in advance!
 
Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handeling tradional orphans.

2008-05-21 Thread paul womack

paul womack wrote:

Michael Halpin wrote:
I realize that orphans according to fop are the first line of a 
paragraph at the bottom of a page where the rest of the paragraph 
breaks onto the next page.  


I'd call that a widow, a term also used for headings
which have lost their body text.

  In traditional editing an orphan is a lone
word at the end of a paragraph.  Does anyone know if there is a way to 
tell fop to either suck up the word to the previous line or to bump a 
word down automatically as to avoid orphans at the end of a paragraph.


I work in the print/prepress trade, and the term orphan
is generic (in my experience); any trailing isolated thing.

The worst case I've ever seen was where the second half
of a hyphenated word at the end of a paragraph
wrapped onto the next page... !


Further context; in OpenOffice (v2.3 if it matters)
the options you're talking of are in paragraph style,
text flow, options. One of the options is keep paragraph together
If this is NOT checked, the options widow control and orphan control
can be used, both expressed as a number of lines.

   BugBear

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handeling tradional orphans.

2008-05-21 Thread Stefan Heuer

Hi Michael,

At least FOP 0.94 seams to support attributes about orphans and widows 
on block level elements. See:

http://xmlgraphics.apache.org/fop/compliance.html#fo-property-orphans

But I haven't tested it yet.

Regards

Stefan



Michael Halpin schrieb:
 !-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 
{margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:Times 
New Roman;} a:link, span.MsoHyperlink {color:blue; 
text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed 
{color:purple; text-decoration:underline;} span.EmailStyle17 
{mso-style-type:personal-compose; font-family:Arial; color:windowtext;} 
@page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} 
div.Section1 {page:Section1;} --


 I realize that orphans according to fop are the first line of a 
paragraph  at the bottom of a page where the rest of the paragraph 
breaks onto the next page.  In traditional editing an orphan is a lone 
word at the end of a paragraph.  Does anyone know if there is a way to 
tell fop to either suck up the word to the previous line or to bump a 
word down automatically as to avoid orphans at the end of a paragraph.




 Thanks,
 Michael
 
 *In the event that I am arrested for being a domestic enemy of the
 state, you should know that it is not true, and I will be back in the
 office just as soon as they reinstate Habeas Corpus 

http://en.wikipedia.org/wiki/Habeas_corpus#War_on_Terror.*








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MalformedURLException when using relative paths

2008-05-21 Thread Preuss, Jacqueline - ENCOWAY
Hi!

 

We're just upgrading from fop_0.92 to fop_0.95beta. In our Fop
Configuration File we defined a base and a font-base like this:

 

base./pdf_test/base

font-base./pdf_test/pdf_fonts/font-base

 

With 0.92 everything works fine but with the newer version we get the
following exception:

 

java.net.MalformedURLException: no protocol: ./pdf_test/

at java.net.URL.init(URL.java:567)

at java.net.URL.init(URL.java:464)

at java.net.URL.init(URL.java:413)

at
org.apache.fop.apps.FopFactory.checkBaseURL(FopFactory.java:339)

at
org.apache.fop.apps.FopFactory.setBaseURL(FopFactory.java:355)

at
org.apache.fop.apps.FopFactoryConfigurator.configure(FopFactoryConfigura
tor.java:116)

at
org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(FopFactoryConfi
gurator.java:231)

at
org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(FopFactoryConfi
gurator.java:203)

at
org.apache.fop.apps.FopFactory.setUserConfig(FopFactory.java:637)

 

Are relative paths not allowed anymore? What can we do to solve this?
Are there any suggestions available?

 

Regards,

Jacqueline.



Re: Handeling tradional orphans.

2008-05-21 Thread paul womack

Michael Halpin wrote:
I realize that orphans according to fop are the first line of a 
paragraph at the bottom of a page where the rest of the paragraph 
breaks onto the next page.  


I'd call that a widow, a term also used for headings
which have lost their body text.

 In traditional editing an orphan is a lone
word at the end of a paragraph.  Does anyone know if there is a way to 
tell fop to either suck up the word to the previous line or to bump a 
word down automatically as to avoid orphans at the end of a paragraph.


I work in the print/prepress trade, and the term orphan
is generic (in my experience); any trailing isolated thing.

The worst case I've ever seen was where the second half
of a hyphenated word at the end of a paragraph
wrapped onto the next page... !

  BugBear

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handeling tradional orphans.

2008-05-21 Thread Vincent Hennebert
Hi Michael,

Michael Halpin wrote:
 I realize that orphans according to fop are the first line of a
 paragraph  at the bottom of a page where the rest of the paragraph
 breaks onto the next page.  In traditional editing an orphan is a lone
 word at the end of a paragraph.

Just curious: how do you then call the first line of a paragraph alone
at the bottom of a page? Do you have a special term for that?

(And FWIW: it’s not FOP that calls that ‘orphan’, it’s the XSL-FO
standard that FOP implements. It’s not our fault ;-) )


 Does anyone know if there is a way to
 tell fop to either suck up the word to the previous line or to bump a
 word down automatically as to avoid orphans at the end of a paragraph.

There’s no setting to automatically achieve that, I’m afraid. What you
can do is insert a non-breaking space (U+00A0) between the last two
words of the paragraph. If the last word then becomes hyphenated, you
will also have to insert word joiners (U+2060) at each possible
hyphenation place in the last word. Be sure the encoding of the FO file
is UTF-8.

This may sound tedious, but if you are proof-reading a final copy
hopefully you will have to fix only a few paragraphs. You can also
implement some XSLT magic to automatically insert a non-breaking space
between the last two words of each paragraph, and as an approximation
a word joiner between each letter of the last word.

HTH,
Vincent


-- 
Vincent HennebertAnyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Character spacing problems

2008-05-21 Thread Amick, Eric
To be clear, the kerning setting I was talking about is in Microsoft
Word. I'm not aware of a specific property in FO that serves the same
purpose. 


Eric Amick
Legislative Computer Systems
Office of the Clerk

-Original Message-
From: Rakesh Kumar S [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 4:00
To: fop-users@xmlgraphics.apache.org
Subject: Re: Character spacing problems


Hi

Sorry i had mentioned FOP 0.25 its fop0.20.5.

1. I tried making kerning=yes did not work.
2. PDF is not set to Reduce to Fit while printing.

does this version not support kerning??

Thanks  Regards,
Rakesh Kumar S



Another possibility is the PDF viewer has 'Reduce to fit' set when
printing (Page Setup or advanced print options).

Clay



On 5/20/08, Rakesh Kumar S [EMAIL PROTECTED] wrote:
 Hi

 Does FOP 0.25 not support Kerning?

 I have tries setting both kerning=yes and kerning=no but it does 
 not work???

 Thanks in Advance

 Rakesh Kumar S

 
 From: Amick, Eric [EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 6:23 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Character spacing problems

 This is just a guess, but is kerning turned on in Word? I suspect it 
 isn't.


 Eric Amick
 Legislative Computer Systems
 Office of the Clerk

 -Original Message-
 From: Rakesh Kumar S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 6:40
 To: fop-users@xmlgraphics.apache.org
 Subject: Character spacing problems

 I'm using Arial font in FOP and when I render it to PDF with a 
 specific font type and size (bold, size 12
 pt) and I do the same with Microsoft word and print both. It is exact 
 same line and same font etc. The Microsoft version of it is longer 
 (when I overlay and
 compare) than the FOP version even though both are using the same
fonts?
 Somehow the spacing of the characters/words seems to be different in 
 FOP than with word.

 Is this a known issue? Can this be corrected? This is causing some 
 inconsistency between 2 formats namely word and PDF. Please help.



 -- I found this post earlier, i am also facing the same problem.

 What is the solution to this problem




 CAUTION - Disclaimer * This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the
use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further,
you are not to copy, disclose, or distribute this e-mail or its contents
to any other person and any such actions are unlawful. This e-mail may
contain viruses. Infosys has taken every reasonable precaution to
minimize this risk, but is not liable for any damage you may sustain as
a result of any virus in this e-mail. You should carry out your own
virus checks before opening the e-mail or attachment. Infosys reserves
the right to monitor and review the content of all messages sent to or
from this e-mail address. Messages sent to or from this e-mail address
may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

-
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]



tif images appearing distorted in PDFs

2008-05-21 Thread Woodhouse, Graeme
Hello all,

I'm trying to get tif images working in PDF's I'm creating -

The problem is some of them are coming out with the image height having been 
resized (by around 50%).

Other tif images are being displayed correctly with no incorrect resizing.

Does anyone have any idea's why this might be?

Graeme Woodhouse
Software Engineer

ProQuest - The Quorum, Barnwell Road, Cambridge, CB5 8SW

Direct-Line:+44 (0) 1223 271 264
Switchboard:  +44 (0) 1223 215 512
Fax: +44 (0) 1223 215 513
www.proquest.co.ukhttp://www.proquest.co.uk/

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this message in error, please notify the sender immediately 
by reply and immediately delete this message and any attachments.



Re: tif images appearing distorted in PDFs

2008-05-21 Thread paul womack

Woodhouse, Graeme wrote:

Hello all,

 


I'm trying to get tif images working in PDF’s I'm creating –

 

The problem is some of them are coming out with the image height having 
been resized (by around 50%).


 


Other tif images are being displayed correctly with no incorrect resizing.

 


Does anyone have any idea’s why this might be?


Possibly a tiff file with non-square pixels (which is valid,
but unusual) ?

  BugBear

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tif images appearing distorted in PDFs

2008-05-21 Thread Woodhouse, Graeme
How would I find out if the tif that is going wrong has non-squared pixels?

Graeme


-Original Message-
From: paul womack [mailto:[EMAIL PROTECTED]
Sent: 21 May 2008 14:10
To: fop-users@xmlgraphics.apache.org
Subject: Re: tif images appearing distorted in PDFs

Woodhouse, Graeme wrote:
 Hello all,



 I'm trying to get tif images working in PDF's I'm creating -



 The problem is some of them are coming out with the image height having
 been resized (by around 50%).



 Other tif images are being displayed correctly with no incorrect resizing.



 Does anyone have any idea's why this might be?

Possibly a tiff file with non-square pixels (which is valid,
but unusual) ?

   BugBear

-
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: tif images appearing distorted in PDFs

2008-05-21 Thread Woodhouse, Graeme
I seem to have fixed it by setting scaling to non-uniform.

... not sure why it fixed it but it seems to have done.

Graeme


-Original Message-
From: Woodhouse, Graeme
Sent: 21 May 2008 14:12
To: 'fop-users@xmlgraphics.apache.org'
Subject: RE: tif images appearing distorted in PDFs

How would I find out if the tif that is going wrong has non-squared pixels?

Graeme


-Original Message-
From: paul womack [mailto:[EMAIL PROTECTED]
Sent: 21 May 2008 14:10
To: fop-users@xmlgraphics.apache.org
Subject: Re: tif images appearing distorted in PDFs

Woodhouse, Graeme wrote:
 Hello all,



 I'm trying to get tif images working in PDF's I'm creating -



 The problem is some of them are coming out with the image height having
 been resized (by around 50%).



 Other tif images are being displayed correctly with no incorrect resizing.



 Does anyone have any idea's why this might be?

Possibly a tiff file with non-square pixels (which is valid,
but unusual) ?

   BugBear

-
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]



output xml structure with xsl?

2008-05-21 Thread maxmus

Hallo,
I am looking for a way to translate an xml-file 1:1 to pdf,
i.e. 
the xml-file
?xml version=1.0 encoding=UTF-8?
f
 x c=de/x
/f
should have exactly the same pdf output:
?xml version=1.0 encoding=UTF-8?
f
 x c=de/x
/f.
In other words, I want to look at my input file.
But the only thing I can manipulate is the XSL file,
as the FOP runs on a server.
In addition, I don't know the exact structure of the XML-file.

is it possibly to write an xsl that has that output?

regards,
maxmus





-- 
View this message in context: 
http://www.nabble.com/output-xml-structure-with-xsl--tp17364239p17364239.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tif images appearing distorted in PDFs

2008-05-21 Thread paul womack

Woodhouse, Graeme wrote:

How would I find out if the tif that is going wrong has non-squared pixels?


xresolution != yresolution. They're independent parameters
in the TIFF spec.

Try tiffdump.

  BugBear

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Named destination: hyperlink to target in external PDF jumps to first page

2008-05-21 Thread John Brown

Hello All,

I am trying to use named destinations to create a file f1.pdf with
a hyperlink to targets in another file f2.pdf. The hyperlink jumps
to the first page in f2.pdf. I found a message in another newsgroup
that said that this feature does not work for local PDF files; it works
only for PDFs served by a web server. 

1) Is this true?

2) Is there a way to specify a relative path (current directory) with
file:// syntax? file:f2.pdf does not work. I get a message box saying:
The file or folder smb://f2.pdf/#hello does not exist.
I have to write file:///path/to/f2.pdf, which would not be meaningful
on another computer.

I am currently on Kubuntu Hardy Heron (8.10), although the PDFs
are being created for Windows users. I am using fop-trunk 653186.




  

  

  
  

  Hello World!
 Hello, Book 2
  

  





  

  

  
  

  Hello World!

  
  

  

  
  This is the Hello World that I want!

  


_
Make every e-mail and IM count. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Named destination: hyperlink to target in external PDF jumps to first page

2008-05-21 Thread John Brown

John Brown johnbrown105 at hotmail.com writes:

 
 
 Hello All,
 
 I am trying to use named destinations to create a file f1.pdf with
 a hyperlink to targets in another file f2.pdf. The hyperlink jumps
 to the first page in f2.pdf. I found a message in another newsgroup
 that said that this feature does not work for local PDF files; it works
 only for PDFs served by a web server. 
 
 1) Is this true?
 
 2) Is there a way to specify a relative path (current directory) with
 file:// syntax? file:f2.pdf does not work. I get a message box saying:
 The file or folder smb://f2.pdf/#hello does not exist.
 I have to write file:///path/to/f2.pdf, which would not be meaningful
 on another computer.
 
 I am currently on Kubuntu Hardy Heron (8.10), although the PDFs
 are being created for Windows users. I am using fop-trunk 653186.
 

Sorry - I keep forgetting that Hotmail strips out all XML.
I was trying top include my FO files.

!-- f1.fo --
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:fox=http://xmlgraphics.apache.org/fop/extensions; font-family=Cambria
  fo:layout-master-set
fo:simple-page-master master-name=A4 page-height=29.7cm
page-width=21cm margin=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4
fo:flow flow-name=xsl-region-body
  fo:block id=helloHello World!
 fo:basic-link external-destination=url('file:f2.pdf#hello')Hello,
Book 2/fo:basic-link
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root


!-- f2.fo --
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:fox=http://xmlgraphics.apache.org/fop/extensions; font-family=Cambria
  fo:layout-master-set
fo:simple-page-master master-name=A4 page-height=29.7cm
page-width=21cm margin=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4
fo:flow flow-name=xsl-region-body
  fo:block id=page1Hello World!/fo:block
/fo:flow
  /fo:page-sequence
  fo:page-sequence master-reference=A4
fo:flow flow-name=xsl-region-body
  fo:block
fox:destination internal-destination=hello/
  /fo:block
  fo:block id=helloThis is the Hello World that I want!/fo:block
/fo:flow
  /fo:page-sequence
/fo:root



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TIFF generation using FOP .094

2008-05-21 Thread Jawaby

Hi, Can you give me some guidance on how to go about configuring FOP to
generate TIFF files instead of PDF.

Thanks

Mike
-- 
View this message in context: 
http://www.nabble.com/TIFF-generation-using-FOP-.094-tp17364372p17364372.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: output xml structure with xsl?

2008-05-21 Thread J.Pietschmann

maxmus wrote:

I am looking for a way to translate an xml-file 1:1 to pdf,


In general, there is no way to do this with XSLT, because
the XSLT processor doesn't get all the lexical structure.
For example, the XSLT processor doesn't know about the
sequence of XML attributes, or the number of whitespaces
between attributes, or whether a particular attribute
was delimited by single or double quotes.
If you can live with a kind of canonicalized rendering of
the XML, you can write yourself a text renderer in XSLT,
roughly like

xsl:template match=*
  xsl:textlt;/xsl:text
  xsl:value-of select=name()
  xsl:if test=@*
xsl:text /xsl:text
xsl:apply-templates select=@*/
  /xsl:if
  xsl:textgt;/xsl:text
  xsl:apply-templates/
  xsl:textlt;//xsl:text
  xsl:value-of select=name()
  xsl:textgt;/xsl:text
/xsl:template

(complete it with templates for attributes, text, processing
instructions and XML comments)

If you can use other tools to manipulate the XML file, use
a stream edit to wrap your XML in a CDATA construct (a proper
implementation would also escape any ]] string in your XML,
but doing this properly becomes somewhat messy).

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MalformedURLException when using relative paths

2008-05-21 Thread J.Pietschmann

Ted Young wrote:

Yes, it supports relative, but relative URLs not relative file paths.  So,
what you want it:
file:pdf_test


Everything starting with file: (or anything else which looks like
an URI scheme) is by specification an absolute URL. The string
file:pdf_test is not a valid URL at all, although some libraries
will try to interpret it the way you do. I'm not sure whether FOP
does it, and I'm too tired to check the URI resolver class right
now.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Named destination: hyperlink to target in external PDF jumps to first page

2008-05-21 Thread Andreas Delmelle

On May 21, 2008, at 17:26, John Brown wrote:

Hi John



I am trying to use named destinations to create a file f1.pdf with
a hyperlink to targets in another file f2.pdf. The hyperlink jumps
to the first page in f2.pdf. I found a message in another newsgroup
that said that this feature does not work for local PDF files; it  
works

only for PDFs served by a web server.

1) Is this true?


I haven't checked myself, but it seems possible...
That is: I cannot say off-hand whether fragment identifiers are also  
supposed to work in URIs using the file:// protocol.

I only know for certain that http:// supports them.

Anyone?


2) Is there a way to specify a relative path (current directory) with
file:// syntax? file:f2.pdf does not work. I get a message box  
saying:

The file or folder smb://f2.pdf/#hello does not exist.
I have to write file:///path/to/f2.pdf, which would not be meaningful
on another computer.


Depending on the answer to my above question, you could try:

file://./f2.pdf#hello


HTH!

Cheers

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TIFF generation using FOP .094

2008-05-21 Thread Andreas Delmelle

On May 21, 2008, at 19:14, Jawaby wrote:



Hi, Can you give me some guidance on how to go about configuring  
FOP to

generate TIFF files instead of PDF.


If you use the command-line, the following are possible:

fop -fo input.fo -tiff output.tiff
fop -fo input.fo -out image/tiff output.tiff

If you use FOP embedded, you need something like:
...
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, out);
...

Note that the output may differ between the two formats (PDF vs.  
TIFF), since they use different font-metrics.



HTH!

Cheers

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: MalformedURLException when using relative paths

2008-05-21 Thread Ted Young
I know it works with FOP .94 since I am doing exactly this right now.  :-)

Ted

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 3:11 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: MalformedURLException when using relative paths

Ted Young wrote:
 Yes, it supports relative, but relative URLs not relative file paths.  So,
 what you want it:
 file:pdf_test

Everything starting with file: (or anything else which looks like
an URI scheme) is by specification an absolute URL. The string
file:pdf_test is not a valid URL at all, although some libraries
will try to interpret it the way you do. I'm not sure whether FOP
does it, and I'm too tired to check the URI resolver class right
now.

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]



RE: TIFF generation using FOP .094

2008-05-21 Thread Mike Scott
Andre,
Thanks for info. I'm using from command line but I get error:

SEVERE: Exception
org.apache.fop.apps.FOPException: Renderer has not been set!

Is there somewhere I need to specify a renderer?

Thanks

Mike

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: 21 May 2008 21:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: TIFF generation using FOP .094

On May 21, 2008, at 19:14, Jawaby wrote:


 Hi, Can you give me some guidance on how to go about configuring  
 FOP to
 generate TIFF files instead of PDF.

If you use the command-line, the following are possible:

fop -fo input.fo -tiff output.tiff
fop -fo input.fo -out image/tiff output.tiff

If you use FOP embedded, you need something like:
...
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, out);
...

Note that the output may differ between the two formats (PDF vs.  
TIFF), since they use different font-metrics.


HTH!

Cheers

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.21/1457 - Release Date: 20/05/2008
16:45
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.21/1457 - Release Date: 20/05/2008
16:45
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FOP .94 Fonts

2008-05-21 Thread zachary Dains

I have set up some font metrics for my own custom TrueType font and trying to
get fop to read it.  As soon as I specify a config file via -c I get this
error when I try and render a pdf.

SEVERE: Exception java.io.FileNotFoundException:
/var/www/.fop/fop-fonts.cache

NOTE: I am using the example fop.xconf file as my config without any
changes, however this issue still occurs even when I put my own changes in
the file.  Any ideas?
-- 
View this message in context: 
http://www.nabble.com/FOP-.94-Fonts-tp17386501p17386501.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]