fpdi

Can FPDF/FPDI use a PDF in landscape format as a template?

I am trying to import an existing PDF as a template with FPDI. The template is in landscape format. If I import the template into a new document the template page is inserted in portrait form with the content rotated 90 degrees. If my new document is in portrait the full content appears, but if the new document is also landscape, the ...

Is there a way to make FPDF/FPDI or Zend_Pdf support the parsing of PDFs greater than 1.4?

I am trying to add an existing PDF (created otherwise) to a PDF created with FPDF using FPDI. It seems to work find for most PDFs, but I get the following error: FPDF error: Unable to find xref table. After some testing, I figured out that if I use a PDF version of 1.4 or lower (Acrobat v5 or lower) it seems to work. Looking at the fi...

FPDF, FPDI - using fonts embedded in the source document

Hi There, I am using FPDF / FPDI to build a pdf templating system. One pdf is used as the background and has a number of editable regions defined within it (stored in database). An editable region could be an image, or text, or both, however this is not my question, just a bit of background. Some of the backgrounds (FPDI source pdf) ...

FPDI, how to remove automatic page counter

I'm using FPDI together with TCPDF to add a page to a already existing PDF-file. This works great, but I have one problem. When I output the new PDF I get an automatic page counter in the lower right corner, "112/299" for example. I find no documentation in FPDI or TCPDF about this automaticly generated page counter. This problem only ...

"Unable to find xref table" with Dompdf0.6a + FPDI

I'm trying to generate a pdf file from html using dompdf0.6a and that works fine, but then i need to encrypt it for protection, but i get error FPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings' However if I use older dompdf versions it works fine. I guess it generates newer pdf version that fpdi d...

FPDF Header Question - Driving me crazy!

I am trying to generate a PDF that outputs Item Names onto a template PDF (using FPDI) with the Username listed on the top of each page. Every user can have a different number of items (i.e. if there are 1-4 items, only output one page; if there 5-8 items, output two pages, etc.) Here is an example of what I am trying to do: http://www...

Using TCPDF and FPDI with cake php

Hi Guys, I have go TCPDF setup in my cake php install and am now trying to also use FPDI with it as i need to add a PDF to the start of the PDF that is being generated. WHen trying to do this i am using 3 classes XTCPDF which holds my header data FPDI - FPDI class TCPDF - TCPDF class and it is setup as so: XTCPDF extends FPDI FPDI...

Is there a way to use the transactions in TCPDF when extending it with FPDI?

I am using TCPDF with FPDI's bridge. The issue I'm having is that as soon as I use the startTransaction() I get the following error: TCPDF ERROR: Cannot access protected property FPDI:$numpages / Undefined property: FPDI::$numpages and the script ends (because of the die in the TCPDF::Error() method). Here is the code I'm using: $pd...

Can FPDI handle PDF 1.7 Collections ?

Hi, I have to deal with PDF files that happen to be collections of pdfs (think of it like a folder of pdfs) Will FPDI correctly import this kind of file ? and How ? :) ...

TCPDF: Left and right aligning a cell leaving space between text and border.

Every time I draw a cell, I get this weird padding between where the border ends and where the text begins. This happens for left and right aligned text. It's much easier to show than describe, so here we go. My code sample: class FPDI_Report extends FPDI { var $now = null; function __construct() { $args = func_get_a...