vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Download Thread as PDF (https://vborg.vbsupport.ru/showthread.php?t=91562)

Lea Verou 07-06-2007 09:46 PM

Quote:

Originally Posted by magnus (Post 1284717)
I got bored, so here's a confirmed working version for 3.6.7PL1. This has only been tested using PHP5. It will not work on PHP4.

I've packaged it up as a product and it requires no template creation, edits, etc. Everything is handled from within the product.

First, uninstall the previous version. Files, phrases, templates. Everything.

Next, unpack the attached file and upload the contents of the forum directory to your forum root. Then simply import the product XML and you're done.

* Edit: Well, according to vBorg I'm exceeding my attachments quota. So, apparently I can't attach any files.

Thanks vBorg!

So, until that gets resolved here's a direct URL. Download

Does it work for other languages?

Quantnet 07-06-2007 10:03 PM

magnus,

Installed without a single problem. When i view threads that have tex bbcode, it does not render images properly...it will just show a square box with red cross in it.

This is in Firefox and Opera browsers.
In IE 7, I have this error FPDF error: Unsupported image type: cgi?/partial

Look like pdfthread.php does not handle the mimetex.cgi script well.

Quantnet 07-06-2007 10:05 PM

Also, when i tried to use pdf thread on a thread with pictures...http://www.quantnet.org/forum/showthread.php?t=845

i had these error
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /html2fpdf/fpdf.php on line 2201

magnus 07-06-2007 10:23 PM

Quote:

Originally Posted by Quantnet.org (Post 1284745)
Also, when i tried to use pdf thread on a thread with pictures...http://www.quantnet.org/forum/showthread.php?t=845

i had these error
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /html2fpdf/fpdf.php on line 2201

When I attempt to view as a PDF for that thread, I receive the error:

Quote:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1273902197 bytes) in /home/quantnet/public_html/forum/html2fpdf/fpdf.php on line 2201
Which appears, to me, that your PHP memory allocation block is too small.

magnus 07-06-2007 10:26 PM

Upon further testing, the only "problem" I can seem to find is that pictures will display as a red X. Other than that, the complete document is properly rendered into PDF format.

I'm going to take a quick look at the picture issue.

Quantnet 07-06-2007 10:26 PM

^^ I up it to 256MB which is the maximum of my VPS plan. That should not be a problem with the memory anymore.

When I use the View printable thread, everything appears fine, pictures, latex....

magnus 07-06-2007 10:28 PM

Quote:

Originally Posted by Michelle (Post 1284726)
Does it work for other languages?

What do you mean? There's really no language dependency (that I can see). There's only one phrase, which can be translated if desired.

Quantnet 07-06-2007 10:30 PM

Here is a thread with latex which you can test the Show Printable Version and Show PDF
http://www.quantnet.org/forum/showthread.php?t=410

magnus 07-07-2007 02:31 AM

Ok, the problem appears to be inherent with html2fpdf. I've gone ahead and basically written a new hacking using a different set of classes/libraries which seems to function much better. Once I'm confident it's stable, I'll get it released. This shouldn't take more than a day, if that.

For the time being, I've gone ahead and removed the previous archive as it will never work 100% without rewriting the backend.

Quantnet 07-07-2007 05:44 AM

Awesome magnus.
I'll look forward to it.


All times are GMT. The time now is 01:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01275 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete