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
2
votes
0 answers

Insert text with right adjustment of margin in PDFLIB

I use PDFLib7 with PHP 7, and I need to insert text with the margin adjusted to the right (as: "text-align: center;" in CSS), instead the default left margin adjustment. This tasks seems to be a little tougher than expected. Pls. see the code I use…
2
votes
1 answer

PDFLib Factory. Error when calling $this->pdf from functions within class

The idea is as follows, to make a creation of PDFs a little bit cleaner, I am supposed to create a Factory/Abstract class that will a set of predefined functions like so class AbstractPDF{ protected $pdf; protected $searchpath; …
2
votes
1 answer

PDFLib rotate image/text around center

Pdflib rotates objects like images or texts currently around bottom left. Its possible rotate objects around center? I tried position={center} option for image objects: $pdf->fit_image($image, $x, $y, 'fitmethod=meet boxsize={'.$w.' '.$h.'}…
Mr.K
  • 21
  • 2
2
votes
1 answer

Config apache + PDFlib + wordpress

I'm having trouble installing PDFlib in my apache to use in my wordpress application. I followed the tutorial PHP I still did the following command, because I thought in another doubt about the installation: echo "katleia.com.br localhost" | sudo…
Marcius Leandro
  • 775
  • 1
  • 11
  • 34
2
votes
1 answer

How to generate new PDF using PDFLib 9 in C#?

I am trying to create a new, blank PDF document using PDFLib 9 in my .Net project. I've looked at some of the tutorials and documentation but could not get it working. Here is the code I have in a unit test: public void Test() { …
2
votes
0 answers

How to generate shadow for rectangle By PDFLIB

How to add shadow to a rectangle, which is generated using PDFLIB in php. I used $p->rect(540,610,44,43); $p->stroke(); to generate rectangles.
Satya
  • 417
  • 1
  • 4
  • 12
2
votes
2 answers

pdflib add textbox with dynamic height

I'm new to PDFLib and i'm trying to get something work I got the following situation: There is a quite clean pdf with two textlines. After these two textlines i want to place a paragraph of text. The thing is, the length of these text is dynamic…
2
votes
1 answer

Trouble installing PDFlib on ubuntu 14.04 PHP Version 5.5.9-1ubuntu4.6 (64 bit server)

I wonder if anyone has successfully installed pdflib on ubutu 14.04? From the instructions at http://www.pdflib.com/fileadmin/pdflib/pdf/support/PDFlib-in-PHP-HowTo.pdf it seems that it ought to be simple but I am having no success with it. What I…
George W
  • 61
  • 1
  • 4
2
votes
1 answer

Detect if PDF is colored [DATALOGICS][APDFL]

I am using APDFL 10.1.0 to convert PDF to images. This is how I am loading the PDF file and saving a specific page as image: Document pdfdocument = null; pdfdocument = new Document(docpath); Page docpage = pdfdocument.GetPage(pagelist[0]); Image…
amyn
  • 922
  • 11
  • 24
2
votes
1 answer

Adding a "watermark" on a PDF with PDFlib

sorry for not providing any sourcecode. So I am having PDF files (already made) and a website where I offer them for download (I am oversimplifying here) anyway, what I want to do is, when someone clicks on them, I want with PHP and PDFlib insert a…
Petros Mastrantonas
  • 806
  • 1
  • 15
  • 41
2
votes
1 answer

PHP/Imagick/PDFlib Flop Image Changes its Bit Depth

I am Having PNG Image And Trying To Flop (Mirror) by imagick function of php It Gets Flop Exactly But The Base Image is In Format 24 Bit RGB and after Convertion It Gets To 8 Bit Pallated . So the Main Problem is that when I use to place both…
anshuVersatile
  • 398
  • 2
  • 13
2
votes
1 answer

Tet Pdf Text Extraction Tutorial

Does anyone know a good TET Tutorial, which is not the standard documentation? The documentation provided by the homepage of pdflib isn´t that good, and I really need to understand how this works. It´d also be okay when someone can explain me tet as…
LostPhysx
  • 3,573
  • 8
  • 43
  • 73
2
votes
1 answer

PDFLib template error: function must not be called in object scope

I'm using PDFLib engine to generate the pdf files. I have used template feature of it and my code is as follow: /* define the template */ template = p.begin_template_ext(width, height, ""); ...template using text, vector, and image…
Smit
  • 1,559
  • 17
  • 38
2
votes
1 answer

How to reduce pdf size with PDFLib with heavy images?

I'm creating pdf with the help of the PDFLib engine. My requirement is quite heavy in terms of data which is going to be stored in pdf. One pdf will going to store around 300 Images. And will create around 100 pdfs at the same time. Mine images are…
Smit
  • 1,559
  • 17
  • 38
2
votes
4 answers

Does anybody have any advice regarding running PDFlib on a Windows Azure Worker Role?

We have a requirement for PDF generation on the fly in our .NET Azure application, and have determined that PDFLib best meets our requirements. Basic deployment is dll based, and so should be relatively straightforward. While researching the issue,…
Jude Fisher
  • 11,138
  • 7
  • 48
  • 91
1 2
3
17 18