Hi Gruber,
When I run my report for PDF Encryption the the follwing message come
Access via 'NULL' object reference not possible.
593
594 * set the PDF and the encryption
595 CREATE OBJECT o_pdf.
596 o_pdf->set_pdf_file( result ).
597
598 pass = 'TEST'.
599
600 upass = pass.
601 * CONCATENATE 'O_' pass INTO opass.
602 opass = 'ATEST'.
603 CREATE OBJECT o_encrypt_aes
604 EXPORTING
605 keylength = 128.
606 * o_encrypt ?= o_encrypt_aes.
607
608 * set the user permissions for the PDF file
>>> o_encrypt->set_permission_ex( print_allowed = 'X'
610 modify_allowed = ' '
611 copy_allowed = 'X'
612 add_annotations_allowed = ' '
613 fill_fields_allowed = ' '
614 copy_accessibility_allowed = 'X'
615 assemble_allowed = ' '
616 print_highres_allowed = 'X' ).
617
618 * set the user and the owner password for the PDF
619 o_encrypt->set_passwords( user_password = upass owner_password =
620 * generate the passwords
621 o_encrypt->generate_passwords( o_pdf ).
( as per your API_Reference.pdf I create 2 class CL_PDF & CL_PDF_ENCRYPTION and also copy CL_PDF_ENCRYPTION to CL_PDF_ENCRYPTION_AES )
Please you guide me with screen shot for Class & Method.
With Warm Regards
Manob Chatterjee