Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -417,23 +417,17 @@ private boolean bfSearchForTrailer(COSDictionary trailer) throws IOException
{
trailer.setItem(COSName.ROOT, rootObj);
trailer.setItem(COSName.INFO, infoObj);
if (trailerDict.containsKey(COSName.ENCRYPT))
COSObject encObj = trailerDict.getCOSObject(COSName.ENCRYPT);
// check if the dictionary can be dereferenced
// TODO check if the dictionary is an encryption dictionary?
if (encObj != null && encObj.getObject() instanceof COSDictionary)
{
COSObject encObj = trailerDict.getCOSObject(COSName.ENCRYPT);
// check if the dictionary can be dereferenced
// TODO check if the dictionary is an encryption dictionary?
if (encObj != null && encObj.getObject() instanceof COSDictionary)
{
trailer.setItem(COSName.ENCRYPT, encObj);
}
trailer.setItem(COSName.ENCRYPT, encObj);
}
if (trailerDict.containsKey(COSName.ID))
COSBase idObj = trailerDict.getItem(COSName.ID);
if (idObj instanceof COSArray)
{
COSBase idObj = trailerDict.getItem(COSName.ID);
if (idObj instanceof COSArray)
{
trailer.setItem(COSName.ID, idObj);
}
trailer.setItem(COSName.ID, idObj);
}
return true;
}
Expand Down