Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oliver Sander
poppler
Commits
ab18b2cb
Commit
ab18b2cb
authored
Sep 20, 2005
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parser.cc merges from xpdf 3.01
parent
cf6723ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
ChangeLog
ChangeLog
+1
-0
poppler/Parser.cc
poppler/Parser.cc
+11
-8
No files found.
ChangeLog
View file @
ab18b2cb
2005-09-20 Albert Astals Cid <aacid@kde.org>
* poppler/GlobalParams.[cc|h]: Merge from xpdf 3.01
* poppler/Link.cc: Merge from xpdf 3.01
* poppler/Parser.cc: Merge from xpdf 3.01
* poppler/TextOutputDev.[cc|h]: Merge from xpdf 3.01
* poppler/UnicodeMap.cc: More grealloc -> greallocn
* poppler/UnicodeTypeTable.cc: Merge from xpdf 3.01
...
...
poppler/Parser.cc
View file @
ab18b2cb
...
...
@@ -137,6 +137,7 @@ Object *Parser::getObj(Object *obj,
Stream
*
Parser
::
makeStream
(
Object
*
dict
)
{
Object
obj
;
BaseStream
*
baseStr
;
Stream
*
str
;
Guint
pos
,
endPos
,
length
;
...
...
@@ -165,13 +166,7 @@ Stream *Parser::makeStream(Object *dict) {
if
(
!
lexer
->
getStream
())
{
return
NULL
;
}
// make base stream
str
=
lexer
->
getStream
()
->
getBaseStream
()
->
makeSubStream
(
pos
,
gTrue
,
length
,
dict
);
// get filters
str
=
str
->
addFilters
(
dict
);
baseStr
=
lexer
->
getStream
()
->
getBaseStream
();
// skip over stream data
lexer
->
setPos
(
pos
+
length
);
...
...
@@ -183,9 +178,17 @@ Stream *Parser::makeStream(Object *dict) {
shift
();
}
else
{
error
(
getPos
(),
"Missing 'endstream'"
);
str
->
ignoreLength
();
// kludge for broken PDF files: just add 5k to the length, and
// hope its enough
length
+=
5000
;
}
// make base stream
str
=
baseStr
->
makeSubStream
(
pos
,
gTrue
,
length
,
dict
);
// get filters
str
=
str
->
addFilters
(
dict
);
return
str
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment