[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

PDF::Writer Table of Contents problem

lepage

8/3/2006 3:42:00 PM

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

3 Answers

Austin Ziegler

8/3/2006 3:58:00 PM

0

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.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca

lepage

8/3/2006 4:08:00 PM

0

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.halo...
> * austin@halostatue.ca * http://www.halo...feed/
> * austin@zieglers.ca

Austin Ziegler

8/3/2006 4:21:00 PM

0

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.

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

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca