Hello all,
I have installed the module with tcpdf for php5. The problem is that when I try to print something as pdf, it only prints the chapter of a book, not the hole book. Is there any way to change this?

Thank you in advance,

Best regards

Cruiz

Comments

jcnventura’s picture

Title: Print hole book in pdf » Print whole book in pdf
Status: Active » Postponed (maintainer needs more info)

Hi,

Are you sure you're using version 6.x-1.0-rc5?? What you're requesting is possible since rc4.

What's the URL of the link to the PDF version? Is it of the type printpdf/nn or is it of the type printpdf/book/export/html/nn?

João

cruiz’s picture

Title: Print whole book in pdf » Print hole book in pdf
Status: Postponed (maintainer needs more info) » Active

Hi,
Yes, I am working with the print-6.x-1.0-rc5 version. I have unistalled everything, and installed it again, but doesn't work anyway.

This is the url I get when trying to print a book: printpdf/book/export/html/21

Thanks a lot!

Cris

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Can you tell me if the version produced by book/export/html/21 shows the same problem?

Note that it is not print/book/export/html/21 (the version produced by the web-page PF version), but the one produced by the book module...

João

PS: and by the way, a hole is an opening or perforation, you mean 'whole' book when you want the 'complete' book.

cruiz’s picture

Title: Print hole book in pdf » Print whole book in pdf

Hi again, João,
When I tape book/export/html/21, without "print", I can see the whole book (I realized of my fault just after having sent my post! sorry!!). If I am in the first page of the book, and click in "Print" /print/book/export/html/21, the whole book is print, but if I do the same or click in "PDF version", when I am in one of the chapters, only that chapter is print.

Could it be a problem with the pdf tool? (tcpdf)

I don't know if I have explained my problem correctly, if you have any doubt, please, let me know.

Thanks!!

Cris

jcnventura’s picture

Hola, Cristina.

Thanks for the help. Now I know that it must be a problem with the PDF version module. I am pretty sure it isn't a problem with TCPDF.

However, I don't know how to replicate it exactly.. And without that, I don't see how I can fix it.

João

cruiz’s picture

Hola de nuevo!
I don't know I was clear in my previous post, but if I click in "Print" when I am inside a chapter of a book, only that chapter is print, and the url changes: print/book/export/html/38.

Muchas gracias!

Cris

jcnventura’s picture

Title: Print whole book in pdf » Printer-friendly version export includes only current and lower-level nodes, not the complete book
Project: Printer, email and PDF versions » Drupal core
Version: 6.x-1.0-rc5 » 6.3
Component: Miscellaneous » book.module
Assigned: cruiz » Unassigned
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Hola, Cristina.

Your last clarification was the eye-opener for me.. Indeed, that's something really stupid with the way that the book printing works..
But it's not my fault! It's the book module's fault! :)

To print the complete book, you must be at the root of the book tree. If you're in one of the nodes, only the 'children' of that node are exported via the book/export/html call. You can see this easily by going to book/export/html/nid where nid is the node id of a chapter.

Since I am not re-inventing the wheel there, but just adding a wrapper around the content (adding headers footers and the list of URLs), this is not a problem that should be solved in the print module.

I am moving this to Drupal's book module issue queue.

João

cruiz’s picture

Title: Printer-friendly version export includes only current and lower-level nodes, not the complete book » Print whole book in pdf
Project: Drupal core » Printer, email and PDF versions
Version: 6.3 » 6.x-1.0-rc5
Component: book.module » Miscellaneous
Assigned: Unassigned » cruiz
Category: feature » support
Status: Active » Postponed (maintainer needs more info)

Muchas gracias :-)
You have answered really quickly to all my answers… Now the last one… What could I do in order to print in pdf the entire book, at least if I am in the first page of the book?

Thanks again!

jcnventura’s picture

Title: Print whole book in pdf » Printer-friendly version export includes only current and lower-level nodes, not the complete book
Project: Printer, email and PDF versions » Drupal core
Version: 6.x-1.0-rc5 » 6.3
Component: Miscellaneous » book.module
Assigned: cruiz » Unassigned
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Moving it to Drupal again..

damien tournoud’s picture

Status: Active » Closed (won't fix)

Well, in that case, this is by design. I don't think it's stupid or anything. That's really the way it should work.

jcnventura’s picture

Title: Printer-friendly version export includes only current and lower-level nodes, not the complete book » Print whole book in pdf
Project: Drupal core » Printer, email and PDF versions
Version: 6.3 » 6.x-1.0-rc5
Component: book.module » Code
Category: feature » support
Status: Closed (won't fix) » Fixed

Hi,

I would have preferred someone with 'real' Drupal power to have had a say in the problem.

Excluding that slightly odd behaviour, we have detected a problem by PM that prevented large books from being correctly exported. This has now been fixed.

João

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Charly-1’s picture

cvcx