Please view the following sample codes which clearly show how to unpack PDF page streams for editing PDF in a text editor. The recommended tool is VeryPDFToobox.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Call_PDFToolBoxCom
{
class Program
{
static void Main(string[] args)
{
string strExePath = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
PDFToolBoxCom.PDFToolBoxCom p = new PDFToolBoxCom.PDFToolBoxCom();
string strReturn = p.RunCMD(strExePath + @"\doc.pdf -outfile doc.unc.pdf -unpack");
Console.WriteLine(strReturn);
Console.WriteLine("Please enter any key to continue...");
Console.ReadKey();
}
}
}
Lear more about VeryPDF PDF Toolbox Component for .NET.