Using for .NET s library you can extract and preserve layout and formatting. Sample code PDFDocument doc = new PDFDocument(); code (@); code code StringBuilder buffer = new StringBuilder(); code code foreach (PDFPageBase page in ) code code (()); code code code (); code String fileName = ; code (fileName ()); code The library also has the ability to extract from a given area see this article for more information Extract Text from a Specific Rectangular Area in PDF using C# s