You can use BaseFont.getWidthPoint(String text, float fontSize)
to get the width of the string in pt.
Or put the string in a Chunk and do chunk.getWidthPoint()
More Related Contents:
- PDF – Remove White Margins
- Converting HTML to PDF using iText
- ITextSharp insert text to an existing pdf
- How to merge documents correctly?
- Convert all sheets to PDF with Google Apps Script
- How to fill out a pdf file programatically? [closed]
- Editing Hyperlink and Anchors in PDF using ITextSharp
- How can I convert XHTML nested list to pdf with iText?
- How to implement custom fonts in TCPDF
- Unicode in PDF
- How to enable LTV for a timestamp signature?
- How can I flatten a XFA PDF Form using iTextSharp?
- How can I serve a PDF to a browser without storing a file on the server side?
- What is the smallest possible valid PDF?
- iTextSharp – Convert word doc/docx to pdf
- Can I hide the Adobe floating toolbar when showing a PDF in browser?
- Why is one of these two itext 7 signed and validated document is not valid with Adobe DC reader?
- Creating page headers and footers using CSS for print
- What does “Not LTV-enabled” mean?
- Removing Watermark from PDF iTextSharp
- Cropping a PDF using Ghostscript 9.01
- iTextSharp-generated PDFs now cause Save dialog in Adobe Reader X
- How to download single sheet as PDF to my local device directly (not export to Google Drive)?
- PDF text extraction from given coordinates
- How to open pdf file in Windows Phone 8?
- I want to sign a pdf document with ITextSharp and return ltv pdf enabled file
- How to extract Highlighted Parts from PDF files
- How to extract images from a PDF with iText in the correct order?
- External signing PDF with iText
- Adding table to existing PDF on the same page – ITEXT