diff options
-rw-r--r-- | devices/vector/gdevpdf.c | 2 | ||||
-rw-r--r-- | devices/vector/gdevpdfx.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/devices/vector/gdevpdf.c b/devices/vector/gdevpdf.c index 40beb06a5..6c4908bc3 100644 --- a/devices/vector/gdevpdf.c +++ b/devices/vector/gdevpdf.c @@ -3115,7 +3115,7 @@ pdf_close(gx_device * dev) pprintld1(s, "/V %ld ", pdev->EncryptionV); pprintld1(s, "/Length %ld ", pdev->KeyLength); pprintld1(s, "/R %ld ", pdev->EncryptionR); - pprintld1(s, "/P %ld ", pdev->Permissions); + pprintd1(s, "/P %d ", pdev->Permissions); stream_puts(s, "/O "); pdf_put_string(pdev, pdev->EncryptionO, sizeof(pdev->EncryptionO)); stream_puts(s, "\n/U "); diff --git a/devices/vector/gdevpdfx.h b/devices/vector/gdevpdfx.h index 098fc4fc9..61a5c582c 100644 --- a/devices/vector/gdevpdfx.h +++ b/devices/vector/gdevpdfx.h @@ -641,7 +641,7 @@ struct gx_device_pdf_s { gs_param_string OwnerPassword; gs_param_string UserPassword; uint KeyLength; - uint Permissions; + int32_t Permissions; uint EncryptionR; gs_param_string NoEncrypt; bool EncryptMetadata; |