First create the StreamInputBytes in PdfDocument.Open() to check the stream CanRead and CanSeek
Some checks failed
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled

This commit is contained in:
BobLd
2025-09-09 19:03:17 +01:00
parent 8408c98aec
commit 22eab422a3

View File

@@ -44,10 +44,10 @@
internal static PdfDocument Open(Stream stream, ParsingOptions? options)
{
var initialPosition = stream.Position;
var streamInput = new StreamInputBytes(stream, false);
var initialPosition = stream.Position;
try
{
return Open(streamInput, options);