I am trying to create a new pdf file file and save it to disk using iTextSharp.
I have bytes[] for pdf content but unable to understand how to use this with iTextSharp.
Can anyone help me with some sample code to generate pdf using byte[] in iTextSharp and save it to disk.
How to Read PDF and Convert to Stream in C#/VB. Using iTextSharp DLL, we can read the PDF text in efficient manner. Adding dll to the Project. Steps: Image given below show Add Reference option. //CONVERT STRING TO BYTE ARRAY byte [] pdfdata = ConvertStringToByte(PdfData). Create a RAM-drive at runtime, save the bytes to that virtual drive with a PDF extension, then have Adobe Reader open that virtual file. Either that, or create your own viewer or find a PDF viewer that accepts memory content or a stream. * come from the file system or from a byte array. The data is flate compressed. * @param writer the PdfWriter * @param filePath the file path * @param fileDisplay the file information that is presented to the user * @param fileStore the byte array with the file. If it is not null * it takes precedence over.
I found lots of tutorial on google with adding new paragraph or chunk.. but I want to use byte[].
Itextsharp Byte Array To Pdf Software Pdf
C# Itextsharp Pdf
Abhash786Abhash786
1 Answer
Alfonso RogeroAlfonso Rogero
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Write Byte Array To Pdf
Not the answer you're looking for? Browse other questions tagged c#pdfitextsharp or ask your own question.