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
3
votes
1 answer

How can we pass list of spotcolor values in PDFLib set-graphics-option?

I have integrated PDFLib library in the c#.net code and I have a requirement to set multiple spotcolor values in set-graphics-option method. I tried the below code but it didn't work... Appreciate your help to fix this. 1. optlist =…
swap
  • 85
  • 4
3
votes
1 answer

How to attach ZUGFeRD-XML to a PDF with perl?

I need to create a PDF/A 3b-document with an XML attached to it like it's declared in ZUGFeRD. For this purpose I wrote myself a perl-script which can create the XML-file as a string and attach it to a PDF. I followed the tutorial of the…
Streuner
  • 125
  • 1
  • 1
  • 15
3
votes
1 answer

Adding XMP Meta Dublin language with FOP 2.1

I want to create a valid PDF/A2-b File. After that in wanna put in a ZUGFeRD invoice with the PDFLib libary. Every time I check the PDF with a Online Validator I get the following error: rechnung.pdf does not conform to PDF/A. Validating file…
Dennis
  • 85
  • 6
3
votes
3 answers

Writing PDF using PHP (PDFLib)

I'm currently writing a code to output a pdf file in PHP using PDFlib from http://www.pdflib.com/. The problem is all html tag is also written in the output file. How can be able to cancel out all those tags? Here is my sample code. $postVariable =…
Resty Sajagon
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Bottle framework generate pdf

I need to generate PDF document using the Bottle framework. I tried similar to Django but that didn't work: @bottle.route('/pd') def create_pdf(): response.headers['Content-Type'] = 'application/pdf; charset=UTF-8' …
user1050619
  • 19,822
  • 85
  • 237
  • 413
3
votes
2 answers

PDFLib opinions/experiences

My organization is considering PDFlib for dynamically creating PDF files (http://www.pdflib.com/) in our Java (Spring/Tomcat) environment. Does anyone have experiences that they can share about the pro/cons of this Library?
pcooley
  • 171
  • 2
  • 9
3
votes
1 answer

Is there a PDF library that can handle accessibility?

I am currently trying to parse the semantic structure of a PDF file. I believe the metadata added to make PDFs accessible is the correct way to go about it, but I can't find a library that will handle it cleanly. I've tried PDFLib TET on iOS but I…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
3
votes
2 answers

Rotating an Image Using PHP and PDFLib

I'm using this code to render an Image inside a box in the PDF I'm generating using PDFLib $p = new pdflib(); if ($p->begin_document("", "") == 0) throw new Exception("Error: " . $p->get_errmsg()); $p->begin_page_ext(0, 0, "width=792…
unni
  • 2,891
  • 4
  • 19
  • 22
2
votes
1 answer

fit image in ellipse in pdflib

I am using the pdflib library to generate the pdf for my online booking system. I'm new with pdflib library. I have tried a lot but not getting how I can set image into the ellipse with pdflib. I'm using $pdflib->ellipse ( 10 , 30, x_radius,…
Smit
  • 1,559
  • 17
  • 38
2
votes
1 answer

How to use a external Javascript library (PDF lib) in Apps script?

I need to modifie a PDF on a Apps script application. To do that I want to use a JS library : PDF-LIB my code : eval(UrlFetchApp.fetch("https://unpkg.com/pdf-lib/dist/pdf-lib.js").getContentText()); function modifyPdf() { const url =…
user18977096
2
votes
1 answer

Generating pdfs with pdflib all images are blurry

we are currently working on a PHP project for one of our customers where we had to increase the PHP version (5.6.40) and the version of PDFLIB (9.1.1.p3). Since then we have the problem that all images are blurred, as if there is a white veil over…
Michael Kröschel
  • 240
  • 1
  • 4
  • 13
2
votes
3 answers

how to remove a character in pdf using pdflib

I want to remove a hidden space in PDF using PDF lib. When I extract a word "Gregor" in PDF it comes out as "Gre gor", but I really want it like "Gregor". What could be reasons for this? Or, how can I avoid those "hidden spaces"?
kalai
  • 93
  • 1
  • 5
2
votes
0 answers

Convert SVG to PDF by PDFLib using PANTONE colors which are not reflecting in PDF?

I'm generating PDF by SVG using PDFLib library, and it's working as expected but not reflecting the pantone colors which was added in SVG with the syntax: SVG SAMPLE PATH
swap
  • 85
  • 4
2
votes
2 answers

PDFLib set_graphics_option how to pass list of colors in fillcolor option

How to pass multiple PANTONE Colors list to PDF library set_graphics_option function? optList = "fillcolor={spotname {PANTONE 281 U} 1}"; p.set_graphics_option(optlist);
Sunil Kashyap
  • 2,946
  • 2
  • 15
  • 31
2
votes
1 answer

PDFlib - change origin of text to top-left from default of bottom-left

In pdflib: $font = $p->load_font("Helvetica", "unicode", ""); $p->setfont($font, 12); $p->set_text_pos(100, 100); $p->show('My text'); First arguments of set_text_pos($x, $y) tells library where to position bottom-left corner of text…
temuri
  • 2,767
  • 5
  • 41
  • 63
1
2
3
17 18