WordPress.org

Ready to get started?Download WordPress

Forums

WP2PDF Preview Release 2 (24 posts)

  1. thewalrus
    Member
    Posted 10 years ago #

    Just found an error. If you get the message that 'wp-blog-header.php' couldn't be found, change the line
    require('wp-blog-header.php');
    in the file 'wp2pdf.php' to
    require('../wp-blog-header.php');
    I've already corrected and uploaded a new file, so this is just necessary if you get the error message.

  2. carthik
    Member
    Posted 10 years ago #

    Awesome! Thanks.

  3. greatgoron
    Member
    Posted 10 years ago #

    Thanks!!! It's great!!!
    http://www.adenoia.com/ciencia (under construction)

  4. greatgoron
    Member
    Posted 10 years ago #

    I use the < more > tag on my posts so the index page is not cluttered with text. So when i go to .../wp2pdf.php?showposts=n i get a PDF file that contains the posts with the <more> tag (as shown on the blog). That's obvious because WP2PDF converts the posts as shown on the web to PDF, but... is it possible to get rid of the <more> tag on the PDF file and substitute it with the complete post? (without eliminating the <more> tag on WP)
    P.S. Hope i could explain myself, sorry for my english

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    awesome program. it works quite well for me. is it possible to add support for bullet list and numbered lists? i.e. things found within

      1. tags? Also, when I choose the option "New page per post?" to "No", the spacing between different entries is a little off (sometimes there is a line of whitespace between two entries, sometimes there isnt), e.g.
        Title of Entry1
        blah blah blah
        *** this area here, sometimes there is a blank line here, sometimes there isn't ***
        Title of Entry2
        blah blah blah

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    ^^ addendum to last post
    the tags didnt quite come out the way i wanted them, but they are basically "li" "ol" and "ul"
    i noticed that the problem with the spacing occurs between entries for the same day (e.g. when I have 2 entries for the same day, the spacing is messed up)

  7. Chris J. Davis
    Member
    Posted 10 years ago #

    Hey I would love to try this out, but it looks as though the settings.php file is not being written. I don't have the time to try and find out why and fix it right now, but a suggestion for the next version is some error handling. Check that settings.php is being created on the first login, and tell the user if it is or isn't.
    I am using the latest release.
    Thanks for your work it looks really good from what I have seen on your test blog, I can't wait to get it working on mine.
    Chris

  8. thewalrus
    Member
    Posted 10 years ago #

    Actually it has error handling. However you need to press the "save" button first, then it will write the file. Did you do that?

  9. Chris J. Davis
    Member
    Posted 10 years ago #

    Yeah I did that! I am not a complete idiot, just a partial one. The permissions on the folders out of the box were all screwy. They were set to www which is just nonsense. So once I updated the permissions to something writeable by a user everything worked out.
    Oh and you error handling would need to be introduced before I hit save, you should probably create a blank settings.php file when you populate the login file, or at least cover in your documentation that one is needed since you don't ship with the file. Makes troubleshooting a little easier to know all teh dependencies ahead of time.

  10. thewalrus
    Member
    Posted 10 years ago #

    Thats why I wrote installation instructions in the Readme-file which tell you to chmod certain directories and use setup.php to create a settings file. I can't help you if you don't read them.
    But I will include a default setup file in the next version.

  11. Chris J. Davis
    Member
    Posted 10 years ago #

    chmod only changes permission settings, it doesn't handle the fact that out of the box some of the files and folders are attributed to www which is incorrect. That would be chown or chgroup. I did read them insult-man, and I chmodded them, and you know what, until I changed them to a correct user/group it still didn't do dick.

  12. thewalrus
    Member
    Posted 10 years ago #

    I don't get your problem. There's nothing wrong with the file permissions:
    cornflake:~/Desktop/test/wp2pdf thewalrus$ ls -l
    total 296
    drwxr-xr-x 5 thewalru thewalru 170 6 Apr 23:23 ADMIN
    -rw-r--r-- 1 thewalru thewalru 1584 6 Apr 20:02 commentfunctions.txt
    drwxr-xr-x 15 thewalru thewalru 510 25 Mar 21:22 font
    -rwxr-xr-x 1 thewalru thewalru 504 2 Aug 2003 fpdf.css
    -rwxr-xr-x 1 thewalru thewalru 41500 4 Apr 19:38 fpdf.php
    -rw-r--r-- 1 thewalru thewalru 18009 5 Apr 09:19 gpl.txt
    -rw-r--r-- 1 thewalru thewalru 10539 7 Apr 00:33 readme.htm
    -rw-r--r-- 1 thewalru thewalru 17913 6 Apr 21:32 watermark.jpg
    -rw-r--r-- 1 thewalru thewalru 9557 7 Apr 00:32 wp2pdf.php
    -rwxr-xr-x 1 thewalru thewalru 28685 6 Apr 23:56 wp2pdf_inc.php
    You're the only one who has problems installing it, nobody else complained about the file permissions/owner.
    What do you have over there? Linux? BSD? OS X?

  13. Chris J. Davis
    Member
    Posted 10 years ago #

    freeBSD, and that is great that no one else had problems in this area, but when you develop software, you have a responsibility to your users.
    I had problems and brought them up to you so that you could take a look and see if it was on my end or yours, I also gave you some feedback that was good since even our beloved WP ships with example files, EVEN THOUGH THE SYSTEM CAN CREATE IT FROM SCRATCH.
    I was hoping to save you the hassle down the line of fielding this particular problem again should it arise by giving you feedback and suggestions, from one developer to another.
    I am not sure what happened, maybe something screwy happened when I decompressed the archive, I never said that any thing was your fault did I? I still am not sure why you felt you needed to resort to slinging jabs at me, but that was your choice. Again I dig the software, if not the user support. Keep up the good work.
    Chris

  14. thewalrus
    Member
    Posted 10 years ago #

    I think we have a slight misunderstanding here. I din't meant to "attack" you. I first thought you didn't read the Readme file, so I was probably a bit angry at the beginning. I'm usually don't do any software development (I study social sciences) and this whole WP2PDF thing is just a hobby.
    The next release does indeed ship with default config files and it has a much better and more user friendly setup procedure.
    Thanks again for the feedback, I really need it.

  15. Chris J. Davis
    Member
    Posted 10 years ago #

    Thanks for the reply, as in most misunderstandings online, this could have been avoided had we had some context to our conversation so that inflection, and intent could be attached to words. I apologize fro my sarcastic tone in some of my posts as well. Your hack really is something and I look forward to more developments in this area.
    Chris

  16. george
    Member
    Posted 10 years ago #

    how I can use cp1251 in it?

  17. greatgoron
    Member
    Posted 10 years ago #

    Hi! Is there some improvement on the <more> tag issue?
    Sorry for my impatience, but i want to use this on my site. Saludos!

  18. thewalrus
    Member
    Posted 10 years ago #

    Non-Western language support as well as the <more>-Function will be included in the next public release. However I don't know yet when it will be finished. The new semester has started and I don't have much time for WP2PDF at the moment.
    It could propably take a couple of weeks until its finished.

  19. Chris J. Davis
    Member
    Posted 10 years ago #

    for anyone that cares I added 6 x 9 as a size option. I could provide the updated pages for anyone that would like to have this form factor. (That is basic hard back novel size. I found it looks really good in those dimensions.)

  20. thewalrus
    Member
    Posted 10 years ago #

    About the more-tag:
    If anyone who is using that tag could send me a copy of his/hers index.php? That would be nice, because I would save me some time. I'll probably release an update of the PR2 with this function added on sunday. Thanks!

  21. Chris J. Davis
    Member
    Posted 10 years ago #

    Hey all, I wanted to chime in with two feature requests, when you get the time of course!
    My first and biggest deals with tags. When I write a blog post I input all the tags, I don't like letting the software do it for me. I also write my code the correct way, meaning as follows:

    Some text

    While that is all fine and dandy in the browser, it looks as though the pdf conversion process is adding extra line breaks for the tags, so I am getting really wide spaced paragraphs. So changing the conversion to account for this would be great.
    Secondly, I would really love to be able to change the order of the posts to ASC since I would like to use this to create a hard copy of my "journal"; which would be much better in that format.
    That is it for now.

  22. greatgoron
    Member
    Posted 10 years ago #

    I just send my index page to your mail. Saludos!

  23. Chris J. Davis
    Member
    Posted 10 years ago #

    For anyone interested I have released a plugin for 1.2+ that gives your users easy access to some of the cooler features of this hack/plugin.
    Currently WP2PDF interface gives your users the ability to choose a year, or month to convert to PDF. In the next version I hope to have by author going as well.
    You can find the plugin here: http://chrisjdavis.org/hacks/wp-pdf-interface.phps
    And you can find info on setting up the hack as always, over here: http://chrisjdavis.org/index/category/wp-hacks/
    Let me know if you have any questions or comments.
    Jesuit

  24. dbasulto
    Member
    Posted 8 years ago #

    i cant get wp2pdf to work with permalinks... any help?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags