Module: PDF Pages
Posted by Thomas Seifert
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
pdfpages-1.0.3.zip | 403.7 KB | open | download | Thomas Seifert | 04/04/2017 | Read message |
Module: PDF Pages April 23, 2009 04:01AM |
Admin Registered: 21 years ago Posts: 9,240 |
This module will add an addon page which generates and returns a pdf for a given thread in a plain readable format using TCPDF ( [www.tecnick.com] ). Attachments are added as links to the PDF.
It overrides the "Printview" link in the thread to make the addon url accessible.
Currently only the UTF-8 charset is supported and images in the body are removed as the underlying library doesn't work well with remote and dynamic images.
Some ideas for future enhancements:
---------------------------------------------------
- add formatting options through a setting screen
- make images work (for a sane solution it would require to download the images and replace the img-tags in the body)
- make full forum pdfs with internal links
- add internal links to each message and a ToC (like shown in [www.tecnick.com] , No. 45)
- add file attachments to pdf (like shown in [www.tecnick.com] , No. 41)
Demo: just try the Printview links here in the forums.
Thomas Seifert
Edited 2 time(s). Last edit at 04/23/2009 04:10AM by Thomas Seifert.
It overrides the "Printview" link in the thread to make the addon url accessible.
Currently only the UTF-8 charset is supported and images in the body are removed as the underlying library doesn't work well with remote and dynamic images.
Some ideas for future enhancements:
---------------------------------------------------
- add formatting options through a setting screen
- make images work (for a sane solution it would require to download the images and replace the img-tags in the body)
- make full forum pdfs with internal links
- add internal links to each message and a ToC (like shown in [www.tecnick.com] , No. 45)
- add file attachments to pdf (like shown in [www.tecnick.com] , No. 41)
Demo: just try the Printview links here in the forums.
Thomas Seifert
Edited 2 time(s). Last edit at 04/23/2009 04:10AM by Thomas Seifert.
Re: Module: PDF Pages August 09, 2009 05:35AM |
Registered: 17 years ago Posts: 12 |
Re: Module: PDF Pages vs Tidy Output August 25, 2009 02:52PM |
Registered: 17 years ago Posts: 533 |
Re: Module: PDF Pages vs Tidy Output August 26, 2009 02:27PM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: Module: PDF Pages September 20, 2010 01:53PM |
Registered: 15 years ago Posts: 81 |
Hi,
I prefer to use "PDF pages" module over normal "Print View" because it "generates and returns a pdf for a given thread" where and the normal print view will give me only the print view of the current message - in the "mixed and fixed" view I am using for our forum.
I have two minor issues with this forum - which if fixed would have been great.
1) It is fine that it is not printing images, but it does print the html that is used to display the images which are part of "Rate this thread" module. (I am using the excellent "Rate this thread" module as well). If there was a way that this PDF Pages module not to print the (i.e. disable "Rate this thread" module and then print the) html associated with "Rate this thread" module, then it would have been great. Is there a simple tweak or hack possible?
2) I am using some simple html as part of my forum title as well. This module prints that html also as is. If there is a way to avoid this too, I would be much thankful.
I have a doubt - certainly this module to work properly "Tidy Output" module should be turned off. Does this have any side effect? i.e. Is it that the work done by "Tidy output" (i.e. removes unneeded white space from Phorum's output) will be now handled by this module?
Anyway, thanks for this excellent module. In the current state itself it is better than the normal "Print view" since it "generates and returns a pdf for a given thread".
Please help.
Regards,
Sreenadh
I prefer to use "PDF pages" module over normal "Print View" because it "generates and returns a pdf for a given thread" where and the normal print view will give me only the print view of the current message - in the "mixed and fixed" view I am using for our forum.
I have two minor issues with this forum - which if fixed would have been great.
1) It is fine that it is not printing images, but it does print the html that is used to display the images which are part of "Rate this thread" module. (I am using the excellent "Rate this thread" module as well). If there was a way that this PDF Pages module not to print the (i.e. disable "Rate this thread" module and then print the) html associated with "Rate this thread" module, then it would have been great. Is there a simple tweak or hack possible?
2) I am using some simple html as part of my forum title as well. This module prints that html also as is. If there is a way to avoid this too, I would be much thankful.
I have a doubt - certainly this module to work properly "Tidy Output" module should be turned off. Does this have any side effect? i.e. Is it that the work done by "Tidy output" (i.e. removes unneeded white space from Phorum's output) will be now handled by this module?
Anyway, thanks for this excellent module. In the current state itself it is better than the normal "Print view" since it "generates and returns a pdf for a given thread".
Please help.
Regards,
Sreenadh
Re: Module: PDF Pages January 25, 2012 11:09AM |
Registered: 17 years ago Posts: 533 |
I wanna disable this for users not logged in, so that it returns a message that they need to log in to grab the PDF, or returns an empty PDF.
It seems some simple code in this script ought to do (like if user_id is empty or something). Can you please help instruct me?
if user_id (of the requester) is empty (or not logged in) then,
PDF = plain and boring and empty
else
generate PDF as normal.
Robert Angle
Phorum lover, nothing more.
Ruminations
It seems some simple code in this script ought to do (like if user_id is empty or something). Can you please help instruct me?
if user_id (of the requester) is empty (or not logged in) then,
PDF = plain and boring and empty
else
generate PDF as normal.
Robert Angle
Phorum lover, nothing more.
Ruminations
Re: Module: PDF Pages April 03, 2012 09:27AM |
Registered: 12 years ago Posts: 22 |
Hi,
Is there a Mod for PDFs that allow users to upload them to a forum?
The attachment feature in Phorum seems to be limited to images...
•Valid attachments: gif, jpg, png, gz, zip, bz2, php, tpl, txt
•No file can be larger than 850 KB
•3 more file(s) can be attached to this message
Also, is there a mod that increases the file limit?
Thanks!
:-) joan
Is there a Mod for PDFs that allow users to upload them to a forum?
The attachment feature in Phorum seems to be limited to images...
•Valid attachments: gif, jpg, png, gz, zip, bz2, php, tpl, txt
•No file can be larger than 850 KB
•3 more file(s) can be attached to this message
Also, is there a mod that increases the file limit?
Thanks!
:-) joan
Re: Module: PDF Pages April 03, 2012 09:42AM |
Registered: 13 years ago Posts: 50 |
Re: Module: PDF Pages April 03, 2012 05:42PM |
Admin Registered: 18 years ago Posts: 566 |
Most options are settable in the Phorum/Admin. (multiple places possible default settings, or a specific forum)
File size has multiple places where it might be restricted.
mysql
php
Phorum
.htaccess
Increase the file size in Phorum/admin if you hit a limit Phorum usually lets you know.
Phorum also keeps you under the max size available by a safe margin.
Don't forget you will need to back up all of those huge attachments.
Edited 1 time(s). Last edit at 05/19/2016 08:28AM by Scott Finegan.
File size has multiple places where it might be restricted.
mysql
php
Phorum
.htaccess
Increase the file size in Phorum/admin if you hit a limit Phorum usually lets you know.
Phorum also keeps you under the max size available by a safe margin.
Don't forget you will need to back up all of those huge attachments.
Edited 1 time(s). Last edit at 05/19/2016 08:28AM by Scott Finegan.
Re: Module: PDF Pages May 19, 2016 04:33AM |
Admin Registered: 18 years ago Posts: 744 |
New Version:
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
2016/05/19 version 1.0.1 by Oliver Riesen-Mallmann (oliver@riesen.org) - Changed URL to module thread. - README extended. - Corrected some undefined index notices.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Sorry, only registered users may post in this forum.