Questions tagged [pdflib]

PDFlib is a library for generating and manipulating files in Adobe’s well known Portable Document Format (PDF).

PDFlib is a library for generating and manipulating files in Portable Document Format (PDF). The library is a commercial product from PDFlib GmbH, a German company that builds and maintains the library.

PDFlib - A library for generating PDF on the Fly

PDFlib is the leading developer toolbox for generating and manipulating files in the Portable Document Format (PDF). PDFlib’s main targets are dynamic PDF creation on a Web server, or any other server system, and to implement "Save as PDF" in existing applications. You can use PDFlib to dynamically create PDF documents from database contents, similar to dynamic Web pages. PDFlib has proven itself in a wide range of other use cases as well. Application programmers need only decent graphics or print output experience to be able to use PDFlib quickly. Since PDFlib frees you from the technicalities of the PDF file format, you can focus on acquiring the data and arranging text, graphics, and images on the page.

Lots of information and coding samples can be found in the free PDFlib Cookbook which contains sample code for PHP and Java.

257 questions
0
votes
1 answer

How retour on line on cell of table pdflib

How I do do retour on line retour chariot on cell of table with pdflib I do that on cell $tbl = $p->add_table_cell($tbl, $col, $row, $num."\r\n".$quote, $optlist); but not do retour on line on cell of table
test
  • 19
  • 5
0
votes
2 answers

Bold text with pdflib

I have a string and I want to put just the date 01/01/2015 in bold. I have done this: $text_dateretour="Date retour:01/01/2015"; $p->fit_textline($text_dateretour, 478, 520, "fontsize=10 italicangle=-12…
user3791255
  • 109
  • 1
  • 6
0
votes
1 answer

avoidbreak is not correctly working in pdflib 8

I have a text, the word "Versicherungs-Lebenslagen" should only break at the hyphen. This works, but the world Lebenslagen should stay in the same line, if there is enough space. In my picture, there word is in the next line. My pdflib code which i…
Joergi
  • 1,527
  • 3
  • 39
  • 82
0
votes
1 answer

Printing RTF Text in PDFLib 9 Table Cell

I am using Perl and PDFLib 9 to dynamically create a PDF document. I read some data from a DB and print a table with the data onto the PDF. One field in my DB contains RTF text. How can i print RTF text in a PDFLib table cell? I can't find any…
Sebi
  • 3,879
  • 2
  • 35
  • 62
0
votes
0 answers

QR Code won´t work although input is correct

At work we are using PDFLib to create personalized PDF files. This works fine so far, but now I have come to struggle. I try to create VCards which are then converted to QR-Codes and printed on business cards for example. While my function seems to…
flomei
  • 860
  • 1
  • 11
  • 36
0
votes
1 answer

Upgrade pdflib from 6 to 9, now code creates corrupt PDFs?

I have a PHP app running the PDFlib program to generate PDFs. Version 6 has been running fine for a long time. We are about to change servers and decided to upgrade to the latest version of all of the software. Well, the parts of the program that…
0
votes
2 answers

Copy PDFLib Block Layout

I have a pdf file with PDFlib blocks on it. None of these blocks have been filled. I need to copy those blocks, but not the page content, onto a set of other pdf documents, each with their own content. The blocks do not need to be filled. The idea…
Legendary_Linux
  • 1,509
  • 1
  • 11
  • 17
0
votes
2 answers

pdflib : Show on browser and save on server in the same time a pdf file

Is somebody know how to show on browser and save on server in the same time a pdf file? I use PHP and PDFLIB to generate the pdf, and in the beginning i do : PDF_open_file ($p, $DocFile); Where $DocFile indicate the place on server where i write the…
0
votes
1 answer

PDFLib (PCos) get image position from PDF

So i'm trying to get image position in PDF with PHP and PDFlib pCos library. I can list images and get image dimensions like: $imgcount = $tet->pcos_get_number($doc, "length:pages[" . $page . "]/images"); for ($im = 0; $im < $imgcount; $im++) { …
Hardy
  • 5,590
  • 2
  • 18
  • 27
0
votes
1 answer

using PDFLib/TET alongwith boto to parse pdf on amazon s3

read pdf file from amazon s3 (using boto) save it locally as 123.pdf open and parse the locally saved pdf using PDFLib/TET I am currently able to perform all 3 steps above but I want to skip the step 2 to save on Disk I/O. It looks like one can…
comiventor
  • 3,922
  • 5
  • 50
  • 77
0
votes
1 answer

PHP 5.3: how to add PDFlib?

I recently upgraded my Linux server from Apache 2.1 to 2.4 and PHP 5.2 to 5.3. Previously I was using pdf.so from PDFlib fine, but when I tried to install it, as downloaded from here, http://www.pdflib.com/download/free-software/pdflib-lite-7/ PHP…
ggkmath
  • 4,188
  • 23
  • 72
  • 129
0
votes
2 answers

PDFLib Error "create_pvf: No data supplied (size=0)"

My PHP application throws the exception on a Linux production system, on Windows everything works fine. Does anyone know the reason for that error message? I use PDFlib 7...
Tobias Schittkowski
  • 2,221
  • 2
  • 16
  • 25
0
votes
1 answer

Embedding fonts issue in PDFlib 9

We have just upgraded from 7 to 9 and unfortunately the guy who was running this quit and I am now in charge of this update. I am not too familiar with PDFlib either. From what I see we need to embed fonts because it no longer does this…
Jcdevelopment
  • 51
  • 2
  • 8
0
votes
1 answer

Using TET to get Font List from PDF returns length:fonts = 0

This always returns 0 even though the PDF has several embedded fonts. Im using TET4.1 PHP 5.3 Linux $fontCount = (integer) $tet->pcos_get_number($doc, "length:fonts"); All other calls using $tet->pcos_get_number($doc, "xxxx") work fine.
alQemist
  • 362
  • 4
  • 13
0
votes
0 answers

Too many files open error. Not sure if Linux restriction or PDF Lib restriction

I am generating a large 1000 page check template and get the following error when I run from X-post "Error: Couldn't open PDF file '(output file name and location)' for reading (too many open files)" When I go into adjust my quantity down from 1000…
Jcdevelopment
  • 51
  • 2
  • 8