Generating password protected pdf document  usuing as_pdf_mini package

Actually i want to implement password protected pdf file which is generated using as_pdf_mini.
so i want help on that.....

- Read the specs on PDF 1.3
- take as_pdf3
- the next is some code I used to check several steps of the encryption
declare
  t_encryption_padding raw(32) := hextoraw( '28BF4E5E4E758A4164004E56FFFA01082E2E00B6D0683E802F0CA9FE6453697A' );
  p_owner_password varchar2(32) := '';
  p_user_password varchar2(32) := 'abc';
  t_tmp raw(32);
  t_tmp_u raw(32);
  t_o raw(320);
  t_u raw(320);
begin
  t_tmp_u := utl_raw.substr( utl_raw.concat( utl_raw.cast_to_raw( p_user_password ), t_encryption_padding), 1, 32 );
  if p_owner_password is null
  then
    t_tmp := t_tmp_u;
  else
    t_tmp := utl_raw.substr( utl_raw.concat( utl_raw.cast_to_raw( p_owner_password ), t_encryption_padding), 1, 32 );
  end if;
  t_tmp := dbms_crypto.hash( t_tmp, dbms_crypto.hash_md5 );
  t_o := dbms_crypto.encrypt( t_tmp_u, dbms_crypto.encrypt_rc4, utl_raw.substr( t_tmp, 1, 5 ) );
--dbms_output.put_line( t_o );
  t_tmp := dbms_crypto.hash( utl_raw.concat( t_tmp_u
                                           , t_o
                                           , utl_raw.cast_from_binary_integer( -4, utl_raw.little_endian )  -- waarde van /P
                                           , hextoraw( 'fb3642e78f13a14ef522287f16d63195' ) -- waarde van /ID
                           , dbms_crypto.hash_md5
  t_u := dbms_crypto.encrypt( t_encryption_padding, dbms_crypto.encrypt_rc4,  utl_raw.substr( t_tmp, 1, 5 ) );
--dbms_output.put_line( t_u );
  t_tmp := utl_raw.concat( utl_raw.substr( t_tmp, 1, 5 )
                         , utl_raw.substr( utl_raw.cast_from_binary_integer( 8, utl_raw.little_endian ), 1, 3 ) -- object nr
                         , utl_raw.substr( utl_raw.cast_from_binary_integer( 0, utl_raw.little_endian ), 1, 2 ) -- generation nr
  t_tmp := dbms_crypto.hash( t_tmp, dbms_crypto.hash_md5 );
  dbms_output.put_line( dbms_crypto.encrypt( 'FEFF', dbms_crypto.encrypt_rc4,  utl_raw.substr( t_tmp, 1, 10 ) ) );
  dbms_output.put_line( dbms_crypto.encrypt( utl_raw.cast_to_raw( 'AS-PDF 0.3.0 by Anton Scheffer' ), dbms_crypto.encrypt_rc4,  utl_raw.substr( t_tmp, 1, 10 ) ) );
end;Anton

Similar Messages

  • Generating password protected pdf document -PLSQL

    Experts,
    Can please anyone to share the code how to do password protect the pdf which is located in unix directory.

    Google gave me below links :
    http://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/
    PL/PDF generate and manipulate PDF with Oracle PL/SQL
    https://community.oracle.com/thread/2419241?tstart=0
    Regards
    Girish Sharma

  • Bursting generates Password protected pdfs

    Hii,
    I have a bursting requirement for one of my report. I have included this functionality but the bursting always generates password protected pdfs. I have pdf security set to False hence it should not generate the password protected pdfs!!
    Please suggest what could be the issue.
    Thanks for your help.

    Thanks for your reply.
    You mean to say Bursting file right? I don't think we have security true there. following is the bursting file i am using.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXOM_RMA/LIST_G_RETURN_REQUEST_DATE/G_RETURN_REQUEST_DATE">
    <xapi:delivery>
    <xapi:filesystem output="/applodev/ipodevappl/xxipo/11.5.0/archive/out/XXOMRMA_REP_${R_A}_${CONC_REQ}_${S_U}.pdf">
    </xapi:filesystem>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="">
    <xapi:template type="rtf" LANG='en' location="xdo://XXIPO.XXOM_RMA.en.US/?getSource=true" filter="/XXOM_RMA/LIST_G_CUSTOMER_NUMBER/G_CUSTOMER_NUMBER[LANG='en']"/>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    But you know what, if i look at the bursting conc program log file, it says pdf_security = true. Not sure where exactly where this security is true. any guesses?
    Thanks.

  • I cannot open password protected PDF document with attachments with Adobe Reader on OS X. Crashes.

    I cannot open password protected PDF document having attachments on my OS X (v 10.8.4) with Adobe Reader X nor XI. The reader crashes. The same document using the same password opens fine on the laptop and Windows systems wheni it is fetched from a secure mail server. Why?

    Moved to Adobe Reader

  • Password protected PDF document not opened with E7...

    Dear all,
    Password protected PDF document not opened with nokia E7-00. Previously I used nokia N79, that time I was able to open Password protected PDF file such as bank email statement etc. Now I can't.
    It is quite disappointing with this phone !

    hi mateys,
    you may want to search under "PDF" in the Nokia Store, as some solutions such as Picsel Smart Office exist, where they do open password-protected PDF's.

  • Password protecting pdf documents

    Need to know what the minimum Adobe software I need to purchase to password protect pdf documents that I need to email.

    You need to purchase Adobe Acrobat for this.

  • Any way to password protect pdf document when emailing?

    Is there any way to password protect an adobe document when emailing like you would a word document?

    Hi bcanino,
    You can apply security to a PDF using Acrobat (apply an Open Document password, a Document Permissions password, or both). For more information, see PDF passwords, protected PDF, file permissions | Adobe Acrobat XI
    I hope that helps.
    Best,
    Sara

  • OPen password locked PDF documents in Playbook

    Dear all,
    Could anyone advice the method to OPen password protected PDF documents using Playbook ?
    I know the passowrd, but the Playbook is not even asking for the password, instead it refuses to open the file - "CAN'T OPEN"
    kindly advice.
    Satish

    the OS is not the issue, it is the app with its limits.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Trouble printing a password protected adobe document with hpeprint?

    How do I print a password protected Adobe document with hpeprint? I have an Officejet Pro 8600Plus

    Hi,
    If password protected PDF documents, you can not print on ANY printer unless you can ccrraacckk it.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Convert Excel into Password Protected PDF Files

    Hello Aandi/Lenoard,
    I believe you are the Adobe Forums administrators so I thought you guys are the right people to approach.
    OTHERS ARE ALSO INVITED TO COMMENT ON THIS TOPIC.
    I have C# desktop app which generates Excel files and our goal is to convert these excel files one at a time into password protected PDF files. We use a 3rd party software currently, but I am challenging myself into saying that I can use Adobe Acrobat 9.0 SDK to achieve what is required .
    I have downloaded Acrobat 9.0 SDK and also have Adobe Professional 8.0(trail) in my development machine. Can you firstly tell me if this is possible and secondly what would be required on the client machines to run it?
    THanks,
    Andy

    "Encrypt with Password" is the policy name, not the policy id.
    Did you try enumerating the policy object to see how to set it up? I ran this from the console to get the policy details:
    var policy = security.chooseSecurityPolicy();
    for ( var i in policy )
    console.println(i + ": " + eval("policy." + i));
    That will pop up your list of policies. Choose "Encrypt with Password" and hit Apply, which returned the following:
    policyId: SP_STD_default
    name: Encrypt with Password
    description: This policy will allow you to set an open or modify password on a document.
    handler: Adobe.Standard
    target: document
    Of course, all you really need are the policyId, handler and target. Make sure you read and thoroughly understand the security requirements documented in the API reference for this method as well.

  • Is there a way of protecting PDF documents from printing and/or copying?

    Does anybody know a way of protecting PDF documents from printing and/or copying? All this within the OS possibilities? Is there a way?
    know one can buy expensive programmes like from Adobe, but I use it so little that I would like a cheaper solution. Freeware would be great, shareware also.
    Any suggestion grateful received.

    No way to do that using the OS (although the entire pdf can be encrypted, once the password is applied the document is open for copying/printing).
    However, the freeware PDFLab does allow password protection, the 'owner' pw allows full access, the 'user' pw can be restricted for printing, copying, etc:
    http://www.iconus.ch/fabien/pdflab/
    This can also be done with Adobe's Create PDF Online, but the above is free, and works well.
    Hope this helps...

  • Password Protected PDF Files in Elementary OS

    I have installed Acrobat 9.5.5 on my Elementary OS (Ubuntu base) system but when I try to open a password protected PDF file from my bank Acrobat fails with the error "There was an error opening this document. An updated version of Acrobat is needed in order to open this document.".
    The version that I have installed claims to be 9.5.5 04/26/2013.
    Has anyone got any pointers?
    Thanks

    Well,  first, you probably don't have Acrobat 9.5.5 installed on Ubuntu unless you are running a VM image or using WINE to do so.  You are probably using Adobe Reader 9.x.  If a file was encrypted for Acrobat X and later then you do actually need Adobe Reader version 10.x or later.  Unfortunately there isn't a version 10.x for UNIX/LINUX.  What to do?  Use a VM or WINE and load it up that way.  If you really are running Acrobat 9.5.5 on Ubuntu via a VM image or WINE then you need to load Adobe Reader 10.x or Adobe Reader 11.x.

  • Password protected PDF in iBooks not displaying

    I loaded a password protected PDF into my iTunes library and then synced it with iPad (4th gen iOS 6.1.3). I see the PDF in iBooks on the iPad and when I click on it, it prompts for the password. I input the password and PDF "opens" but it's just the blank grey screen showing page 1/1 (it's supposed to be a 79 page document). Any ideas? I took the password off the document and loaded that one into iTunes then my iPad and it displays just fine. I did this same sequence with a different document and with the password it didn't display and without the password it did display.
    If there is an issue with iBooks, any way to sideload this into Adobe Reader, or somehow "Open in" Adobe Reader from iBooks?
    Thanks
    Dan

    It looks like this issue may be limited to files that have been set to restrict the user's ability to print or edit the document (even after a password has been entered for viewing).  I found that a password-protected PDF could be viewed in iBooks, but after I added the print restriction, I had the same problem you reported.

  • Password-protected PDF demands password in triplicate

    I'm having problems with a password-protected PDF (created in Acrobat Pro 8 ) which opens fine with a single entry of the password when downloaded but when website visitors try to open the form directly in their browser it keeps asking for the password and will only open on the third password attempt (by when most visitors will have given up on it). Could you please tell me what is causing this phenomenon and whether I can fix it? TIA.
    Simon

    It looks like this issue may be limited to files that have been set to restrict the user's ability to print or edit the document (even after a password has been entered for viewing).  I found that a password-protected PDF could be viewed in iBooks, but after I added the print restriction, I had the same problem you reported.

  • OBIEE 11g having problems with password protected PDF files.

    I have been able to get an analysis in OBIEE 11g to display PDF files.
    However, some of these documents contain sensitive information and must be secured. Since anyone with access to the file name
    could simply type in the proper path in the browser window, this is unacceptable. In order to try and prevent this, I created a pdf file
    that is protected with a password.
    Opening the file by itself, produces the desired results. The password is requested before the file will open.
    When I open the file through my analysis in OBIEE, Adobe reader activates, but the password is not requested and the file does not open.
    It is as if OBIEE is somehow not sensing that Adobee is asking for a password.
    Does anyone have any experience with this?

    FYI, in case anyone is interested, I found out what is going on.
    I created the original password protected PDF using Microsoft Word. I did this because I do not have a full version of Adobe Acrobat that allows me to create files.
    On a hunch, I found someone that has a full version of Acrobat, and had them create a password protected PDF file. This file worked perfectly.
    Apparently, Word is not strictly adhering to PDF guidelines, and OBIEE senses the differences, resulting in the file not opening properly.
    Something to keep in mind for anyone linking to password protected PDF files in OBIEE.

Maybe you are looking for

  • Cant get it to work

    Every time i turn my touch on, a long code scrolls down the screen and then i can't do anything else. My computer also doesn't detect it when plugged in

  • Issue with combobox : value never change

    Hello, I have made a VI for control a motor. There is my subVI I have create a VI with a combobox to control the motor with 3 commands.  Each command send a string who the motor understand. My issue is when i choose a command, in my subVI that doesnt

  • ITunes artwork not downloading with file and tab blanked out.

    The last 4 items I have downloaded from iTunes (tv Shows and Movies) are not coming with any album art.  As the TV shows are on season pass its only the latest episodes that don't have artwork. Also the artwork tab is greyed out on the Get Info scree

  • [SOLVED] Conky Not Displaying Unicode Characters Correctly

    I have some music that requires unicode characters in order to be displayed properly. The artist name is Röyksopp, but it is displayed like this: http://i.imgur.com/rRBDxZn.png Does anyone know how to either make it display correctly (Röyksopp), or a

  • Shift/F12 launches Dashboard instead of Flash Publish Settings

    How do I use shift/f12 within a program such as Flash? I can't find anywhere in my preferences where f12 is assigned. My Preferences -> Dashboard & Expose settings don't have anything selected for Dashboard. The option "-" is selected which would lea