PDFLib 4.0.2 compression

Discussion in 'PHP' started by Amator, Jun 9, 2010.

  1. #1
    Hi all,
    My host has PDFLib 4.0.2 installed.
    What I want to do in PHP is to make the PDF file as small as possible using PDFLib.
    The file created in PHP at the moment exists of 2 pages, 1st page is text and the 2nd page is a page with 6 jpeg pictures of around 200 KB shown in a smaller size. The file is aroound 1024 KB.

    I see there is a function PDF_set_value where you can set 'compress' to a value from 0 to 9.
    Whatever value I set, the file size is always the same size.

    Is there a way to get the size smaller using PDFLib or is it not possible in PDFLib 4.0.2 ?
    Another possibility I see is to resize the pictures first and then add them in the PDF file I guess but I want to avoid this if possible.

    Any ideas ?
    Thanks
    Amator
     
    Amator, Jun 9, 2010 IP
  2. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
  3. Amator

    Amator Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Thanks for the links but I went already trought the manual/knowledge base on ph.netp and pdflib ( also note I have version 4.0.2)
    There should besomething that I missed but what ?
     
    Amator, Jun 13, 2010 IP