Results 1 to 4 of 4

Thread: Generating image to PDF

  1. #1
    Join Date
    Jan 2009
    Posts
    150

    Generating image to PDF

    For the site of printers, I have to generate a PDF document in 300dpi using information selected and entered on the site. For example, I choose a background image before his name and address, choose a font, text color, etc. and I have to generate an image (PDF) ready for use for printer.

    Could you tell me ways to do this? For now I know fpdf but I think it's fairly complicated to make a very specific document.

    How to generate image to PDF ?

  2. #2
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Generating image to PDF

    If I got it right, you want to generate an image from vector data, which includes the changing fonts. The job that you are trying to do involves lot of complexity. Something more realistic is likely to generate a PDF vector with some elements. In this case FPDF will largely be the case. Its sure is low, but almost all libs PDF (PDFlib, hpdf, Jaws, Adobe, PDFLib, ....) have a similar API.

    In this case, a PDF "300 dpi" means nothing, since your vector elements will use the resolution of the press and if you get an image RGB JPG at 72 dpi, it is not strictly nothing to convert at 300dpi.

  3. #3
    Join Date
    Jan 2009
    Posts
    150

    Re: Generating image to PDF

    It is the printing business card that I am trying to do. On the other side, it is not vector images provided or not the user. The latter entered these details and chose a background for the card. But can not do any more custom. For now, I think using FPDF but having used to generate pdfs dedicated to the display, simple and inexpensive binding, I would like information on the alternatives before me while typing with FPDF.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Generating image to PDF

    Actually, I just void the FPDF API. API is pretty gross smelter. I did not see any function to specify the page size, no function to handle the transformation matrices (rotation/scaling text/polygon), no SetBottomMargin ().

    Otherwise Haru PDF can do that, except that the API is in C, and not PHP.

Similar Threads

  1. Reports not generating in sbs 2008
    By SinguIar in forum Small Business Server
    Replies: 5
    Last Post: 30-07-2011, 12:49 AM
  2. Vista not generating thumbnails
    By Nik Simpson in forum Vista Help
    Replies: 10
    Last Post: 04-04-2010, 04:50 AM
  3. Generating HTML Paragraphs with Polymorphs in PHP 5
    By BossBattle in forum Software Development
    Replies: 3
    Last Post: 21-01-2010, 12:56 PM
  4. Generating GTP packets
    By hjazz in forum Networking & Security
    Replies: 2
    Last Post: 20-01-2009, 10:30 PM
  5. Video thumbnails not generating automaticly.
    By Indragop in forum Vista Help
    Replies: 1
    Last Post: 06-08-2008, 12:56 AM

Tags for this Thread

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
  •  
Page generated in 1,713,548,022.97693 seconds with 16 queries