Jump to content

Use FPDF to create new, smaller pdf from master copy


jonathanp

Recommended Posts

Hi,

 

I've used FPDF a few times and found it great for creating pdfs for my clients (invoices, shipping notes etc.) but now I have a requirement where PDFs will be uploaded to a site and need to have multiple versions created i.e. they will be uploaded as A4 size but an A5 or custom size may be required.

 

Does anyone know if FPDF can either open and change a PDF's page size reliably and re-save, or if I can open the master copy and transfer all content to a new document which has the correct page size set? The master file will probably never have images etc, just be plain text.

 

Also, I've seen mention of FPDF+FPDI around but there's very little documentation I can find for it.

 

Any help will be greatly appreciated. Thanks.

Link to comment
Share on other sites

Hi Blade,

 

Do you mean get the data out of the master pdf (that will be the only place the data/content is available from) and insert it into a brand new fpdf instance? I'll look into it, not sure how to get the content out though.

 

Has anyone had any experience with a pdf2html type app on debian/other distro - I've just found one which works ok on Windows but creates crap html and includes the <hr /> and page number at the bottom of each page - obviously in a smaller document where there are more pages I don't want this content.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.