PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

read a pdf is error.

Open toolgood opened this issue 6 years ago • 2 comments

position:PdfSharpCore.Pdf.IO.Parser.ReadXRefTableAndTrailer(PdfCrossReferenceTable xrefTable)

        private PdfTrailer ReadXRefTableAndTrailer(PdfCrossReferenceTable xrefTable)
        {
            Debug.Assert(xrefTable != null);

            Symbol symbol = ScanNextToken();/// return  Keyword

toolgood avatar Feb 23 '20 03:02 toolgood

read.PDF

toolgood avatar Feb 23 '20 04:02 toolgood

    class Program
    {
        static void Main(string[] args)
        {
            var bytes = File.ReadAllBytes("read.PDF");
            using (var ms = new MemoryStream(bytes)) {
                var document = PdfReader.Open(ms);// throw error
            }
        }
    }

toolgood avatar Feb 23 '20 04:02 toolgood