mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-26 13:28:22 +01:00
Fix reading of PDF files from Crystal Reports (Issue #45)
This commit is contained in:
parent
ed88322496
commit
b0a66eef78
@ -9,6 +9,7 @@ v1.1.2 (TBD)
|
||||
dash pattern (Issue #41)
|
||||
- Fixed an issue with broken PDF files containing extra CR and/or LF separators
|
||||
after the object stream token (Issue #40)
|
||||
- Fixed an issue with PDF files produced by Crystal Reports (Issue #45)
|
||||
- Fixed an issue with PDF files produced by Microsoft Reporting Services
|
||||
(Issue #46)
|
||||
|
||||
|
@ -1914,12 +1914,12 @@ load_xref(
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!strcmp(line, "xref"))
|
||||
else if (!strncmp(line, "xref", 4) && !line[4] || isspace(line[4] & 255))
|
||||
{
|
||||
// Read the xref tables
|
||||
while (_pdfioFileGets(pdf, line, sizeof(line)))
|
||||
{
|
||||
if (!strcmp(line, "trailer"))
|
||||
if (!strncmp(line, "trailer", 7) && !line[7] || isspace(line[7] & 255))
|
||||
break;
|
||||
else if (!line[0])
|
||||
continue;
|
||||
@ -1984,7 +1984,7 @@ load_xref(
|
||||
}
|
||||
}
|
||||
|
||||
if (strcmp(line, "trailer"))
|
||||
if (strncmp(line, "trailer", 7))
|
||||
{
|
||||
_pdfioFileError(pdf, "Missing trailer.");
|
||||
return (false);
|
||||
|
Loading…
Reference in New Issue
Block a user