Password Protection

Is there any way to password protect the pdf file generated through PDFInclude?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Password Protect PDF Document

I have followed the instructions in the documentation and get the following error

Value 4294967292 too large to fit in INTEGER datatype (13682)

I am running Openedge 10.2B on a 32 bit Windows 7 platform.

Am I missing something?


Password Protection

Yes, You can set passwords to PDF files ceated from PDFInclude
Required dll's and other files

procryptlib.dll
procryptlib.lib
md5.exe

{ pdf_inc.i " "}

RUN pdf_new IN h_PDFinc ("Spdf","path and file name for pdf").
RUN pdf_new_page IN h_PDFinc ("Spdf").

RUN pdf_text IN h_PDFinc ("Spdf", "Hello World!").

RUN pdf_set_parameter("Spdf","Encrypt","True").
RUN pdf_set_parameter("Spdf","UserPassword","upul").

RUN pdf_close IN h_PDFinc ("Spdf").


Password Protection

I have tried this as per the documentation and get the following message.

Value 4294967292 too large to fit in INTEGER datatype (13682).

Is there something else I need to do? I am running Openedge 10.2B on a Windows 7 32 bit platform.


Password Protection

I have tried this as per the documentation and get the following message.

Value 4294967292 too large to fit in INTEGER datatype (13682).

Is there something else I need to do? I am running Openedge 10.2B on a Windows 7 32 bit platform.


there is a regression

there is a regression introduced by OE10 I believe.
In pdf_inc.p, DetermineUserKey40, you have to add the following line:
vP-str = -1.
at this place:
ASSIGN p_AllowForms = 1
p_AllowExtract = 1
p_AllowAssembly = 1.

vP-str = -1.
PUT-BITS(vP-Str,1,1) = 0. /* Reserved */
PUT-BITS(vP-Str,2,1) = 0. /* Reserved */
PUT-BITS(vP-Str,3,1) = p_AllowPrint. /* Print the Document */

Regards
JC


where can i download these

where can i download these files?


Password protect

Please refer PDFInclude documentation. It should come with your PDFInclude download.

You can download Full version of PDFInclude at
http://sourceforge.net/projects/pdf-inc/
Hope this will help you.
cheers


nope, not from sf.net

Hi

I'm the maintainer for PDFInclude.

The Sourceforge site is obsolete, unfortunately nobody could give me the passwords so that I can shut it down or write a notice there.

The download of PDFInclude must be done from here (OEHive):
* The last official version: http://www.oehive.org/files/PDFinclude3.3.3.zip (a little bit outdated)
* The current version, directly from the source control management tool, but stable and used everyday in production (I should publish version 3.4 officially one of those days): http://websvn.oehive.org/dl.php?repname=pdfinclude&path=%2Ftrunk%2F&rev=... - this version is the 3.3.3 plus a lot of bugfixes.
Regards,
jice

PS: there is a new version coming, with a much better support for external pdf masks or forms (will support any pdf file as input, including version > 1.4 as those produced by Acrobat), and with much more bugfixes that will be published soon. This will start the new branch PDFInclude 4.