SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jan 2004
    Location
    Nashville
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating PDF's - File to large

    We are creating a 1 page PDF for a gift certificate. We are using fPDF library.

    The issue we run into is that the single page PDF is around 350K.

    If someone orders 4 we end up with a rather large file the customer needs to download.

    Is there another library or some technique to create a smaller file size?

  2. #2
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    There are bunches of optimization tools available from this Google Search
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  3. #3
    SitePoint Addict
    Join Date
    Jan 2004
    Location
    Nashville
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shyflower View Post
    There are bunches of optimization tools available from this Google Search
    Ok, lets try this again. What tools as anyone used and been satisifed with.

    Yes, I searched google before posting.

  4. #4
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    Okay. I use PDF-edit which is open source. However, I run a linux os. Not sure if it will work on windows. Here's the link: http://pdfedit.petricek.net/en/index.html

    You might also want to try a source using the term "Open Source PDF Editors"
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  5. #5
    <?php while(!sleep()){code();} G.Schuster's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure the size isn't fPDFs fault - but of your images.
    I used fPDF in a "print your mug, your shirt or whatever" shop some years ago with high-res pictures and the size grew (or shrunk) with the image size.
    If you don't use images you're doing something else wrong (no offense!) - give some code so we can have a look.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •