PDF::Writer Table of Contents problem

Hello,

I am having some problems with the PDF::Writer gem. I cannot get the
table of contents to display any items.

Has anyone had this problem or used this library? I am unable to get
feedback using their rubyforge mailing list.

I hope someone can help me.

Thanks in advance!

Tony

I'm pretty sure that I replied and I indicated that I was on vacation
at the time.

The table of contents support is *only* applicable to bin/techbook
(PDF::TechBook) and requires PDF::TechBook-formatted documents. If you
want anything else, you need to create your code based on the TechBook
class code and implement it yourself. There is not general
table-of-contents support in PDF::Writer as a whole.

So, what exactly are you trying to do?

-austin

···

On 8/3/06, lepage@gmail.com <lepage@gmail.com> wrote:

I am having some problems with the PDF::Writer gem. I cannot get the
table of contents to display any items.

Has anyone had this problem or used this library? I am unable to get
feedback using their rubyforge mailing list.

--
Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
               * austin@halostatue.ca * You are in a maze of twisty little passages, all alike. // halo • statue
               * austin@zieglers.ca

Hey Austin,

Thanks for the reply, I must have missed your reply somehow.

Anyway, I began by using the module.pwd and modifying it to get a feel
for how to make it work. I changed the title page, generated a pdf,
then the content of the document, generated the pdf.. and continued
until I was able to successfully make the pdf I need with a table of
contents and all.

Unfortunately, I would make a small change and then the table of
contents would only show up as the only heading (black background,
white text, etc.) and none of the other #<heading>s in the document
would be parsed. I've been trying to remove any comments (#comment)
from within and outside the .eval {{{ tags. I have no luck yet though.

Thanks again,
Tony

Austin Ziegler wrote:

···

On 8/3/06, lepage@gmail.com <lepage@gmail.com> wrote:
> I am having some problems with the PDF::Writer gem. I cannot get the
> table of contents to display any items.
>
> Has anyone had this problem or used this library? I am unable to get
> feedback using their rubyforge mailing list.

I'm pretty sure that I replied and I indicated that I was on vacation
at the time.

The table of contents support is *only* applicable to bin/techbook
(PDF::TechBook) and requires PDF::TechBook-formatted documents. If you
want anything else, you need to create your code based on the TechBook
class code and implement it yourself. There is not general
table-of-contents support in PDF::Writer as a whole.

So, what exactly are you trying to do?

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
               * austin@halostatue.ca * You are in a maze of twisty little passages, all alike. // halo • statue
               * austin@zieglers.ca

If you can send me the code (off-list), I will try to figure it out
this weekend.

-austin

···

On 8/3/06, lepage@gmail.com <lepage@gmail.com> wrote:

Anyway, I began by using the module.pwd and modifying it to get a feel
for how to make it work. I changed the title page, generated a pdf,
then the content of the document, generated the pdf.. and continued
until I was able to successfully make the pdf I need with a table of
contents and all.

Unfortunately, I would make a small change and then the table of
contents would only show up as the only heading (black background,
white text, etc.) and none of the other #<heading>s in the document
would be parsed. I've been trying to remove any comments (#comment)
from within and outside the .eval {{{ tags. I have no luck yet though.

--
Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
               * austin@halostatue.ca * You are in a maze of twisty little passages, all alike. // halo • statue
               * austin@zieglers.ca