Hello everybody
I have a problem with pdf file loading into PdfDocumentSource.
In the OnException handler I have next information:
Value cannot be null.
Parameter name: Pages
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.Import()
at Telerik.Windows.Documents.Fixed.PdfDocumentSource.CreateDocumentFromStreamOverride(Stream stream, FormatProviderSettings settings)
at Telerik.Windows.Documents.Fixed.FixedDocumentStreamSource.CreateDocumentFromStream(Stream stream, FormatProviderSettings settings)
This file is a scan of a document and has one page. I can open it in PDF readers.
Unfortunately I can't attach the file because it's confidential (and I don't have such problem with any other file).
Here is it's header and ending:
header:
%PDF-1.3
1 0 obj
<</Type /XObject /Subtype /Image /Name /Im1 /Width 1654 /Height 2338 /Length 315069/ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter [ /DCTDecode ] >> stream
-------------------------------------------------------------------------------------------------------------------------
ending:
endobj
2 0 obj
<< /Length 47
>>
stream
q 595.44 0 0 841.68 0.00 0.00 cm 1 g /Im1 Do Q
endstream
endobj
3 0 obj
<<
/Type /Page
/MediaBox [0 0 596 842]
/Parent 4 0 R
/Rotate 0 /Resources <<
/ProcSet [/PDF /ImageC /ImageB /ImageI]
/XObject <<
/Im1 1 0 R
>>
>>
/Contents [ 2 0 R
]
>>
endobj
4 0 obj
<<
/Type /Pages
/Kids [ 3 0 R]
/Count 1
>>
endobj
5 0 obj
<<
/Type /Catalog
/Pages 4 0 R
>>
endobj
6 0 obj
<< /Creator ()
/CreationDate ()
/Author ()
/Producer ()
/Title ()
/Subject ()
>>
endobj
xref
1 7
0000000000 65535 f
0000000009 00000 n
0000315262 00000 n
0000315359 00000 n
0000315546 00000 n
0000315604 00000 n
0000315655 00000 n
trailer
<<
/Size 7
/Root 5 0 R
/Info 6 0 R
>>
startxref
315751
%%EOF
Is there any possibility to load this document source?
Thanks,
Dzmitry