Click here to Skip to main content
15,891,657 members
Everything / PDF

PDF

PDF

Great Reads

by Vahid_N
PdfReport is a code-first reporting engine which is built on top of the iTextSharp and EPPlus libraries.
by Marco Merola
Creating PDF documents from XML
by Shenwei Liu
Creating PDF reports for grouped or non-grouped data lists in C# with many custom options and configurations (providing source code with .NET Framework 4.6.1 and .NET Core 3.1)
by Simon Jackson
Syncfusion’s "Succinctly" series, one of the largest free (and still growing) set of technical books covering everything from languages, to source control systems and beyond.

Latest Articles

by FormerBIOSGuy
This article describes a set of batch, AWK, and PostScript files that together allow you to create personalized, 12-page PDF calendars for some year.
by Petrov Vladimir
Simple solution for PDF performance from Image files of any kind
by Uzi Granot
PDF File Analyzer is designed to read, parse, and display the internal structure of PDF files. Version 2.1 supports encrypted files.
by Uzi Granot
PDF File Writer is a C# .NET class library allowing applications to create PDF files. The code was developed for VS 2022 and .NET6. The latest update is a major upgrade.

All Articles

Sort by Title

PDF 

20 Mar 2023 by Luigi Sansone
Hi guys, i'm a newbie tryn to develop a WEB App in Node JS. What i'm doing is downloading a PDF file from a FTP server and merging it(using PDF Merger plugin) with an other one coming from the Front End User. Here is the part of my code throwing...
27 Nov 2013 by Siva Hyderabad
I want to know why Type 'iTextSharp.text.Table' is not defined. I already imported iTextSharp.text , iTextSharp.text.pdf, iTextSharp.text.html, iTextSharp.text.html.simpleparser.
27 Nov 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer- Type 'iTextSharp.text.Table' is not defined[^].Quote:In searching the Internet the only thing I could find about iTextSharp.Text.Table was example code. I looked at the SVN on SourceForge and there is no Table that is part of the text namespace, it looks like it was depricated in the...
21 Jun 2013 by hansoctantan
Hello eveyone, I have install a free software that change the protected PDF Files to unprotected. The software run by dragging a PDF files in a desktop icon "PDF unlocker, drop PDF files here".When I try using it in Windows Run "C:\Program Files\Freeware PDF Unlocker\unlockpdf.cmd"...
21 Jun 2013 by Rajesh Anuhya
use like this to get the Shell window Shell "c:\telnet" ,vbNormalFocus Refer the below link,http://www.developerfusion.com/article/9/shell-and-shellexecute-function/[^]Thanks--RA
21 Jun 2013 by bayotle
I can't remember executing a shell directly, my programs builds them on the fly.Try the following and see if it works....shell chr(34) & "C:\Program Files\Freeware PDF Unlocker\unlockpdf.cmd" & chr(34) & chr(32) & chr(34) & "C:\Documents and Settings\USER001\Desktop\00000001.pdf" & chr(34)
21 Jun 2013 by Mike Meinz
Does this work?shell chr(34) & "C:\" & CHR(34) & "Program Files" & CHR(34) & "\" & CHR(34) & "Freeware PDF Unlocker" & CHR(34) & "\unlockpdf.cmd" & chr(34) & chr(32) & chr(34) & "C:\" & CHR(34) & "Documents and Settings" & CHR(34) & "\USER001\Desktop\00000001.pdf" & chr(34),vbNormalFocus
19 May 2015 by Member 7862880
How to set auto fit model in 3d View when I activate 3d view in pdf?(like as 'Parts option -> Fit Visible')Please help me..
6 Jan 2016 by Member 12248279
There is a third-part application that houses a list of PDFs. The only way to open them, is to double-click each item one at a time, or press Enter on a highlighted item. Once the PDF opens, a temporary file is saved in C:\Temp. I created a tool that halfway works. It basically uses sendkeys to...
10 Feb 2020 by Shenwei Liu
Creating PDF reports for grouped or non-grouped data lists in C# with many custom options and configurations (providing source code with .NET Framework 4.6.1 and .NET Core 3.1)
16 Jan 2012 by Erion Pici
Generating automatized PDF reports based on Docx templates and Business-Logic XML-serialized data
16 Apr 2015 by JFMDev
Presenting TuringFonts, a way to make uncrawable and uncopiable texts
14 Aug 2013 by Martin-Hallonqvist
This article describes how I wrote a small Windows service for handling the task of sorting and renaming scanned (and run throgh OCR) documents depending on contents.
4 Dec 2017 by Subhash Tripathi
I want to convert html to pdf in mvc . for this i am use Abcpdf converter .i am use following code but its gives error ""Unable to render HTML. Unable to load page. (HTTP 403)." . Every time we i run this following line gives error and brake execution " theID =...
4 Dec 2017 by Jochen Arndt
See HTTP 403 - Wikipedia[^]. AbcPdf is not a web browser. It might not work as such regarding redirections which are used by the Yahoo URL from your example. If you type that URL in your browser, you will notice that there is a redirection (in my case to "https://de.yahoo.com/?p=us"). You can...
31 May 2021 by Member 15224382
In my VB.Net project the ActiveX objects are created in .js as shown below and it works well on IE but not on Edge Chromium and Chrome browser. function createActiveXObj(){ if(!fs) fs = new ActiveXObject("Scripting.FileSystemObject"); ...
31 May 2021 by Dave Kreskowiak
ActiveX isn't supported in any modern browsers today because they are considered security risks.
31 May 2021 by Patrice T
Quote: Activex control is not working on edge and chrome browser created in VB.NET project Activex have never work on browsers other than EI and will never. You can consider Activex as a dead technology. As MS start to uninstall EI in latest...
24 Jul 2015 by Member 11770025
PDFDocument doc = new PDFDocument("your-license-key"); frmDigital f = new frmDigital(); f.txtPDFLoad.Text = theDialog.FileName; string path = theDialog.FileName.ToString(); f.txtPDFLoad.Text = path; // Load an existing PDF ...
10 Nov 2017 by Success Savada Muthu
Hi friends! How to generate digital signature in PDF and verify the certificate using private file(.pfx) and public file(.cer) authentication,I am tried too many ways but not clear explanation,if you know share me. Hopefully SavadaMuthu Saravanan What I have tried: String pfxPath =...
21 Jan 2023 by Andre Oosthuizen
In order to add a digital signature to a PDF, you can use a library such as iText or PDFBox. iText has some open source capabilities, albeit limited. I think you will probably end up paying some kind of fee. Here is an example of how you can...
21 Jan 2023 by FIPL Developer
I get the task to add a digital signature on any PDF file. After hours of googling, I found that there are few libraries that help me to achieve this task easily. (We have our application on dot net 2.0) Below I am listing all the libraries I...
20 Dec 2013 by Member 10070308
I want to add Page bookmarks to an existing PDF using iTextSharp Libraby in C#. It should not make any changes to the PDF file, ie Add New Page etc.Please help
19 Sep 2013 by jawad59
I have used itextsharp.dll to convert html to pdf and now I am in search of method to display page-number on footer of pdf
19 Sep 2013 by codestar007
add-page-number-to-pdf-document-itextsharp[^]
7 Apr 2014 by CBadger
Hi,I have asked a similar question in the past but I have solved it. This question is regarding the (Let's call it) "Miscommunication" between C# and PDF(ITextSharp). I am hoping someone can assist me in this.The scenario is that in the PDF coded file there is already font included and...
7 Apr 2014 by CBadger
I solved it myself!But for those that may stumble upon this question I will post the answer for you.Seems the coder before me change the font for the specific field and that field does not support special characters.BaseFont fieldFontRoman =...
6 Dec 2017 by Mahesh Devikar
I am new to this topic.What i have done so far,1) I have read existing pdf document2) I have created copy of existing pdf using pdfStamper of iTextSharp3) and create three layer on new pdf using iTextSharp.Now i want to open this pdf in adobe reader and i want to add comments...
6 Dec 2017 by juceboper
string originalFile = "Original1.pdf"; string copyOfOriginal = "Re-copia.pdf"; byte[] bytes = Convert.FromBase64String(archivo); System.IO.FileStream stream = new FileStream(originalFile, FileMode.CreateNew); ...
29 May 2013 by ganesh961991
I have designed one form in Adobe lifecycle designer. In that form i have button to export pdf to xml.it is working in adobe lifecycle pdf preview screen,but if you open in adobe reader export functionality is not working.How the end user will export pdf to xml. Please kindly suggest me any...
24 Oct 2013 by SteveT808
Hi Ganesh,You need to make sure that the form properties>Defaults > PDF render format is set to Dynamic XML form first. Sometimes the preview in Livecycle is dynamic but the default is static.Following on from there, you may need to enable reader rights on the form for users to be able...
20 Jun 2013 by Member 2629903
Hi,Required help to view and edit the PDF files in windows form.I want to view the PDF and add the bookmarks in existing PDF file.Thank You.
20 Jun 2013 by Richard MacCutchan
iTextSharp[^] is a free library that will help you.
20 Jun 2013 by Prasad_Kulkarni
You can make it with Itextsharp[^]Have a look on similar thread: here[^]Also check out an article on CP: ITextSharp Helper Class[^]
20 May 2010 by pguptaMay2010
Which version of the PDF documents are supported by PDFbox0.7.3, As we upload a document of version Adobe Professional writer 9.0 and while creating the difference files to compare, we will extract the text data from the PDF document using the class PDFTextStripper.class method...
4 Sep 2012 by Vigneshb6
Hi, I am facing a weird issue, am streaming binary content (PDF) to display in a new window which is working perfectly in windows xp but am facing issue while displaying in Windows 7. Actually, from the Desktop(Command) application we are triggering batch file to open the application in...
5 Sep 2012 by Saurabh_Damle
Adobe Reader X - Error 103:103 solutionI am not very comfortable with this solution as this is not possible if the application is going to run on a number of different machines. It appears this is a problem with adobe reader 10.1.2 with windows 7.
22 Mar 2017 by Member 13056362
This is a PDF Form setup in Adobe Acrobat 9.0This is my script. It works great but if I change first name later my full name field does not change. Please Help// Get the field values, as stringsvar s1 = getField("First.Name").valueAsString;var s2 =...
14 Mar 2017 by Bryian Tan
You didn't provide enough information (PDF version, how the script get trigger, etc...), I'm guessing you misplacing the script somewhere. Also make sure textbox with First.Name and Last.Name exists.In Edit Form View, right click the Full Name Textbox, select properties, click on the...
21 May 2013 by Liju Sankar
Hi,I am using open source MigraDoc print preview control in one of my project. Per the software policy change, we are looking for a support-enabled licensed component.Could you please suggest any components with can be using to replace the MigraDoc http://www.pdfsharp.net/Overview.ashx
21 May 2013 by Sergey Alexandrovich Kryukov
If your smart-* policy makers prohibit using open-source, you should probably also have a policy prohibiting you using the help of such an open community as CodeProject, just for consistency. :-)Besides, I don't think you (or they?) really understand what is open-source and licensing....
27 May 2013 by Liju Sankar
Thank you very much for your suggestions and guidance.I found a couple of way to handle the situation a. Microsoft Print Preview controls b. Third party controls providers like Infragistics and Developer Express have there own extensions of this microsoft print preview controlBut...
22 Mar 2020 by IcanHelpYouWidddat
Our work includes data entry wherein words or phrases needs to be copied from a list in a PDF or Word format to another file. I want to explore options to minimize the use of keybiard shorcut keys and maximize the mouse Left button. ...
22 Mar 2020 by Maciej Los
There's several tools available in Net, see: Google[^]
21 Feb 2015 by abhishekagrwl25
Hello All, When I am exporting my rdlc report to PDF, it shows An Internal Error Occured on some pages in PDF and no data is viewing on that page. Help me out I am not getting any idea regarding how it occures.Thanks
13 Apr 2019 by m_k_orion
I have a bunch of pdf with a list of name of the files in an excel. we use it for quotation. I am trying to build a software to analyse the pdf using some specific key wards we look for in the pdf. and decide if we keep it or discard it. if we keep it, we print the pdf with the keywords found...
13 Apr 2019 by David_Wimbley
What you are asking, if i understand it right, is pretty straight forward. Your best bet is to learn how to google for what you are attempting to accomplish as there are tons of options for you to pursue and given none of us are involved in your project, the best we can do is generalizations. ...
1 May 2013 by ganesh.rit
Guys, Does any one knows good open source\third party .NET library to redact Pdf's for sensitive information.I Google'ed for it but no one is of use. Lots of libraries have below limitation.1) Can't redact pdf using Regex.2) After redaction if we convert redacted-pdf to text then it...
1 May 2013 by CHill60
This 3rd party tool definitely allows for regex http://www.gnostice.com/nl_article.asp?id=238&t=PDF_Text_Redaction_Using_PDFOne_NET[^] although it's not cheap
27 May 2013 by ganesh.rit
Using iTextSharp I am able to redact area of pdf knowing page and area of raster image pdf.
26 Mar 2014 by Dave Kreskowiak
The only way I see this working is removing the text entirely and replacing it with black bar images.As you're already found out, just drawing a black box over the text doesn't work as the text is still there, unprotected. All you have to do is convert the PDF to text to get it or open the...
18 Apr 2014 by Sergey Alexandrovich Kryukov
This is a bad idea. PDF is not designed to edit. This should be just the output, like a printer.—SA
1 Oct 2013 by Detective123456789
Any PDF library to use for free in a commercial software developed in C# 3.5?
1 Oct 2013 by Sampath Lokuge
You can use iTextSharp.Quote:iText® is an open source library that allows you to create and manipulate PDF documents. It enables developers looking to enhance web- and other applications with dynamic PDF document generation and/or manipulation.For more...
2 Oct 2013 by Marc Gabrie
What about this one Generating dynamic PDF documents using the Open Source Scryber library[^]
14 Apr 2014 by Aravindba
Hai Any third party tool is available for converting pdf file and store in specific folder and then open any exe ? i will try in Installing novaPDF OEM with command line parameters (http://www.novapdf.com/[^])in that when i pass command line parameter form calling own exe it not work,but...
2 Feb 2012 by Sergey Alexandrovich Kryukov
If you are a newbie, my best advice would be to gain essential experience in development of totally open projects, never thinking about keeping anything in secret. This would be much more effective use of your valuable time. Usually, the work of the beginners in not so valuable that others can...
30 Jan 2013 by JiHyung_Lee
Hi, I doing Visual C++ project(like markup-tool).I try to find the PDF to Image C++ Library(preferably commercial...)Please anyone recommend the library. Thanks.
30 Jan 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question. I would not mention anything commercial in this forum, but one source of commercial support is obvious, isn't it? :-)However, it's way too easy: http://bit.ly/WSyXn3[^].And I don't think you should bother about "recommendation" too much, because the...
5 Feb 2012 by Roliking
Hi All, I am using iText sharp pdf generation method and trying to apply page numbers to the pdf document that i generate. While doing so i am calling the pageendevent class once before adding the table to the document, here i notice that the page number is being applied only to the first...
29 Aug 2012 by chitharankryptos
for(int p=1; p{textbox.Text=writer.CurrentPageNumber.ToString();}
24 Oct 2013 by Leo Hernández Núñez
On a site for users, I have to add a module that shows to the user, upon entering, site conditions in a separate window, and the user must accept the conditions show to follow and if he refuses, can not continue.My question is, how I can develop this module in the presentation layer? Is...
24 Oct 2013 by ZurdoDev
Personally, I would do it in a separate page. Just redirect to the page you need to, let them accept conditions and then move on to where you need to.You can open in a new window but if it is a requirement it seems to make more sense to keep it in the main UI.
29 Nov 2011 by TorstenH.
Hey!We are having some issues with FOP and the creation of Arabic and English documents. We are facing some encoding trouble here, as the PDF / the eclipse framework is always going for CP-1252 encoding and not UTF-8 as we try to get.Someone already dealed with this? How can we get...
29 Nov 2011 by TorstenH.
An old bug.There is a BUgzilla-Report on this[^]And here @ github.com[^] ...the solution to get the FOP to work with Arabic encoding. My colleague is just about to make the final implementation on that issue.SOLVED.
12 May 2017 by Member 13196917
Hi all I create a PDF file with Arabic text using iTextSharp in vb.net but when I run code the letters of the word in pdf are disjointed and every letter is alone not connected . What I have tried: Dim basef As BaseFont = BaseFont.CreateFont(fontPath, BaseFont.IDENTITY_H, True) Dim...
30 Jul 2012 by Ndamulelo Savhase
I'm working on a project, the main goal of which is to generate a PDF to be generated and sent as an Email attachment.A User Logs in/Registers..., then answers a set random of questions, and submits the answers.The user is redirected to an asp page after this, which has the results as they...
30 Jul 2012 by woutercx
An article about working with images and iTextSharp:It's about putting images at certain positions in a pdf with C#.But couldn't you have found it using Google?http://www.mikesdotnetting.com/Article/87/iTextSharp-Working-with-images[^]About the other question you had: this pdf doc...
30 Jul 2012 by Rene Bustos
Hello .Recently i develop a web service that generate a PDfthe first step is to load an image in png format with graphics class . then write the datagridview data over the png . and then load with itextsharp the image (bytes) and save in pdf format .This way is very very good cause the...
5 Jul 2018 by Member 11698367
Hi, I want to add to my project pdf viewer but I couldnt succeeded. I wrote lots of article but ı could work it . in my project , there is a menu when I click this menu i want to open my pdf directly, I dont want to click any where or somethink like that , just when user join the menu they...
5 Jul 2018 by Richard MacCutchan
Asp. Net MVC pdf viewer - Google Search[^]
19 Oct 2015 by TheBigBearNow
Hello All,I am currently building a PDF document and having it show information about rides and drivers. At the top of each page i want a header and underneath a table of all the rides.my table of all the rides works without any problems.As for when i create the table on the top of each...
2 Aug 2016 by Member 11295093
HelloIs there any free asp.core library to generate pdf? --TBWhat I have tried:I found PdfSharp, but it doesn`t work with the lastest core version. I want use current version of asp.net core.
26 Dec 2013 by yeruva venkateswarareddy
how to Display PDF file in new web browser tab in asp.net c#. can any one give me solution?thank you.if available give me screen shots?
26 Dec 2013 by ZurdoDev
This is actually very simple to do. Just use a hyperlink to the pdf file and set the target to "_blank." This causes the browser to open in a new tab or possibly window (depending on the browser settings.)
26 Dec 2013 by Gitanjali Singh
Refer:-http://dotnetcode143.bl...
26 Dec 2013 by Tejas Vaishnav
please read this article, it will describe you how to open a url in new browser...How To Open a Web Page In a New Browser ASP.NET?[^]
26 Dec 2013 by Omprakash Kukana
' height="600px" width="500px" runat="server" style="margin-right: 1px">
10 Jan 2014 by Adi-G
Hello,I want to export Asp.Panel content(text, GridViews) with CSS to PDF from C#.NET. Now I am using iTextSharp and RenderControl with Asp.Panel, but CSS is not rendered in PDF. How can I solve this problem(with iTextSharp(if is possible) or in another way) ?Thanks.
10 Mar 2023 by Gcobani Mkontwana
Hi Team I am attaching pdf on my html content, but its not loading to open and need some help around, i experience this issue What I have tried:
18 Feb 2017 by PDTUM
Hello, I wrote an application using C# VS 2010 that calls an PDF page from an internet location and displays it on an internal Adobe viewer in an IFrame. It seemed to work perfectly, but then I updated one of the PDF docs and it still calls the old one. I even deleted the file from the online...
18 Feb 2017 by Bryian Tan
have you try clear the browser cache?How do I clear my web browser's cache, cookies, and history?[^]Another alternative is to add a random querystring to the link to the pdf.Let said the link to PDF document is /document?id=2, the new link should be /document?id=2&r=79834234 ,...
1 Dec 2014 by Sergey Alexandrovich Kryukov
You can find many suggestions here: http://bit.ly/1ycZnVB[^].—SA
2 Dec 2014 by alexandrcoder
I think you will have a chance to place all the files into one folder on server. Then you can create a script for automatic file printing from the folder. There are specialized software programs that support bulk printing of files of different types. For example, there exists Print Conductor....
27 Dec 2015 by PeMaCN
I'm trying to print in PDF two columns of information that contain some strings that the user inputs. This is my code so far:string s = ""; s = s + string.Format("{0,-60}", "Name: " + name);s = s +...
27 Dec 2015 by Richard MacCutchan
If you are using a fixed width font, then you just need to use the length of each string to calculate the number of spaces required. If you are using variable width fonts than you need to use graphics draw methods to position each field at a specific point on the page.
15 Jan 2019 by Igor Krupitsky
This Windows application lets you scan image in a given folder and generate CSV file to show barcodes for each image file.
9 Nov 2015 by Frank Rem
This article explains the basics of PDF graphics and how graphics can be edited if you really have to.
24 May 2010 by Narsimlu Keshagouni
Best fitting the text fields while adding text to the PDF files to save page space.
23 Aug 2012 by ythisbug
hi i tried to generate pdf file.but am not able to display my tree records in pdf.i dont have idea how can i bind datatable to document..here is my code protected void GeneratePDFwithImage(string DID,string DocType) { string path = Server.MapPath("~/TenderDocument"); ...
23 Aug 2012 by Sandip.Nascar
You should look creating custom table in pdf document using ItextSharpTry this link, this will be helpful to you.http://www.dotnetspark.com/kb/1365-create-custom-table-pdf-document-using-itextsharp.aspx[^]Hope this helps.cheers
2 Oct 2012 by Modesty Zhang
Rendering PDF binary stream for interactive forms by extending PDF.JS in HTML5
26 Aug 2015 by Code Help 2014
I need the following functionality in a web application developed using ASP.NET -Display a pdf file on a web page. -Allow users to add bookmarks and comments alongwith bookmarks. -When user adds a bookmark, I want some sort of callback that can be used to save the bookmark text and...
20 Apr 2012 by tigasTT
Hey guys, good morning, I would like to ask for you opinions.The scenario is I have a form which was done in Microsoft Word, each fields has their own bookmarks, now... I converted them to pdf and the bookmarks are retained. I make the current pdf as a "Form / Online Form" one thing that I...
4 Aug 2010 by discoguru
Ok so here it is. For my final year project, I am thinking of writing a software which will essentially convert Braille to regular text (and then move on to convert that to audio, irrelevant at the moment).I plan to use easily available hardware like a scanner to import documents written...
4 Aug 2010 by E.F. Nijboer
hmmm... final project... and in the entire time at school you didn't once used google and got your way around with that? ;-POCR is simply recognizing predefined signs and specially with a neural network you can train it in any way you want. Just setup the rules for recognizing a single dot...
16 Mar 2020 by Mohamad77
I want to make some changes in the source code of the MuPDF library. So I cant build my own app on the base of MuPDF viewers, such as mupdf-android-viewer. This way I cant modify low level codes. I've cloned MuPDF from...
16 Mar 2020 by Richard MacCutchan
mupdf/android-sdk.html at master · ArtifexSoftware/mupdf · GitHub[^]