mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Try to repair xref offset by looking for all startxref and fix #1040
This commit is contained in:
@@ -7,6 +7,21 @@
|
||||
|
||||
public class GithubIssuesTests
|
||||
{
|
||||
[Fact]
|
||||
public void Issue1040()
|
||||
{
|
||||
var path = IntegrationHelpers.GetSpecificTestDocumentPath("pdfpig-issue-1040.pdf");
|
||||
|
||||
using (var document = PdfDocument.Open(path, new ParsingOptions() { UseLenientParsing = true}))
|
||||
{
|
||||
var page1 = document.GetPage(1);
|
||||
Assert.NotEmpty(page1.Letters);
|
||||
|
||||
var page2 = document.GetPage(2);
|
||||
Assert.NotEmpty(page2.Letters);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Issue1013()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user