Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.0-rc5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2008 at 10:33 UTC
Updated:
11 Jun 2010 at 15:40 UTC
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
Comment #1
jcnventuraHi,
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
Comment #2
cruiz commentedHi,
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
Comment #3
jcnventuraHi,
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.
Comment #4
cruiz commentedHi 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
Comment #5
jcnventuraHola, 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
Comment #6
cruiz commentedHola 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
Comment #7
jcnventuraHola, 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
Comment #8
cruiz commentedMuchas 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!
Comment #9
jcnventuraMoving it to Drupal again..
Comment #10
damien tournoud commentedWell, in that case, this is by design. I don't think it's stupid or anything. That's really the way it should work.
Comment #11
jcnventuraHi,
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
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
Charly-1 commentedcvcx