Click here to Skip to main content
15,891,607 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 Updated

PDF 

N 23 Apr 2024 by Shubham Sawant 2023
In my code i try to download the pdf file of my view by clicking on Export button but unable to download it. I want to download the view same as i see on my browser. I installed iTextSharp.pdf for downloading pdf. IMP: 1. I create a action...
U 21 Apr 2024 by Shubham Sawant 2023
1. In my project i develop resume my fetching data from action method to view. after fetching all data to the view (where i bind my template), i want to download that template with data and design.my all data get's fetched successfully but I'm...
9 Apr 2024 by Member 14941845
Go to that webpage then press "Ctrl + p" then when the printing page opens in your computer then press "Save As PDF".
27 Mar 2024 by StruggleBus
I'm creating a report with page breaks between each group and the customer has requested that each group be saved to it's own pdf. So, potentially, I could have one report saved of to numerous files. I honestly don't even know where to start...
11 Mar 2024 by StruggleBus
I have a paginated RDLC report and am trying to export it to PDF, while keeping all of the columns on the same page. Currently, the columns are being spread across multiple pages. The number of columns are variable, so I would like the table to...
3 Mar 2024 by M-Badger
Open and save PDF document in ASP.NET MVC | Syncfusion[^] ASP.NET Core PDF Editor Control: How to view, edit PDF file online in browser using C# ASP.NET MVC PDF viewer[^] Recommend a free PDF developer's library for C# - Microsoft Q&A[^] C#...
3 Mar 2024 by Member 12940970
I need to create one MVC C# Project with more editable PDF Documents in few groups uploaded at Server. I need for more users to filled out the forms in the document and Save As option to save again at Server as new Document. What is the best...
9 Jan 2024 by Pete O'Hanlon
The issue that you are hitting is that you instantiate the web browser, and immediately attempt to call PrintToPdf. At this point, the browser is still loading. The browser exposes an [^]IsBrowserInitializedChanged event that is fired when the...
8 Jan 2024 by runtime_terror
Hi, I need help to open an a/3 pdf file in the Chromium web browser using C#. I tried some samples but I got some errors. Please help using the sample code. What I have tried: using ChromiumWebBrowser = CefSharp.WinForms.ChromiumWebBrowser;...
1 Nov 2023 by Member 15994899
In my C# project, I want to read a pdf file line by line, and when the line contains a specific string, I want to add a named destination to this line (not to the page). What I have tried: I have found the following example, but this is adding...
29 Oct 2023 by Yvan Rodrigues
Your code is querying a database, retrieving a row, outputting the content of a field to a file, then pointing a web browser at that file. To have a web browser open your PDF without saving it on the filesystem, you need to restructure your code...
4 Oct 2023 by Kamlesh Dhairyavan
This code is written in Python and I am retrieving PDF file stored in SQL Server table stored in varbinary data type code and I need to open this PDF file and be displayed in browser. This code is working however it is creating output.pdf on...
13 Sep 2023 by pankajgarg1986
I am using iTextSharp PDF library to convert plain html into multiple pages PDF file. The problem is with printing footer on every page. I have tried everything, but nothing worked. Please help me to sort out this issue. Below is my complete...
25 Jul 2023 by Member 13304618
I have an MVC.NET application that returns a PDF stream. I am trying to embed that stream into a view. I have this action in a controller [AuthorizeResultVisible] public ActionResult GetPDFStream(int reportId) { byte[]...
27 Jun 2023 by Ahmet Erdem 2022
https://imgyukle.com/i/rhVeLc https://imgyukle.com/i/rhVWot https://imgyukle.com/i/rhV28Q hi friends adobe acrobat I know how to fill the form I made with mvc but I need to add a picture I couldn't find how to add it can you help me selam...
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...
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:
9 Mar 2023 by Gcobani Mkontwana
Good day I need your help, i am getting a message when i try to open pdf document says failed to load a pdf document " Expected: application/pdf (.pdf); found: text/plain (.txt) " What I have tried: $filenameee = $_FILES['id']['name']; //...
8 Mar 2023 by Gcobani Mkontwana
Hi Team I need some help with my script, i am only managing to send pdf attachment but cant be able to view it as a document. Please assist me and guide me, thank you. What I have tried:
8 Mar 2023 by Richard MacCutchan
See view pdf in php - Google Search[^]. Please try doing your own research first.
3 Mar 2023 by Gcobani Mkontwana
Hi Team I having this problem by using my logs from the server. Im sending email as pdf and using function to do using phpmailer. But now the logs show have a problem with line 94 on the application.php. How can i resolve this issue? What I...
3 Mar 2023 by OriginalGriff
The error message is very explicit: the file (or part of the path to it) does not exist, or isn't accessible. At a guess, the file is local to your computer, and your code is running on the server which has no access to your local file system....
2 Mar 2023 by eekayonline
You can try to copy the accessibility tags from the original document to the new document. The accessibility tags are stored in the document's structure tree, which can be accessed using the PdfDocument.StructureTreeRoot property. You can copy...
1 Mar 2023 by Gcobani Mkontwana
Hi Team I am struggling to create a view pdf document using php when receipient receives email attachment. My code only view pdf from the browser. How do i link it with front end(html, jquery)? What I have tried:
1 Mar 2023 by Gcobani Mkontwana
Hi Team I need some help, i have a logic that attached document as pdf, this document does saves to the database well. But the problem i cant seem to achieve get the document as pdf on the email, only shows text its not right to a user and need...
1 Mar 2023 by Dave Kreskowiak
Are you trying to send the PDF as an attachment in an email? Your question isn't very clear on this. Also, you're code seems to be "monolithic", meaning doing more than one thing at a time. Break this code down into multiple functions. One to...
20 Feb 2023 by Member 12315030
I am a novice. I have searched the internet to find an example of programming language(s) that will allow me to load an PDF and let the user fill in or mark boxes, as needed (i.e., an inspection). However, I am not having any luck. This is...
20 Feb 2023 by Dave Kreskowiak
There are no languages that allow you to load a PDF, because that's not what languages do. You need a library you can use in your application that can load the PDF and allow filling in boxes, like GdPicture.NET[^] or GrapeCity's library[^]. ...
6 Feb 2023 by FIPL Developer
Hello, I am facing the same issue. I am using the freeSpire.pdf library version (7.8.9). I have to add one digital signature on multiple pages of the pdf file. I have added a digital signature on each page of the pdf but when I open the pdf file...
24 Jan 2023 by Josh McFadden
A couple of friends and I are front-end designers who are venturing into the world of web app development for the first time and we're looking for some guidance and feedback on our concept. We believe we will be using React for this project, but...
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...
10 Jan 2023 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.
3 Jan 2023 by rsuki
Hi, I need to validate some reports that are printed to PDF . The Production floor says sometimes the data gets truncated or values gets printed elsewhere or full report is not displayed etc . Is there any way to validate this . I am working...
3 Jan 2023 by Member 15883921
Hi, I have the same problem to solve, is there any solution for this?
20 Dec 2022 by oronsultan
Hi! Is there a magic solution? Is it possible to create a PDF document based on an existing document without losing all its accessibility tags? Our situation is quite complex here and I am looking for a clean and elegant solution to our problem...
10 Dec 2022 by SehrishKantroo
I want to create multiple pdf files then then save them into one pdf file. I am new to Java script. Please help me through this What I have tried: Button that when clicked downloads a single pdf file.
10 Dec 2022 by Sandeep Mewara
You would need to make use of a exiting third party library to do it. There are many if you Google up your query with JavaScript as additional keyword. Example: PDF-LIB · Create and modify PDF documents in any JavaScript environment.[^] ...
3 Dec 2022 by moshaveran
How Can I extract text from a rectangle area of a PDF ? my pdf is searchable. What I have tried: I used to convert my PDF into a IMAGE and select the desired area by dragging a rectangle and convert it to text by using Tesseract OCR. But now...
3 Dec 2022 by Dave Kreskowiak
How about you Google for "C# iTextSharp Extract text from PDF example".
26 Oct 2022 by Filip Gorgievski
I am trying to add Cyrillic text into pdf field, but I failed. I found solutions on google but that doesn't work in my case. using (FileStream outFile = new FileStream("result.pdf", FileMode.Create)) { PdfReader pdfReader = new...
26 Oct 2022 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Have a look at this - https://stackoverflow.com/questions/10329863/display-unicode-characters-in-converting-html-to-pdf[^]. Basically it is to make sure you handle the Unicodes properly while converting to PDF.
6 Oct 2022 by runtime_terror
Hi All, I need a solution for converting a simple PDF to PDF A/3 format with xml file embedded by adding an image or icon before converting to a/3 format with any open source. Please help Thanks in advance What I have tried: byte[]...
2 Oct 2022 by RickZeeland
Take a look at this CodeProject PDF library: PDF File Writer C# Class Library (Version 2.0.0)[^]
9 Sep 2022 by GhettoBurger996
Hey all, I am attempting to merge n files of pdfs (up to 1000 at times) into a single pdf.The pdfs are stored on GoogleStorage and I have the option of getting the files in 1 of 3 ways. Either a Readable Stream return...
23 Aug 2022 by Prahlad Yeri
My project involves reading text from a bunch of PDF form files for which I'm using PyPDF2 open source library. There is no issue in getting the text data as follows: reader = PdfReader("data/test.pdf") cnt = len(reader.pages) print("reading...
22 Aug 2022 by Richard MacCutchan
You should post your question at Discussions · py-pdf/PyPDF2 · GitHub[^].
30 Jun 2022 by Member 15692350
I was wondering if there was a way to create a simple index.html page and redirect it to a hosted PDF based on mobile and desktop devices? My website is not up yet but i want people to at lease see the menu. So example now i have the site...
30 Jun 2022 by Dave Kreskowiak
In a word, "don't". Do not redirect to a PDF. That doesn't show a page but triggers a download by the browser. Users will look at that and think you just redirected them to malware. You ALWAYS make sure the user knows what is coming with the...
4 Jun 2022 by Çlirim Murati
I create a custom Pdf document in my application where among a lot of other things I print other images and pdfs inside it, recently I got a pdf document that contains two pages of an ID document, this pdf looks perfectly fine when it's viewed in...
2 Jun 2022 by Pandora Finance
You can paste the text file in a word processing software like Google Docs or Microsoft Word and then you can download or save them as pdf. Thanks
2 Jun 2022 by asaad kittaneh
I am trying to save a textbox text as a pdf file but I got an encoding error, I have tried the following: What I have tried: from tkinter import * from tkinter import ttk from tkinter import filedialog from tkinter.filedialog import...
10 May 2022 by sharukhajm
I have a very large dataset in the MySQL database that I want to export in a PDF file. I am working in PHP and tried popular solutions like DOMPdf and Mpdf. They all work in a similar way, preparing the complete data in HTML and feeding it to...
30 Apr 2022 by Petrov Vladimir
Simple solution for PDF performance from Image files of any kind
21 Apr 2022 by mrraggi
Hello All, Does anyone know a way to convert a EPL string to a image or pdf file? What I have tried: I can re-do the EPL file in ZPL format, but wanted to just print to an image.
21 Apr 2022 by Dave Kreskowiak
You're going to have to find some component, or write one yourself, to parse the EPL and render it to an image of your specifications. This isn't going to be a small piece of code. I'd probably start by Googling for "render epl".
6 Mar 2022 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.
18 Feb 2022 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.
13 Feb 2022 by Member 12721774
Hi, I got problem when create an instance/object CAcroPDDoc in User laptop for second PDF. But it can run successfully in my laptop. The following is my code: private void PrintPDF(string pFileName) { bool BOpenDoc = false; //Create an...
1 Sep 2021 by Member 15343067
Hi All, I'd like to code an outlook VBA macro that allows me to save .tif mail attachments in .pdf Since no such Outlook option exists, I first save the .tif as it is and then I am launching "Windows Photo Viewer" to open it, then I choose the...
1 Sep 2021 by CHill60
AFAIK there is no way to capture that button click as you are shelling the application, not interacting via an API.Quote: Last thing, If someone knows an alternative way to get to the same results in Outlook directly, this will be equally highly...
30 Aug 2021 by sahnoune_khaled
I am trying to make a program which extracts the text from a PDF document PDF documents contain ARABIC text written by different types of FONT when I extract the text it works with some files and others not it gives me ambiguous Text I am using...
23 Aug 2021 by Patchanka68
Hello.I have a asp project with vb2008 and crystal reports XI. I designed a report wiht images embebed (OLE object linked with jpg files). The route of the file is in a field of database.In the preview of the crystal reports programs all is ok, but when i export this report to a pdf...
3 Aug 2021 by Indhu S 2021
Hi,� I have a pdf file of type byte array. I need to download / open the same as pdf in clients machine. I tried to achieve the same by adding response headers for content-disposition but not successful. In browser I see something like bytes. ...
3 Aug 2021 by Richard Deeming
That's some very confused code: you have a byte array, so you copy it to a MemoryStream, then copy the MemoryStream to another byte array, and then write that third copy of the data to a local file, before sending the local file back to the...
28 Jul 2021 by Bekzat Karayev
Hi guys, I need to create PDF document using C# , but the problem is that I have a large block of text which has to be located at the top of every page (I have 12 pages). Should I add this block manually at every page? Maybe it can be made once...
14 Jul 2021 by Member 14192879
I want to create a pdf of the current xamarin form. I used pdf sharp and itext7 to implement it but unable to do it. but below code only capture the text of xamarin, not the image. i just want to save currently viewed xamarin form to pdf. I am...
22 Jun 2021 by hoa20101988
I have a code bellow:the first i using itexsharp library:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls.WebParts;using...
14 Jun 2021 by Member 14192879
I was trying to show the pdf from bytes data in xamarin app. I want to show pdf in webview. i tired with below code: What I have tried: docname = myReader["Name"].ToString(); fileName = myReader["TypeofDocument"].ToString(); ...
14 Jun 2021 by Richard Deeming
You forgot to tell us what the problem is. Fortunately, it's pretty obvious: a website cannot access files on the user's device. You are asking a page hosted on drive.google.com to display a file stored in your local application data folder....
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 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...
31 May 2021 by Dave Kreskowiak
ActiveX isn't supported in any modern browsers today because they are considered security risks.
18 May 2021 by TheKhanSoft
I indent to get generated salary slip from each of the rows of a DataGridView, in C#. Each of the salary slips must be: 1 generated from a single row 2 each cell should be included in relevant section i.e. deduction in deduction, basics in basics etc. 3 if a cell in the row is empty or has 0 in...
4 May 2021 by Muhammad Ahmed Saeedi
I am looking for a way to insert data or replace some data into preexisting pdf file. The scenario is that some specific data would be fetched from excel file and data from it would be mapped onto pdf file. What I have tried: I have tried using...
31 Mar 2021 by thatraja
You need to spend time with those libraries to know more about its features. Here some Open source libraries Open Source PDF Libraries in C#[^] Regarding your question ... Basically you need to use Header. Report Document has Header & Footer...
14 Feb 2021 by Member 10481360
I want to extract all email and respective client id from a pdf file to any control in asp.net. how can I get this? What I have tried: I have tried string urlFileName1 = "C:/Users/rtech/Desktop/Create-PDF-Images/PDF-Files/123.pdf"; ...
14 Feb 2021 by Maciej Los
First of all, you have to: 1. extract text of pdf to List 2. use Regex to find emails and ids. Here is an idea how to extract emails from list of string. See: C# code to extract Email from text · GitHub[^] We have no idea how your pdf...
10 Feb 2021 by jmrobbins
I have generated a pdf file from html and now I need to save it to a folder in my project. I am able to get the generated pdf to download locally but when I send it to the file folder it gets corrupted and will not open. This portion of the code...
10 Feb 2021 by jmrobbins
Solved: I replaced the memStream variable in the PdfWriter code with the new FileStream and removed the using filestream code all together. PdfWriter writer = PdfWriter.GetInstance(pdfDoc, new FileStream(Server.MapPath(path)+"/" + fileName,...
4 Feb 2021 by Maideen Abdul Kader
Hi I need to open PDF file which are stored in different Server in same network environment using asp.net webpage Inside the application Folder - No issue, can view on ASP.net page ../Doc_Uploads/FormsOLController.pdf external Drive in same...
4 Feb 2021 by Richard Deeming
ResolveUrl resolves a URL relative to the current page. It will not change a UNC path. Which means that the user browsing your application would need to have access to the specified UNC path in order to be able to open that path. You'll also...
4 Feb 2021 by Richard Deeming
The PDF content is buffered in memory, and doesn't get flushed to the underlying stream until the buffer is full, or the Close method is called. Move the pdfDoc.Close(); line above the code that saves the file: pdfDoc.Close(); using (var...
30 Jan 2021 by Sergiy Stoyan
A .NET toolset for building PDF parsers
14 Jan 2021 by snehalpawar
Following is the code for convert webpage to pdf using itextsharp protected void btnExport_Click(object sender, EventArgs e) { StringWriter sw = new StringWriter(); StringReader sr = new StringReader(sw.ToString()); Document pdfDoc = new...
14 Jan 2021 by Jindrich Matous
I found, that iTestSharp has problem with tag .
10 Jan 2021 by RickZeeland
Maybe you can use the API of Online pdf converter: html-to-pdf-file-converters[^] You can find developer info here: Create your own online file converter[^] As for Dompdf, on GitHub - dompdf/dompdf: HTML to PDF converter for PHP[^] it says:...
9 Jan 2021 by Member 15042038
I have a webpage in which the user can make changes like highlighting an image, adding a comment and so on. What I want is when the user clicks on a submit button a PDF file of the web page with the changes is generated, so that I can send it to...
24 Dec 2020 by juliashs
I should print PDF using my C++ app in Windows 10 without opening "Save file dialog". Previously I used "Generic Postscript Printer" to save file with the given name as ".ps" and than converted it to PDF using another application. Windows 10 doesn't support "Generic Postscript Printer" but has...
24 Dec 2020 by Member 11005432
Try this // generate a file name as the current date/time in unix timestamp format string file = (DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds.ToString(); // the directory to store the output. string directory =...
22 Dec 2020 by hansoctantan
I found a source code for merging pdf files, I don't know if you know about this module PdfManipulation2.vb. This is the code form merging pdf files ''' ''' Merge multiple pdf files into a single pdf ''' ''' string array...
6 Dec 2020 by ranio
I want to resolve viewing of PDF issue in asp.net with c#. PDF File is there in the configured path. PDF is unable to view for some PDF Files. Getting below error File does not begin with %PDF What I have tried: My code is as below: string...
6 Dec 2020 by Garth J Lancaster
Ok, but the PDF standard says that a PDF file begins with %PDF (and then, iirc), a "-x.y" where x.y represent the version of the PDF language the file was built with. Given that, are you really sure these 'other' files that give you errors ARE...
16 Nov 2020 by Vincent Maverick Durano
There many out there that you can try. However, most free and open-source stuff requires a bit of work compared to paid ones. Here are a few tools that that I used before: wkhtmltopdf[^] - Free and it works Iron[^] - Paid and easy to integrate...
16 Nov 2020 by NatrajCognicx
I have a requirement to generate PDF from pre-defined template using .NET (web). The thing is client will be uploading new templates now and again. The application should handle the upload without any code changes (very minimal if at all needed)...
29 Oct 2020 by Member 14978731
I'm trying to write a program that will download my emails and save them as PDF. I've encountered a problem with encoding. I'm using the email and imaplib modules. When I use this method to write the file: part.get_payload(decode=True) I get an...