Most voted "itextsharp" questions
iText is a library that allows you to create, adapt, Inspecione and maintain documents in Portable Document Format (PDF). If the question is not about "iTextSharp", do not use this tag even if you are using "iTextSharp" in your project.
Learn more…47 questions
Sort by count of
-
4
votes3
answers2237
viewsConstruct string with special characters
I am building PDF’s, and I need to print a string with special characters. I am constructing the string as follows (using iTextSharp): PdfPCell teste = new PdfPCell(new Phrase("<O meu texto>…
-
4
votes1
answer606
viewsPDF formatting
I would like to format the sizes of your cells and your text for PDF export. protected void ExportPDF() { int colCount = _gvConsultaRelatorio.Columns.Count - 1; PdfPTable table = new…
-
3
votes2
answers646
viewsHow do 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 in relation to CSS. So I thought of converting HTML into image and simply attaching it to my document.…
-
3
votes1
answer174
viewsSource is not recognized in PDF generation
I am using the Itextsharp library to create PDF’s and I am having problems with the source of the document, I have the error "Font is an ambiguous", I have looked in several places and all the…
-
3
votes1
answer245
viewsHow to add image on second page with setAbsolutePosition iTextSharp C#?
I would like to know if it is possible to use the setAbsolutePosition to add an image to the second page of the document built in iTextSharp PDF. if possible, as?
-
3
votes1
answer504
viewsText overwriting the header
I tagged C# because virtually all the examples found on the internet are in this language and "translate" to vb.net is quite simple. Man report based on the iTextSharp is dynamic. It has a header…
-
3
votes1
answer142
viewsPerformance Itextsharp
I’m doing the reports using iTextsharp and the result has been acceptable, but working with many records has become slow. Currently I do so: I capture the database data (storing in a DataTable); In…
-
2
votes2
answers1033
viewsChange a detachable PDF field
I’m working on MVC 4 and installed the iTextSharp to create PDF’s, until everything well. But what I am doing is replicating a PDF that already exists, to fill the respective fields required in this…
-
2
votes1
answer1806
viewsCell width Pdfptable iTextShar MVC 4
I’m using the iTextSharp to create PDF’s in my application. However I have to recreate a table, where I have to set the size for a column rather reduced. Follow the image that shows the size with…
-
2
votes1
answer728
viewsGenerate PDF with specific source
I have a report that already works. I need to change the source to "Garamond" (already installed). The references found speak about other more flexible properties, with for example changing the…
-
2
votes1
answer393
viewsHow to add an HTML element to the PDF via iTextSharp?
itextsharp allows me to add your PDF elements, example: _documento.Add(new Paragraph("Olá")); But I would like to add some elements of HTML such as a <h1>, or a <p>, how can I do?…
-
2
votes1
answer141
viewsUsing Ipagedlist with multiple results
I am using Ipagedlist to list results in my application. But I’m trying to solve a problem: When I get a lot of results, going to the controller function to read the results from another page gets…
-
2
votes1
answer1176
viewsHow 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 send the…
-
2
votes1
answer1225
viewsHow to insert text into an existing PDF?
I have a contract template ready and with nothing filled out. I need to fill out the requested information with what will be typed in some TextBox. How can I do this using iTextSharp?…
-
2
votes1
answer131
viewsGenerate multiple PDFS via Itextsharp
I am developing an application that builds pdf’s dynamically through the Itextsharp library. It is working and providing the download correctly, but would like to generate a larger amount of…
-
2
votes1
answer138
viewsiTextSharp - Add TIFF image to a PDF
I am using Magick.NET-Q16-Anycpu version 7.12.0 and iTextSharp libraries. First I open the image with Magick and save this TIFF page in a folder. Then I use this image to add it to the PDF. I’ve…
-
1
votes1
answer165
viewsError trying to generate PDF file with the same name
When trying to generate PDF files, I often come across as the error: Mensage: The process cannot access the file’D:.... 23381708.pdf' because it is being used by Another process. Which tells me that…
-
1
votes0
answers253
viewsUse a . tlb that has a dll . net dependency
I have developed a library that uses dll itextsharp, however this library I wrote in VB.Net will be used in a VB6 program and therefore it is necessary to generate a tlb of the same. The doubt…
-
1
votes1
answer123
viewsIs there any way to give the columns an automatic width?
I’m assembling a report via Itextsharp and have read about how to assign specific widths to Pdfptable columns, however I would like this width to be automatically assigned according to the content…
-
1
votes1
answer171
viewsHow to avoid reducing the width of the columns?
I’m using the itextsharp library for PDF reporting and although I can generate documents with a nice layout and assign specific widths through an array of dimensions :…
-
1
votes1
answer200
viewsiTextSharp deleting document if there are no pages
Well, I have an application that at a certain point generates a PDF with all JPG’s, however, instead of choosing a JPG I choose an Excel file it just moves this file. Right, I’d like to get the…
-
1
votes1
answer631
viewsError converting HTML to PDF using Xmlworkerhelper
While exporting the HTML file to PDF using iTextSharp and Xmlworker error occurs in some situations saying that certain tag is not closed and searching found this post How to Convert HTML to Valid…
-
1
votes3
answers1121
viewsFormat line with itextsharp
How can I build a line with different itextsharp formatting? I tried that way: Paragraph paragrafo = new Paragraph(Texto, new Font(Font.FontFamily.COURIER, tamanho, estilo)); doc.Add(paragrafo); But…
-
1
votes1
answer69
viewsSubmit ITEXTSHARP Report in a Form
How to submit the itextsharp report in a form? No need to save it in PDF. Just display it in a form. The same way we can do in reportviewer.
-
1
votes1
answer718
viewsHow to convert image size to A4 format with iTextSharp
Please, I am generating several images in a single PDF and it is running correctly. What I can’t do is leave the A4 size on the images because they’re too big, like 80% of the standard size. How can…
-
1
votes0
answers129
viewsiTextSharp PDF coming blank
Good afternoon guys, I have the following code: public void GerarPDF(long id) { string HTMLemString = RenderizaHtmlComoString("~/Views/item/item.cshtml", id); var regex = new…
-
1
votes0
answers103
viewsGet DPI definition of image extracted from PDF
I’m using the itextSharp to extract images from PDF files. I used this code as a basis: https://psycodedeveloper.wordpress.com/2013/01/10/how-to-extract-images-from-pdf-files-using-c-and-itextsharp/…
-
1
votes0
answers27
viewsI need to put an ID in the print file using C# and Itextsharp
Edit: if anyone has the same problem as me, I solved by playing the " Pdfptable ID = new Pdfptable(1)" out to be a global var and put the "pdfdoc.add(ID)" part out of the while So, for my work, I…
-
0
votes2
answers1937
viewsiTextSharp - Dynamic table
I am trying via C# and with iTextSharp create a pdf doc with the following structure: I have a table with 3 rows In the first I have X columns with X years. In the 2nd one Row with the Months (J, F,…
-
0
votes1
answer230
viewsMore efficient code for making an iTextSharp template in ASP.NET MVC?
I only 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…
-
0
votes1
answer685
viewsHow to read tables from a pdf?
I am trying to read tables from a certain pdf file, using the iTextSharp, I found many answers that indicate using the LocationTextExtractionStrategy, only that my table may vary position along PDF…
-
0
votes0
answers178
viewsHow to place two images in itext.Pdftemplate
I wonder if someone could help me need to create a pdf q report in the header would have two images one right the other left and the title in the center..
-
0
votes0
answers1101
viewsHow to convert a page . aspx to PDF and attach in email in VB.NET
I have a Link that opens a boleto on a .aspx. I need to convert this link to PDF, IE, convert the Boleto in PDF and attach it in the email I send via VB. I tried the steps of this tutorial:…
-
0
votes1
answer222
viewsitextsharp does not add loop pages
I put my code inside a FOR to display several pages according to its count. Turns out it only shows the last page, and not all that should. For s = 0 To 9 html = "<p> "& s &…
-
0
votes1
answer82
viewsHow to print a flumulario containing tables (grid) via c#
I need to generate a crediario card impression similar to the one that is attached. I have no idea how to do this, what tool to use. Could someone give me a hint? Thank you very much.…
-
0
votes0
answers55
viewsHow to write from the popup to the parent page?
I am in doubt in the following situation, I am returning a PDF to the popup (Page son). I would like to close this Popup and Write(pdfDoc) on the parent page) //A propriedade ContentType especifica…
-
0
votes1
answer2058
viewsHow do I place an image in Itextsharp?
I’m trying to put an image in the pdf, but it’s an error because Itextsharp’s Image class only accepts Uri, and what I have is an incoming stream that I’ve already converted to System.Drawing.Image.…
-
0
votes0
answers100
viewsVb.net and Itextsharp
Good for everyone, I have a problem, through a list I am trying to create a PDF, with the title and with the content. Example: Title 1 Description title 1 My problem is that if you have more than…
-
0
votes1
answer203
viewsHow to generate multiple PDF dynamically through Itextsharp
I am creating a c# method in which the user enters a data listing and assembles a pdf document for each data entered. I’m using the iTextSharp library. On the first data it generates the PDF as…
-
0
votes1
answer121
viewsC# - Problems with Scriptmanager after Response
Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=Comprovante.pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache);. -- código de…
-
0
votes1
answer55
viewsFill PDF checkbox with iText7
Hello! I’m trying to check a checbox of my PDF, but I’m not getting it right. Instead of just checking one of the checkboxes, he’s always checking all 3 What I would like: What I am getting: PDF in…
-
-1
votes1
answer128
viewsWhich version of Itextsharp
Good Morning, Everybody Which version of Itextsharp can I download to use in Microsoft Visual Studio 2013 for Asp net mvc
itextsharpasked 9 years, 1 month ago user34823 15 -
-1
votes1
answer27
viewsLOCK problem of file recorded by Pdfwriter
I am writing a file to the server (ASP.NET) which is a PDF and for this I am using Itextsharp. Everything is working correctly my problem is that when I try to generate the second PDF it gives me…
itextsharpasked 5 years, 9 months ago Eduardo 127 -
-1
votes1
answer873
viewsPDF generated with iTextSharp adding image gets bad quality
I have an image file that I need to pass to PDF and for this I am using the iTextSharp. So I’m trying this way: private static void Main(string[] args) { using (var stream = new…
-
-1
votes0
answers10
viewsHow to write a new pdf every 4 pages of the main pdf c# Winforms
I have a pdf document with more than 1000 pages and want to separate it into different pdfs every 4 pages, how can I do this? public string ReadPdfFileForTreatment2(string fileName) { StringBuilder…
-
-1
votes1
answer187
viewsHow not to break the page on iTextSharp split my table into two pages
I would like to have my pdf put on the next sheet the table that did not have enough space in the last and did not divide this table in the two sheets. if (reader.HasRows) { while (reader.Read()) {…
-
-2
votes1
answer42
viewsHow to compare if an excel text is equal to part of the name of a pdf file in C#?
I would like to start a code that reads a column in an excel spreadsheet that contains CNPJ numbers and compares with PDF file names in a folder. Example: value in an excel cell verses PDF file…