I'm using iTextSharp at the moment and I would like to use a custom font.
Here's what I have so far:
PrivateFontCollection fonts;
FontFamily family = LoadFontFamily("TheFont.ttf", out fonts);
var reader = new PdfReader("KurtBonne_test.pdf");
var stamper = new PdfStamper(reader,
new FileStream("Kurt Bonne_test_withtext.pdf", FileMode.Cr...
Hi,
My requirement is to generate pdf where data retrieved from the database should be splitted between pages if data is more rather than creating entire data in new page.
For instance sometimes when a table has to be splitted on another page, some cells of the splitted row should appear on the preceding page while the others appear on...
I have a PDF form template which 20% of its size dedicated to header (head section) on the top and the remaining 80% of its height dedicated to a table filling with texts (body section), i want to extend the text to the next page body section if text does not fit to the previous body section page
Whats the best way to do that ?
...
I am using iText library for writing a PDF file.
I want to give page numbers and page header on every page of file
How can I do that?
...
HeaderFooter header =
new HeaderFooter(new Phrase("test", new Font(bf_times)), false);
header.setAlignment(Element.ALIGN_CENTER);
header.setBackgroundColor(new Color(0xB5091E));
document.setHeader(header);
I want to set the Font color for test to white (FFFFFF)
...
I have a PDF which displays a dynamic image (Chart created with JFreeChart). The chart is dynamic and hence can span across multiple pages. But I'm unable to split image across pages. I tried splitLate(false) as well. Please suggest solutions / ideas / workaround.
Ciao,
SKR
...
I create simple test PDF document using iTextSharp. I'm just using PdfContentByte to show some text. This is the code:
Document document = new Document();
Stream outStream = new FileStream("D:\\aaa\\test.pdf", FileMode.OpenOrCreate);
PdfWriter writer = PdfWriter.GetInstance(document, outStream);
document.Open();
PdfC...
I am reading in template PDFs, customizing them, and appending pages before outputting the final document. What I want to do is modify the elements in the template I load before I append it to the output.
In particular I want to hide or remove images (and potentially other elements). I'm not even sure if elements in the imported pag...
Hello.
I have a problem in my image extractor code. Any suggestions are appreciated.
I first get a stream from the PDF and check each of the objects, if an object is an image I save it.
The code is working properly and I can get all the images in the PDF. Some images are unusual because part of the image missing (hidden/erased) and ima...
Is there any documents and reference source codes for iText 5.0.3 (especially for HTMLWorker) ?
Another question is in iText 5.0.3, HTMLparser is obsoleted ?
...
Our web application generates PDF files from HTML pages on the fly, using the Flying Saucer/xhtmlrenderer library. Unfortunately, the source text may contain certain unicode characters (the cyrillic alphabet, for example) which are not included in the font we use for this. Changing to another font is not an option because of corporate de...
This was asked in 2008. Hopefully there's a better answer now.
How can you combine PDFs in ruby?
I'm using the pdf-stamper gem to fill out a form in a PDF. I'd like to take n PDFs, fill out a form in each of them, and save the result as an n-page document.
Can you do this with a native library like prawn? Can you do this with rjb and ...
Hi,
iTextAsian came out on Year 2007 and the latest iText 5.0.3 comes out recently with modification of package name.
I tried to create a Chinese font set.
bfCHS_MHei_Med = BaseFont.createFont("MHei-Medium", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
When the .class is run, it said Exception = com.itextpdf.text.DocumentException: Font ...
Where is the difference between properties PageNumber and `PageCount in com.itextpdf.text.Document ? The documentation I have found on this is not very clear.
*Note:*Same properties are also in class PdfWriter so I guess that those in Document only calls those in PdfWriter.
...
I am using iText and am very new to it. There have been several situations where I think I could have figured out the problem with my code if I knew what I was doing - I use examples without knowing the workings behind the code, and even as I look at the source I can't figure out what the programmer was thinking.
What does setTextMatri...
I am using iText and am very new to it. There have been several situations where I think I could have figured out the problem with my code if I knew what I was doing - I use examples without knowing the workings behind the code, and even as I look at the source I can't figure out what the programmer was thinking.
What are the values fo...
I'm building up a PDF using iTextSharp. I've seen a number of code example for putting an image into the flow of the document and having the text wrap around it (e.g. http://www.geek-tutorials.com/java/itext/itext_image.php).
What I want to do is have a text block that sits on the right hand side of my page, but I'd like the rest of ...
i need to create pdf creation server and i don't know what is the best tools to chose
java itext engine or c++ libharu , programming is not the problem c++ and java is the same to me .
but i need something that will be fast so c++ libharu is good but iText i know its more rebust and complete .
are those assumption true?
...
So question is how to import iText C# port in iPhone application development?
...
I am trying to extract text from a pdf file that has japanese characters. I am using iText for this purpose
However I am getting this exception.
Exception in thread "main" ExceptionConverter: com.itextpdf.text.DocumentException: Font 'KozMinPro-Regular' with 'UniJIS-UCS2-H' is not recognized.
Can anybody help me with resolving this iss...