Quoting "Trosien, Michael" <[EMAIL PROTECTED]>:

> Hello together,
> I have a problem using the title element with itext. I use the title to
> generate the bookmaks, where I can navigate in the pdf. Using the title
> element the way I do, runs without problems. But I don't want to see the
> title in the pdf as a headline. That's why I set the size of the title
> to 0. This is also running. But I have problems with some printer
> drivers (mostly postscript) . The Acrobat Reader gut's a problem, and a
> dialog with an error appears. When I change the size of the title to
> 0.1, there's no error anymore. Isn't there another way to generate the
> bookmarks without setting the size to 0 or 0.1 and without having the
> title as a headline in the pdf??? The error in the PrinterDialog of the
> Acrobat Reader is caused by the little preview on the left side, where I
> can see the pdf as a small preview. When the printer driver can't handle
> the option size="0", the dialog with the error appears.

I had to read your text twice to understand what you mean
but I think I get it: you are using Chapter and Section to
generate bookmarks, but in reality you don't want Chapter
and Section, you just want the bookmarks? Am I right?

In that case the answer is simple: don't use Chapter and
Section, just create the bookmarks yourself. There are some
examples here:
http://itext.sourceforge.net/tutorial/objects/bookmarks/index.html#bookmarks

Again, I can only guess what you're up to, but as far as I understand,
I think you should use a genericTag, passing the title for the bookmark
as text and using the location of the genericTag to create the Destination.

Generic tags are explained here:
http://itext.sourceforge.net/tutorial/objects/chunk/index.html#generic

br,
Bruno


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to