Questions tagged as 'itextsharp'

1
answer

Format line with itextsharp

How can I build a line with different formatting in itextsharp? I tried this way: Paragraph paragrafo = new Paragraph(Texto, new Font(Font.FontFamily.COURIER, tamanho, estilo)); doc.Add(paragrafo); But with each "add" it plays on a new l...
asked by 19.01.2018 / 14:20
0
answers

How to write from the popup to the parent page?

I'm doubtful in the following situation, I'm returning a PDF to popUp (son page). I would like to close this Popup and Write (Write (pdfDoc) on the parent page) //A propriedade ContentType especifica o tipo de conteúdo HTTP para a resposta. /...
asked by 17.01.2018 / 12:56
1
answer

PDF generated with iTextSharp adding image gets poor quality

I have an image file that I need to pass to PDF and for this I am using iTextSharp . I'm trying to do this in the following way: private static void Main(string[] args) { using (var stream = new FileStream("document.pdf", FileMode.Cr...
asked by 22.11.2017 / 00:47
0
answers

ItextSharp - That assembly does not allow partially trusted callers

I've been trying to solve this problem for days, to no avail. I saw that many people have solved this problem by compiling the itextSharp dll by adding the [assembly: System.Security.AllowPartiallyTrustedCallers] line in the assemblyinfo.cs file...
asked by 12.12.2016 / 14:55
1
answer

Place pagination when generating PDF with iTextSharp

I'm using iTextSharp to generate PDF's in my application. Now a problem has arisen: I am printing listings and when there is more than one page I would like to print a footer with page numbers (eg "Page 1 of 4"). I found some examples but they...
asked by 02.04.2014 / 10:49
0
answers

How to put two images in itext.PdfTemplate

I would like to know if anyone could help me I need to create a pdf report in the header that would have two images one right the other one the left and the title in the center ..     
asked by 12.09.2016 / 18:12
1
answer

More efficient code to make a iTextSharp template in ASP.NET MVC?

I just did a project to generate PDF's using the iTextSharp library in ASP.NET MVC (C #), however, I would like to know which code is most efficient and easy to use to have a template that generates PDF using iTextSharp in ASP. I need to be able...
asked by 07.07.2016 / 10:38
1
answer

itextsharp does not add pages in loop

I put my code inside a FOR to display several pages according to its count. It turns out that it shows only the last page, not all that it should. For s = 0 To 9 html = "<p> "& s & "</p>" 'PDF U...
asked by 29.01.2016 / 10:21
0
answers

How to convert a .aspx page to PDF and attach to email in VB.NET

I have a Link that opens a ticket on an .aspx page. I need to convert this link to PDF, that is, convert the Boleto to PDF and attach it to the email that I will send via VB. I tried the steps in this tutorial: link But it only explains how...
asked by 14.08.2015 / 17:38
1
answer

iTextSharp - Dynamic table

I'm trying via C # and with iTextSharp create a pdf doc with the following structure: I have a table with 3 Rows In the 1st I have X columns with X years. In the 2nd a Row with the Months (J, F, M ... etc) for each year, below I have another Row...
asked by 05.05.2015 / 18:53