skip to main content

Library Routines : WIN$PRINTER : WINPRINT-SET-ATTRIBUTE

WINPRINT-SET-ATTRIBUTE
The WINPRINT-SET-ATTRIBUTE function sets attributes for the next PDF created by writing on a file assigned to "-P PDF" or by using the Save As function in the print preview dialog.
This function overrides the default settings set in the configuration (see Print Configuration).
Note: The attributes are set only for the first PDF print performed after the call to this op-code. If you need to set the attributes also for other PDF print jobs, then you need to call the op-code before each one of them.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-SET-ATTRIBUTE 
Parameters:
List of supported attributes:
77 pdfcrypt-type pic 9(9) value 0.
78 pdfcrypt-no value 0.
78 pdfcrypt-std-40 value 1.
78 pdfcrypt-std-128 value 2.
78 pdfcrypt-aes-128 value 3.
78 pdfcrypt-no-metadata value x#08.
78 pdfcrypt-embedded-files-only value x#10.
78 pdfcrypt-allow-printing value x#0100.
78 pdfcrypt-allow-modify-content value x#0200.
78 pdfcrypt-allow-copy value x#0400.
78 pdfcrypt-allow-modify-annotations value x#0800.
78 pdfcrypt-allow-fill-in value x#1000.
78 pdfcrypt-allow-screenreaders value x#2000.
78 pdfcrypt-allow-assembly value x#4000.
78 pdfcrypt-allow-degraded-printing value x#8000.
78 pdfcrypt-all-permissions value x#FF00.
  add pdfcrypt-std-128
  call "win$printer" using winprint-set-attribute
       "ENCRYPTION" pdfcrypt-type
Note - if neither FONT_FOLDER nor FONT_FOLDER_EMBED are set, the PDF file will not use the fonts you specified through WINPRINT-SET-FONT.
Return Code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left