mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-24 13:48:49 +08:00
Minor refactoring
This commit is contained in:
parent
692ead8496
commit
3bd083475d
@ -67,7 +67,7 @@ func newOutlineDestFromPdfObject(o core.PdfObject, r *PdfReader) (*OutlineDest,
|
||||
// Extract magnification mode.
|
||||
mode, ok := core.GetNameVal(destArr.Get(1))
|
||||
if !ok {
|
||||
common.Log.Debug("invalid outline destination zoom mode: %v", destArr.Get(1))
|
||||
common.Log.Debug("invalid outline destination magnification mode: %v", destArr.Get(1))
|
||||
return dest, nil
|
||||
}
|
||||
|
||||
|
@ -69,8 +69,5 @@ func TestGetOutlines(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
dstJson, err := json.Marshal(dstOutline)
|
||||
require.NoError(t, err)
|
||||
|
||||
t.Log(string(srcJson))
|
||||
t.Log(string(dstJson))
|
||||
require.Equal(t, srcJson, dstJson)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user