FAQ Database Discussion Community


How can I get my PdfPTable's border and background color to display (iTextSharp)?

pdf-generation,itextsharp,pdfptable
As you can see, I've got a table which sports borders and a background color (Section 1): ...but section 3 lacks these sartorial refinements, and I don't know why. Here is the pertinent code for section 1 (which displays as it should): PdfPTable tblHeadings = new PdfPTable(3); tblHeadings.WidthPercentage = 100;...

How do I pass multiple StringIO into python-pdfkit?

python,pdf-generation,pdfkit,stringio
Goal: - Use django templateing language. - Render the template in memory (no disk writes). - Push rendered content to StringIO instance. - Use instance in python-pdfkit. Issue: I keep getting TypeError: coercing to Unicode: need string or buffer, instance found when trying to pass more than one file in...

Acrobat Reader would like to re-design my PDF file

pdf,pdf-generation
I am making my own PDF parser/maker. For the moment I am able to parse existing PDF file and even make a new PDF based on the early parsed data. But the problem is that when I open a new PDF file (made by my parser/maker) Adobe Reader would like...

How do I set margins with NReco.PdfGenerator?

asp.net,c#-4.0,pdf-generation,margins
I succeeded at changing many settings with NReco.PDFGenerator, but I do not understand how to set the margins. I found a .Margins option, yet it wants the type to be PageMargins. Below are some things I tried. How do I set the top, left, bottom, and right margins? HtmlToPdfConverter pdfConverter...

Reportlab Unordered List not showing bullets

python,tinymce,pdf-generation,reportlab,rml
Whenever users input unordered lists using TinyMCE and it will look like this under source code <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li></ul> When it renders to PDF using reportlab, it shows up without bullets all on the same line like this: item 1 item 2 item 3 Below is...

express.js - create a new pdf and force the download, without saving it on server

node.js,express,pdf-generation
I'm using express.js with pdfkit to generate a pdf and force a download to user. To this end I used the res.download function, that belongs to express.js. I could also pipe the pdf to res, but then the download wouldn't start. Ok, so what's my question: is it possible to...

how to add pagenumbers to every pdf page using itextsharp

c#,pdf,pdf-generation,itextsharp
here is What i want i want to add page numbers to every pdf page that i generated on the fly. i used on end page method but it did not worked out even when i added the doc bottom margin. I decided to add the page numbers after the...

Prawn - NoMethodError: private method `p' called for object

ruby-on-rails,ruby-on-rails-3,pdf-generation,prawn
I'm trying to generate a pdf and for some reason i keep getting a no method error when i try to render the pdf. Literally no idea what to do as all i'm trying at this point is to render a blank pdf. NoMethodError: private method `p' called for #<OrderPdfCreator:0x007f9365053a20>...

PDFKit: Unknown image format error for PNG

javascript,pdf,pdf-generation,pdfkit,node-pdfkit
I'm using the prebuilt version of PDFKit in the browser, and when attempting to add a PNG I get the following error: Uncaught Error: Unknown image PDFImage.open format.util.js:546 module.exports.image deflate.js:773 img.onload PDFrenderer.js:195 I'm converting my images to PNG on the server (to crop them into circles) and the mime type...

Provide tab title with reportlab generated pdf

python,django,pdf-generation,httpresponse,reportlab
This question is really simple, but I can't find any data on it. When I generate a pdf with reportlab, passing the httpresponse as a file, browsers that are configured to show files display the pdf correctly. However, the title of the tab remains "(Anonymous) 127.0.0.1/whatnot", which is kinda ugly...

Experiencing weird top margin when using fpdf Write()

php,pdf,pdf-generation,fpdf,fpdi
I'm trying to write text to a PDF and there seems to be a weird margin on the top of my page. This is my following code: require_once('fpdf.php'); require_once('fpdi/fpdi.php'); //Start the FPDI $pdf = new FPDI('P', 'pt'); //Set the source PDF file $source_file = $pdf->setSourceFile("template.pdf"); //Import the first page of...

Merge documents to create TOC in iText (Java)

java,pdf-generation,itext,toc
When creating documents with iText that need a table of contents, I have usually used a process where I create the main document in memory, create the TOC as a separate document in memory (using dummy links), merge them as a third document, and then use a PdfStamper to reconcile...

Divide page in 2 parts so we can fill each with different source

java,pdf,pdf-generation,itext,itextpdf
I need to create an User guide, where I've to put the content in 2 different language but on the same page. so the first half of the page would be in English while the second part would be in French. (In future they might ask for 3rd language also,...

Hierarchical Bookmark Generation in PDF using PDFBox library [closed]

java,pdf,pdf-generation,pdfbox
How can I create a hierarchical bookmark for a PDF like this: Root ---Node-1 -------Node-11 -------Node-12 .... ---Node-2 -------Node-21 .... I have a bidimensional array (I accept any kind of list/set for the example) with node names like this: 1 11, 12, ... 2 21, 22, 23, ... ... This...

Create bookmarks into a PDF file via command line

r,osx,pdf,pdf-generation
I am searching for a command line tool to add bookmarks to a PDF file. What I have is a page number and a label. Would love to create bookmark called label linking to page page number. Does any one know a command line tool (preferably OSX) for doing this?...

Prevent PDFsharp from saving an image file?

c#,pdf,pdf-generation,pdfsharp
I have prevented my program from saving images downloaded as files. (They are saved in Image variables instead). However, my application is slowed down significantly because the PDFsharp libraries save the image files anyway before drawing them to the PDF document. This is done deep within a hierarchy of calls...

Docx generation - reuse

pdf-generation,docx,xdocreport
I'm looking to generate docx and pdf documents in my java application. The best, most cost effective solution seems to be xdocreport - I've started using it and it's good. However, xdocreport doesn't seem to allow reuse of common sections across documents. Eg. I want to create two documents -...

Object Size changed after converting an object to ByteArray

c#,pdf,pdf-generation
I had a method to convert object to byte[] so as to populate PDF in browsers. I can see the inline PDF perfectly, however if I clicked "Save" button and open the downloaded file from my local it will give me the following message: "Adobe Reader could not open xx.pdf...

Javascript: How to create pdf file from HTML form or div

javascript,jquery,pdf,pdf-generation,tcpdf
I am new to Javascript / jQuery and am looking for a way to add a button to a page that allows the user to create a pdf from a pre-defined form or div (e.g. by adding a class). I did some research but could not find a way to...

When I download an IPython notebook as a PDF, which font does it use?

pdf-generation,ipython-notebook
Pretty simple question: I like the font of the markdown cells when I convert a notebook to pdf and I would like to know what it is. I don't know how to find out so if someone else does, or knows what it is, I'd be most appreciative. Thanks in...

how to convert WPS office word,excel file to PDF using ABCPdf

asp.net,.net,pdf-generation,abcpdf
how to convert the WPS Office Word document to pdf ,excel to pdf,ppt to pdf using ABC PDFin dot net. I try it from documentation Can ABCpdf convert my Microsoft Office documents to PDF? please any one can help me....

PdfBox issue while changing page

java,pdf,pdf-generation,rendering,pdfbox
I'm not a big fan of asking this kind of questions but well, it's been 3 whole days now trying to solve this bug on my code. I know it's a logic problem and I know how to solve it in my mind, but when it comes to translate my...

how to load blade view with tcpdf laravel 5?

pdf-generation,laravel-5,tcpdf
I'm trying to create a pdf using laravel 5 and https://github.com/elibyy/laravel-tcpdf Is there a way to load view and passing data to the view? something like $pdf = new TCPDF(); $pdf -> SetPrintHeader(false); $pdf -> SetPrintFooter(false); $pdf -> loadView('pdf.invoice',$data); // $pdf -> Output(storage_path().'/pdf/file.pdf', 'I'); thanks....

Efficient SVG rendering for PDFs (Java, Batik, Flying Saucer)

java,performance,memory,svg,pdf-generation
I'm rendering PDFs with XHTML and flying saucer. I've added SVG images (icons etc) as well. However, when I try to draw a lot of images (like 5000+) the rendering takes really long (obviously). There are only 10 or so different images to draw, but just repeating them a lot...

FPDF adding a page where its no supose to -PHP

php,pdf-generation,fpdf
i have this code that i have made using tutorials of FPDF <?php require('fpdf\fpdf.php'); class PDF extends FPDF { function Header() { //cabecera de la pagina //lgo $this->Image('simpca.png',10,10,25); //fuente $this->SetFont('Arial','B',15); //Movemos a la derecha $this->Cell(80); //Titulo $this->Cell(30,10,utf8_decode('Comprobante de impuesto sobre la renta')); //Salto de linea $this->Ln(20); //fuente $this->SetFont('Arial','B',10); $this->Cell(0,10,utf8_decode('Carrera el...

How do I rotate text in Quartz running on iOS so the origin does not move?

ios,objective-c,pdf-generation,quartz-2d
I am trying to create a PDF that will run on iOS devices (iPad only). I have created my PDF and I am able to write text and graphics into it. But I am stumped on writing rotated text such that the text will rotate but the origin will remain...

Urdu supported PDF library compatible with php

pdf,pdf-generation,tcpdf,fpdf
I have used FPDF and TCPDF and both seems not to work with URDU, for instance FPDF clearly doesn't support it, but on the other hand, TCPDF supports Persian and Arabic which have same font characters as Urdu. The problem arises when some characters are rendered properly and while others...

How to generate multiple reports in Grails using Export plugin?

grails,pdf-generation
I am using the Export plugin in Grails for generating PDF/Excel report. I am able to generate single report on PDF/Excel button click. But, now I want to generate multiple reports on single button click. I tried for loop, method calls but no luck. Reference links are ok. I don't...

Get PDF be written in the center of the page itextsharp

c#,pdf,pdf-generation,itextsharp
I had a fillable PDF document (2 pages in total) consisting of different sizes of page; the first page is 8.5 * 11 inches (612 * 792), containing fillable fields; the second page is 9.5 * 12 inches (684 * 864), containing No fillable fields. Even though the second page...

Manipulate PDF objects

c#,pdf,pdf-generation,itextsharp,pdfsharp
I am trying to manipulate a PDF, it functions as a template. What I am trying is replacing 'placeholders' in the PDF template with my data. So someone makes a PDF template in Scribus for example, and adds an empty image with the name "company_logo". My application sees an image...

How to add signature on a interactive pdf using adobe acrobat xi pro?

pdf,pdf-generation,tcpdf
How to add signature on a interactive pdf using adobe acrobat xi pro ?

Ordered and Unordered List is not rendered during the PDF Generation

pdf,pdf-generation,html-parsing,html-lists,itext
I am using iText-5.5.6 and XMLWorker-5.5.6. I am having strange issue during the PDF Generation where as I am not able to see the Ordered or Unordered list from the source HTML Content. I am getting the HTML Content from the Editor Control. And the content is like the below:...

Html to pdf with images using hiqpdf

c#,pdf,pdf-generation,html-to-pdf
I am converting a html with images and css files using HiQPdf 8.0. I have done it lots of times in MVC 4. Now I am working under MVC 5 and HiQPdf 8.0 and the problem is HiQPdf 8.0 is not loadin external files like css files and images. I...

Rotativa and Bootstrap Grid Styling

asp.net-mvc,twitter-bootstrap,pdf-generation,rotativa
I am working on an ASP.NET MVC 5 project and using Rotativa to generate PDF documents from Razor views. I can't seem to get Rotativa to render the the view properly using Bootstrap styling. I'm trying to style the view using the simple grid layout that Bootstrap does so well....

Generate PDF with base64 encode string

php,pdf-generation,tcpdf
I am using an API which provides me base64 encoded content. It is mentioned that we can download the PDF file by saving the content to a .pdf file. In the API documentation, it's clearly mentioned A PDF that contains the contents of the invoice. You encode the content with...

Why do the widths of my textboxes differ when the code is effectively identical (iTextSharp)?

c#,pdf-generation,itextsharp
I've got a PDF file that I'm generating using iTextSharp; here's a part of it that is causing me to suffer from called alopecia areata due to excessive head-scratching: Here's the code: The longer initial text box on the row (below "Tier 2 Signature..."): PdfPTable tblSection6_Row6 = new PdfPTable(5); tblSection6_Row6.WidthPercentage...

Birt 4.4.1 : Export to pdf does not display an image

ckeditor,pdf-generation,birt,rich-text-editor
My birt edition contains a picture, when I export to HTML, the image is displayed by against export in pdf does not work and the following message appears "The resource of this deferred item is not reachable . " I consulted your forum but I have not found a clear...

wkhtmltopdf on openSuSE: cannot connect to X server

php,symfony2,pdf-generation,twig,wkhtmltopdf
I need wkhtmltopdf on openSuSE. I have installed it via the repository. The version is 0.12.1. To render HTML with Symfony, I use the KnpSnappyBundle. By rendering a twig template, I got the following error message: The exit status code '1' says something went wrong: stderr: "wkhtmltopdf: cannot connect to...

GemBox error when generating PDF document

pdf-generation,gembox-spreadsheet
I'm having an unusual issue using GemBox.Document to generate a PDF version of search results in my application. It appears to happen when I have a larger number of records returned (though the number is still pretty small). The odd part is the code works if I generate a report...

Automatic Pagebreak in Dynamically generated TCPDF HTML page

php,pdf-generation,html-table,tcpdf,html-to-pdf
I am dynamically pulling content into an HTML table that is used to build a PDF using TCPDF. I need the page to auto-pagebreak when the content becomes too long for the page, but it seems to just keep appending to the first page even if it becomes longer than...

Could not copy the file “..\HiQPdf.dep” because it was not found

pdf-generation,html-to-pdf
I get this build error after trying to use HTML to PDF Converter Library for .NET. I copy over the dll, dep and xml files from the ZIPped folder downloaded from the website but when I compile my code, the HiQPdf.dep disappears. The FAQs from the website say to change...

When I want to use the python reportlab to save a pdf ,I get the trouble when using path with nonASCII characters?

python,pdf,pdf-generation,reportlab,python-unicode
i write some simply function to produce pdf from reportlab ,but when the path is nonASCII(for example chinese) there comes problems UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 3: invalid continuation byte. and when the path is all ASCII everything is fine. my code is very simply ,just...

Google Spreadsheet to pdf with watermark in Google script

google-apps-script,google-spreadsheet,pdf-generation,google-spreadsheet-api
I want to convert the spreadsheet with a watermark/background image, and send + save the generated pdf The converting to pdf worked, but I don't know if/how you can put an image to the generated pdf. This is what i got now: function ExportAndSent(subject, filename, email) { var ss =...

Jspdf Alignment/ layout not working

javascript,pdf-generation,jspdf
I am doing an HTML to pdf conversion with jspdf Here is my running code... http://codepen.io/anon/pen/dPZaYN You can see the output (below) is different from the PDF..There are no borders and alignment. I am not able to achieve simple layout / alignment , padding/float etc.. This is how it should...

NReco.PdfGenerator The pipe has been ended error on the server

asp.net-mvc-4,iis,pdf-generation,wkhtmltopdf
I'm using NReco.PdfGenerator for my PDF documents(that component is based on WkHtmlToPdf tool), my code allow me to create a pdf calling a function with the parameters controller, action, model: public static byte[] GeneratePdfDocument(System.Web.Mvc.Controller controller, string viewName, object model) { string result; controller.ViewData.Model = model; using (StringWriter sw = new...

itext: How set miminum height for splitted PdfPCell

java,table,pdf-generation,itext
On page I have table, and at the end of the page I have one paragraph, if rows contains small count of rows paragraph must still stay at the end of the page, but if rows too much and table take more than one page paragraph must be just after...

PDF Filter used to encode data in iTextSharp

pdf,pdf-generation,itextsharp
Currently I am working with iTextSharp library to generate PDF files and these files will be processed by some file processor. This pdf file processor is having some limitation with pdf filters which it will use to decode the data from the file. I am very keen to know which...

Bad caracters when generating pdf file with Knp Snappy

php,symfony2,pdf,pdf-generation,wkhtmltopdf
I am using Symfony2. When the pdf file is generated using this code : public function printAction($id) { // initialiser $demande $html = $this->renderView('PFETimeBundle:Demande:print.html.twig', array('demande'=> $demande) ); return new Response( $this->get('knp_snappy.pdf')->getOutputFromHtml($html), 200, array( 'Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="file.pdf"' ) ); } I get this content ( french caracters...

Easy file format for niche text printing

c,image,text,printing,pdf-generation
I have ahead of me a fairly specific task, and I was hoping someone on this site can give me the benefit of their experience I have a text file somewhere with some 17000 lines of text. This text will need to be printed very specifically on around 80 double...

How to add SVG image to PDF built with HTML and Flying Saucer library (and Batik)?

java,svg,pdf-generation,flying-saucer,batik
Im working on generation of PDFs with XHTML using the flying saucer library (old but open source). I got that working but I also want to add SVG images. Ive started working on integrating batik to try and get it to work but I'm running into issues. The SVG images...

How to properly generate an A3 sized pdf from jpg with convert

imagemagick,pdf-generation,image-resizing,imagemagick-convert
On linux using the imagemagick tool convert, I want to convert my large jpg files into A3 pdfs <= 10MB in order to print those files with the best quality at the store. When running: $ convert summer-bokeh.jpg -quality 100 -density 300 -resize 2480x3508! summer_resized.pdf I'm trying to force the...

footers html content is not getting printed in wicked_pdf + rails

ruby-on-rails,ruby-on-rails-4,pdf-generation,wkhtmltopdf,wicked-pdf
I am using wicked_pdf to generate pdf for my rails application. I am trying to render a dynamic html content at the footer of my generated pdf. I have implemented following code in controller: #app/controllers/receipts_controller.rb def generate_receipt html = render_to_string(:action => 'print_receipt', :layout => false) pdf = WickedPdf.new.pdf_from_string(html, :encoding =>...

Which document type is better as Email Attachment - Word or PDF doc?

java,design,pdf-generation,documentation-generation
We need to send a document as an email attachment to customers from a J2EE application. I am debating the pros and cons of sending a Word document vs PDF document. Any suggestions or particular issues you guys found with either of those. We are already using docx4j somewhere else...

Show content on only one page

java,pdf,pdf-generation,ofbiz,apache-fop
I have three contents to render PDF(in sequence): C1, C2 and C3. C1 and C3 can be rendered by more than one page. C2 need only one page. The problem is the C3 render on the page of C2. Is there any options or configurations to the page of C2...

How to avoid the “too deeply nested” error when creating PDFs with Sphinx?

python,documentation,pdf-generation,latex,python-sphinx
I have a fairly complex project with a fairly large documentation. Converting the normal user guide to PDF with Sphinx via make latexpdf works quite well. However, if I also want to include the library reference with all function, class, and module documentations, the command fails with: ! LaTeX Error:...

FOP, xsl-fo: disable line break

pdf-generation,line-breaks,xsl-fo,fop,apache-fop
With xsl-fo, I want to generate a pdf-file. The text for the pdf-file is a simple ongoing plain-text without any line-breaks in it. When I generate the pdf, there are line-breaks in the pdf, so after copying the text into Notepad, there are those line breaks, too. What I want...

iText parser exception for XML -> PDF conversion

pdf,pdf-generation,itextsharp
I have a basic .vm file which I populate with XML, and then use iText to convert it to a PDF doc: <?xml version="1.0" encoding="UTF-8"?> <!--<!DOCTYPE itext SYSTEM "http://itext.sourceforge.net/itext.dtd">--> <itext creationdate='${System.DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")}' producer="X"> <paragraph align="Default" size="18.0" style="bold" indentationleft="0.0"> Test </paragraph> </itext> The above is parsed absolutely fine. However something slightly...

Map Object Model to XML

c#,xml,asp.net-mvc,pdf-generation
I am working on a generation of PDF based on a ASP.Net MVC form, the datamodel that I am passing to the Controller is a complex object and I need to map it to XML and then generate a PDF from it. The problem is that I don't know what...

ValidationException during PDF generation from XML using libxslt

xslt,pdf-generation,libxslt,docbook-xsl
I am using Docbook 1.78 and xsltproc (libxslt 1.1.26 with libxml 2.7.8) in command line to generate a fo-file from an XML file. My aim is to generate a PDF using Apache formatted output processor (fop; version 1.1). My XML-Input file: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE book SYSTEM "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <book lang="de"...

How do I programmatically automate .rmd file to PDF using knitr? [closed]

r,pdf-generation,reporting,knitr,rdoc
I can produce my reports rather quickly thanks to knitr and RDoc; however I want to streamline my process a little more by automatically generating the documents in my R script. Do ya'lls have any solutions or resources I could use to further investigate to create a solution? ...

What is the smarter solution to retrieve the number of pages of this created PDF file?

java,pdf,pdf-generation,itext
this is one of my first time that I use iText and I have a dount about the correctness of my solution. Into an application I create a PDF composed by many pages (some hundreds) and I save it on a file, doing something like this: String result = outputPath...

iTextSharp - Paragraph Line-Height

c#,pdf,pdf-generation,itextsharp,typography
I'm currently working on a PDF but I am facing issues trying to increase the line-height of a Paragraph, this is the code that I have now: var tempTable = new PdfPTable(1); cell = new PdfPCell(new Paragraph("My Account", GetInformationalTitle())); cell.Border = Rectangle.NO_BORDER; tempTable.AddCell(cell); cell = new PdfPCell(new Paragraph("http://www.google.com/", GetInformationalOblique())); cell.Border...

PDF generated by iText -> text missing after saving PDF to local drive

java,pdf,pdf-generation,itext
I am producing a PDF file in a HttpServlet with itText. Adding a Text on the canvas. If I open the url the PDF is shown correctly with the text. Also if I print it direclty from the browser, the text is visible on the printed paper. If I download...

how to add background color for border of itextsharp pdf page

c#,asp.net,.net,pdf-generation,itextsharp
How can I add back ground color [not border line color] at out side of border[four sides] of itextsharp pdf page .. I tride with this .. but Its not working for back ground color of out side of border.. content.EoFill(); content.EoFillStroke(); content.Fill(); content.FillStroke(); but not working public class pageborder...

Create dynamic pdf documents on iOS

ios,objective-c,swift,pdf,pdf-generation
How can I create dynamic pdf documents on iOS? I can be done using either objective-c/swift but should support dynamic content and different number of pages for each document. Every PDF document creation should be done "on the fly" without the use of templates.

PDF Parsing — Extract single page

pdf,pdf-generation
I recently wrote a program in Python that allowed me to read in a PDF, take some commands from the user, and output part or all of the original PDF with pages in different orders. You could also select which pages you were interested in. At the time, there was...

How to put the ByteArrayInputStream content into a PDF using iText?

java,pdf,pdf-generation,itext,bytearrayoutputstream
I have the following situation, into a method I have: ByteArrayInputStream fis = new ByteArrayInputStream(Bean.getValoreString("PDFmulti", "PDF").getBytes()); As you can see fis varialbe is a ByteArrayInputStream and Bean.getValoreString("PDFmulti", "PDF").getBytes() returns a byte[] So now I need to put the content of the fis object into a PDF using iText. What can...

How to add text on the last page through pdfcontentbyte? [closed]

c#,pdf-generation,itextsharp
I'm creating a PDF document using iTextSharp and it contains a table that spans multiple pages. After adding the table, my PDF document has 3 pages. Now what I want to do is: Add some text on the last page through Pdfcontentbyte. ...

Using PHP CURL to display PDF file is just producing strange text

php,curl,pdf-generation
I'm using PHP CURL to access PDF files, and everything is working properly with the exception of the end result being unreadable. My code is as follows: $cookie = 'cookies.txt'; $timeout = 30; $url = "http://www.somesite.com/sample_report.pdf"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10);...

Replace all font glyphs in a PDF by converting them to outline shapes

pdf,fonts,pdf-generation,ghostscript,mupdf
I am looking for a way to 'outline' all text/fonts in a PDF file, i.e. convert them to curves. I would prefer to do this without having to convert the PDF to PostScript and back. Also, I would like to use free lightweight cross-platform tools that can be automated from...

Setting character spacing with PDFBox

java,pdf,pdf-generation,pdfbox
I'm currently using Java and the PDFBox library to create some PDFs on the fly. I need to be able to set the character spacing/tracking of some text but can't seem to figure it out. It looks as there is a method to do so : http://ci.apache.org/projects/pdfbox/javadoc/index.html?org/apache/pdfbox/util/operator/SetCharSpacing.html But I'm not...