Questions tagged as 'itextsharp'

3
answers

Build string with special characters

I'm building PDF's, and I need to print a string with special characters. For this I am constructing the string as follows (using iTextSharp ): PdfPCell teste = new PdfPCell(new Phrase("<O meu texto> '\u20ac'", fontetexto)); Now...
asked by 28.02.2014 / 16:05
1
answer

PDF formatting

I would like to format the sizes of your cells and your text for PDF export. protectedvoidExportPDF(){intcolCount=_gvConsultaRelatorio.Columns.Count-1;PdfPTabletable=newPdfPTable(colCount);table.HorizontalAlignment=0;int[]colWidths=newint[_gv...
asked by 02.06.2015 / 20:03
1
answer

How to add image on second page with setAbsolutePosition iTextSharp C #?

I wonder if you can use setAbsolutePosition to add an image on the second page of the document built in iTextSharp PDF. if possible, how?     
asked by 08.09.2016 / 16:23
2
answers

How can I convert an Html string into an image file?

I have a problem in ItextSharp to put certain HTML in the PDF because it has some limitations on CSS. So I thought about converting HTML to image and simply attaching it to my document. How can I convert, for example, one table to image? (...
asked by 01.02.2014 / 21:12
1
answer

Source not recognized in PDF generation

I'm using the ITextSharp library to create PDF's and I'm having problems with the source of the document, I have the error "Font is an ambiguous", I've looked in several places and all the examples end up giving the same error, fix this or do yo...
asked by 11.06.2016 / 20:47
1
answer

Performance ItextSharp

I am doing the reports using iTextsharp and the result has been acceptable, however when working with many records it has become slow. Currently I do this: I get the bank data (storing in DataTable ); In a foreach concatenate...
asked by 16.12.2017 / 14:32
1
answer

Text overwriting the header

I have tagged the C# tag since almost all the examples found on the internet are in this language and "translate" to vb.net is very simple. My report based on iTextSharp is dynamic. It has a header with the base informatio...
asked by 13.07.2015 / 21:29
1
answer

How to add an HTML element to PDF via iTextSharp?

itextsharp allows me to add your PDF elements, eg: _documento.Add(new Paragraph("Olá")); But I'd like to add some HTML elements, such as <h1> , or <p> , how can I do it? _documento.Add(????);     
asked by 22.07.2015 / 20:21
1
answer

How to print file without opening?

My system generates a PDF created in iTextSharp and I use the following code to open it: System.Diagnostics.Process.Start(nomeArquivo); nomeArquivo is the address of the PDF file. How do I get the file straight to the printer with...
asked by 22.01.2017 / 23:07
1
answer

Use IPagedList with multiple results

I'm using the IPagedList to do results listing in my application. But I'm trying to solve a problem: When I have many results, going to the controller function to read the results of another page gets heavy. That is, when I am loading my View I...
asked by 03.07.2014 / 18:01