WordPress.org

Ready to get started?Download WordPress

Forums

WP2PDF (WordPress to PDF Converter) Preview Releas (15 posts)

  1. thewalrus
    Member
    Posted 10 years ago #

    Hi!
    I've created a small script that converts WordPress Blog entries to PDF files. I thought someone might find it useful, so I created a public version of it. You can download it at
    http://www.thewalrus.info/wp2pdf/wp2pdf.tgz
    I would be very grateful for bug "reports". It's still a preview release, which means lots of things do not work yet or work different than they should, but you can already create quite good looking PDFs out of it and get an idea what it will look like when it's finished. All you need is a webserver with PHP 4.x, WordPress 1.x and WP2PDF - that's it.
    Thanks,
    René

  2. steevak
    Member
    Posted 10 years ago #

    This seems pretty interesting. Do you have a demo of it? I couldn't find one on your site.

  3. carthik
    Member
    Posted 10 years ago #

    Try This thread for the LJ Book effort at making a book, with chapters and index and all. Pretty neat, and free.

  4. thewalrus
    Member
    Posted 10 years ago #

    LJ Book is an external service which, even though it is free, is controlled by a third person. You also can't use it to create a PDF file of a certain post on demand - that's the main purpose of WP2PDF.

  5. thewalrus
    Member
    Posted 10 years ago #

    OK...I've created a demo version (including a demo blog) which should give you a good impression what the software acts like. You can also change the settings and experiment a bit. Have fun!
    http://www.thewalrus.info/wp2pdf/

  6. TigerDE2
    Member
    Posted 10 years ago #

    @thewalrus: Schon im Wiki verewigt? ;o)
    http://wiki.wordpress.org

  7. thewalrus
    Member
    Posted 10 years ago #

    @TigerDE2: Öhm...was denn verewigt? Stehe auf dem Schlauch. Sollte vielleicht mal schlafen ;)

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    It's cool, but at all times, it just puts a number of posts in there equal to the number of post on the front page.
    for example:
    wp2pdf.php?m=2004
    still gives me just 8 posts, and not ALL my 2003 posts.
    But, other than that, just great !!

  9. thewalrus
    Member
    Posted 10 years ago #

    Looks like I forgot to mention that in the Readme-file...
    Add the variable 'showposts' followed by the number of posts you'd like to convert.
    For example...
    wp2pdf.php?m=2003&showposts=100000
    ...will convert the last 100000 posts of the year 2003. I think that should be enough ;)

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    Ok, now I got the following errors:
    in my 2003 posts are post with broken image links (images are not there...) so I got an error.
    in my 2004 posts are gif files, and that doesn't work... also an error.
    Are there ways to go around these errors?

  11. thewalrus
    Member
    Posted 10 years ago #

    Checking whether or not an image exists - that is something I simply forgot.
    GIFs are not supported by the FPDF-library and I'm writing a function to convert all images (PNGs with alpha channel are not supported either) to JPEG. I'm going to include that in the next public release, which will follow this weekend.
    Unfortunately there is no other workaround :(

  12. thewalrus
    Member
    Posted 10 years ago #

    OK, update: I made a quick (and dirty) update. It will now check whether or not the image exists and it will simply ignore all images that are not JPEGs.
    http://www.thewalrus.info/wp2pdf/wp2pdf.tgz

  13. Anonymous
    Unregistered
    Posted 10 years ago #

    what about this?
    Warning: fopen("blog.pdf", "wb") - Permission denied in /var/www/virtual/www.blogo.net/gat/wp2pdf/fpdf.php on line 1044
    FPDF error: Unable to create output file: blog.pdf

  14. gat
    Member
    Posted 10 years ago #

    sorry, forgot to log in :(

  15. thewalrus
    Member
    Posted 10 years ago #

    Did you chmod the directory to 666?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags