How to restrict pdf printing on a condition

Hello,
We generate the pdf and distribute it to the user immediately. I've a business requirement to allow the user to print the pdf a maximum of 3 times. I was able to add the javascript to the pdf to make a webservice call that would keep a track of prints(by getting the pdf blessed by the livecycle readerextensions). Now, I've two questions :
1.How can I disable printing on the pdf document when max number of reprints is reached?
2.The pdf throws security warning when it makes the webservice call. Is there anyway to supress it?
Thanks in advance for the responses.
Feroz.

Thanks Neerava. I tried compiling the project in the link you provided and I'm getting the following error:
build-project:
     [copy] Copying 1 file to C:\ExternalAuthorization 2\output
     [echo] ExternalAuthorization: C:\ExternalAuthorization 2\build.xml
    [javac] C:\ExternalAuthorization 2\build.xml:46: warning: 'includeantruntime' was not set, defaulting to build.syscl
asspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to C:\ExternalAuthorization 2\output
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\BootstrapImpl.java:3: error: package
com.adobe.idp.dsc.component does not exist
    [javac] import com.adobe.idp.dsc.component.Bootstrap;
    [javac]                                   ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\BootstrapImpl.java:4: error: package
com.adobe.idp.dsc.component does not exist
    [javac] import com.adobe.idp.dsc.component.BootstrapContext;
    [javac]                                   ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\BootstrapImpl.java:6: error: cannot
find symbol
    [javac] public class BootstrapImpl implements Bootstrap {
    [javac]                                       ^
    [javac]   symbol: class Bootstrap
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\BootstrapImpl.java:8: error: cannot
find symbol
    [javac]     private BootstrapContext m_ctx;
    [javac]             ^
    [javac]   symbol:   class BootstrapContext
    [javac]   location: class BootstrapImpl
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\BootstrapImpl.java:10: error: cannot
find symbol
    [javac]     public void setBootstrapContext(BootstrapContext aCtx) {
    [javac]                                     ^
    [javac]   symbol:   class BootstrapContext
    [javac]   location: class BootstrapImpl
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:3: error:
package com.adobe.edc.server.spi.authorization does not exist
    [javac] import com.adobe.edc.server.spi.authorization.*;
    [javac] ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:4: error:
package com.adobe.idp does not exist
    [javac] import com.adobe.idp.Context;
    [javac]                     ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:5: error:
package com.adobe.idp.dsc.clientsdk does not exist
    [javac] import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    [javac]                                   ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:6: error:
package com.adobe.livecycle.rightsmanagement.client does not exist
    [javac] import com.adobe.livecycle.rightsmanagement.client.RightsManagementClient;
    [javac]                                                   ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:7: error:
package com.adobe.livecycle.rightsmanagement.client does not exist
    [javac] import com.adobe.livecycle.rightsmanagement.client.EventManager;
    [javac]                                                   ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:8: error:
package com.adobe.livecycle.rightsmanagement.client.infomodel does not exist
    [javac] import com.adobe.livecycle.rightsmanagement.client.infomodel.Event;
    [javac]                                                             ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:9: error:
package com.adobe.livecycle.rightsmanagement.client.infomodel does not exist
    [javac] import com.adobe.livecycle.rightsmanagement.client.infomodel.EventSearchFilter;
    [javac]                                                             ^
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:19: error
: cannot find symbol
    [javac] public class PrintServiceSPISample implements ExternalAuthorizer
    [javac]                                               ^
    [javac]   symbol: class ExternalAuthorizer
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:21: error
: cannot find symbol
    [javac]     private EventManager           _evt_manager = null;
    [javac]             ^
    [javac]   symbol:   class EventManager
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:22: error
: cannot find symbol
    [javac]     private ServiceClientFactory   _sc_factory  = null;
    [javac]             ^
    [javac]   symbol:   class ServiceClientFactory
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:23: error
: cannot find symbol
    [javac]     private RightsManagementClient _rm_client   = null;
    [javac]             ^
    [javac]   symbol:   class RightsManagementClient
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:25: error
: cannot find symbol
    [javac]     public ExternalAuthPropertyDTO[] getProviderProperties()
    [javac]            ^
    [javac]   symbol:   class ExternalAuthPropertyDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:30: error
: cannot find symbol
    [javac]     public ExternalAuthResultDTO evaluate( ExternalAuthDTO auth_info )
    [javac]                                            ^
    [javac]   symbol:   class ExternalAuthDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:30: error
: cannot find symbol
    [javac]     public ExternalAuthResultDTO evaluate( ExternalAuthDTO auth_info )
    [javac]            ^
    [javac]   symbol:   class ExternalAuthResultDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:27: error
: cannot find symbol
    [javac]     return new ExternalAuthPropertyDTO[0];
    [javac]                ^
    [javac]   symbol:   class ExternalAuthPropertyDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:32: error
: cannot find symbol
    [javac]     ExternalAuthResultDTO ret_val = new ExternalAuthResultDTO();
    [javac]     ^
    [javac]   symbol:   class ExternalAuthResultDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:32: error
: cannot find symbol
    [javac]     ExternalAuthResultDTO ret_val = new ExternalAuthResultDTO();
    [javac]                                         ^
    [javac]   symbol:   class ExternalAuthResultDTO
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:54: error
: cannot find symbol
    [javac]         Context context = (Context)auth_info.getContext();
    [javac]         ^
    [javac]   symbol:   class Context
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:54: error
: cannot find symbol
    [javac]         Context context = (Context)auth_info.getContext();
    [javac]                            ^
    [javac]   symbol:   class Context
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:102: erro
r: cannot find symbol
    [javac]         EventSearchFilter print_search = new EventSearchFilter();
    [javac]         ^
    [javac]   symbol:   class EventSearchFilter
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:102: erro
r: cannot find symbol
    [javac]         EventSearchFilter print_search = new EventSearchFilter();
    [javac]                                              ^
    [javac]   symbol:   class EventSearchFilter
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:118: erro
r: cannot find symbol
    [javac]         Event[] out_events = _evt_manager.searchForEvents( print_search, 10 );
    [javac]         ^
    [javac]   symbol:   class Event
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:148: erro
r: cannot find symbol
    [javac]         _sc_factory  = ServiceClientFactory.createInstance();
    [javac]                        ^
    [javac]   symbol:   variable ServiceClientFactory
    [javac]   location: class PrintServiceSPISample
    [javac] C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java:149: erro
r: cannot find symbol
    [javac]         _rm_client   = new RightsManagementClient( _sc_factory );
    [javac]                            ^
    [javac]   symbol:   class RightsManagementClient
    [javac]   location: class PrintServiceSPISample
    [javac] Note: C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java use
s or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\ExternalAuthorization 2\com\adobe\livecycle\samples\rightsmanagement\PrintServiceSPISample.java use
s unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 29 errors
    [javac] 1 warning
BUILD FAILED

Similar Messages

  • How to restrict copies printed in PDF?

    Hi,
    Is there any way to restrict the number of copies of a PDF printed?
    Is there any way to restrict the printing of a PDF so that it can't be printed after a certain date?
    Jane

    Not without a very expensive Digital Rights Management solution no.

  • How to reinstall PDF Printer in Print & Scan window on OSX 10.8.2

    Hello,
    I was having issues where PDF's were not saving when I was printing them, so I thought that if I deleted the PDF printer from my list of printers and reinstalled it, my problem would be solved.  Now I can't figure out how to reinstall (add) the PDF printer back into this window.  I have uninstalled and reinstalled Acrobat, and I have been searching the web for about an hour.
    I am running OSX 10.8.2
    I have Adobe Creative Cloud installed
    I am on an iMac 3.4 Ghz Intel Core i7
    32 GB of RAM
    Thanks for any help you have.
    J

    Moving this discussion to the Creating, Editing, & Exporting PDFs forum.

  • How to install PDF printer to Adobe Reader?

    I've created a form that will be sent to my colleagues to fill out. Once they fill it out, they will need to save the form as a read-only pdf and send it to our clients.
    I understand, after reading a lots of threads in this forum, the best way would be to have my colleagues to open the form(s) in Acrobat and then print to a PDF. This will allow them to create a static copy of the form, which will not have any fields or access to change the data. My question is if this is possible for them as they have Adobe Reader 8, 9 & X? If yes, how do they install the PDF printer?
    /Sally

    Ok....any other suggestions how I can make this work? I need to create the form as an open document for my colleagues to fill it in with information then send it as a read-only pdf to our clients......

  • How to restrict VK11 access based on condition class D (Tax)

    hi ,
    I have a requirement to restrict VK11 access based on condition class D (Tax). Because all users should not have access to maintain tax data in VK11 while general pricing data they can maintain. when condition class is D then we should have control.
    Thanks
    Akhilesh

    Hi Akhilesh,
    Please find the below link and click on View article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c
    how to create authorization object?
    Thanks
    Dasaradha

  • How to Enable PDF Printing

    Hi Gurus,
    I am doing R12 upgrade and part of its finishing upgrade tasks, I need to "Enable PDF printing".
    What all are the steps to enable PDF printing.
    Please advice.
    Thanks
    Sony

    I am doing R12 upgrade and part of its finishing upgrade tasks, I need to "Enable PDF printing".
    What all are the steps to enable PDF printing.How To Print Concurrent Requests in PDF Format [ID 333504.1]
    How to Print PDF/UTF8 in R12? [ID 778970.1]
    R12.0.6+ : Oracle Application Object Library Pasta Printing Health Check Test [ID 732270.1]
    http://forums.oracle.com/forums/search.jspa?threadID=&q=PDF+AND+Printing+ANd+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to get PDF Printing working with APEX packed with 11g

    Hi ,
    Recently i installed 11g db on one of my systems (Windows XP) ,as it comes with APEX i thought to move my apex app(which were in 10g) to the same .........when i moved my apps , i got everything working but PDF PRINTING .
    I have configured Report Printing :
    Print server: Advanced
    Print server Protocol: HTTP
    Print server Host Address: localhost
    Print Server Port: 9704
    Print server script :/xmlpserver/convert
    Your help is appreciated.
    Thanks ,
    Ribhi

    Hi Jes,
    Thank you for your reply. BI Publisher is runing on the same server where Database 11g with APEX installed. I loged in to the database as SYS DBA and copied and paste Oracle script below to enable Network services. The script run successfully, still cant print. Pls Help me to solve this problem.
    Regards,
    Ribhi
    DECLARE
    ACL_PATH VARCHAR2(4000);
    ACL_ID RAW(16);
    BEGIN
    -- Look for the ACL currently assigned to '*' and give FLOWS_030100
    -- the "connect" privilege if FLOWS_030100 does not have the privilege yet.
    SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
    WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
    -- Before checking the privilege, make sure that the ACL is valid
    -- (for example, does not contain stale references to dropped users).
    -- If it does, the following exception will be raised:
    -- ORA-44416: Invalid ACL: Unresolved principal 'FLOWS_030100'
    -- ORA-06512: at "XDB.DBMS_XDBZ", line ...
    SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
    WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
    EQUALS_PATH(P.RES, ACL_PATH) = 1;
    DBMS_XDBZ.ValidateACL(ACL_ID);
    IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'FLOWS_030100',
    'connect') IS NULL THEN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
    'FLOWS_030100', TRUE, 'connect');
    END IF;
    EXCEPTION
    -- When no ACL has been assigned to '*'.
    WHEN NO_DATA_FOUND THEN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
    'ACL that lets power users to connect to everywhere',
    'FLOWS_030100', TRUE, 'connect');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
    END;
    COMMIT;
    Edited by: Ribhi on Nov 13, 2008 1:18 PM

  • How do install pdf printer?

    I cannot follow the instructions to install a pdf printer because there is no printer download setup feature available on the adobe.com web site.

    Hi belliotriehm,
    Are you on Mac OS or Windows? The Adobe PDF Desktop Printer is only available on Windows.
    If you are on Windows, you can find the link to download by logging on the https://cloud.acrobat.com, and clicking the Create PDF link.
    Please let us know if you need further assistance.
    Best,
    Sara

  • How to modify PDF print template in Portal..

    Hi,
       we are running BI and Portal (NW 7.0, SP14).
        In the portal we enables the BI queries printing in PDF, but as far we use standard web template.
        Now i copied the web template and want to add new Fields to the PDF document, such as like Query Name, User, System and customer Logo. 
       I was able to add web text items with the required field to the customer web template, but i was not able to see these fields when printing the document...
        Please provide me with step for step describtion on how to add new fields to the PDF export or how should i proceed...??
    Many Thanks,
    Nazih

    Hello,
       many thanks for your help.
    1. I have added to the web template three new "TEXT_ITEM" elements with Date, QueryName, etc.
    2. then i have added this "text web items" to the PDF-pring command -> Data binding as you have advices.
    Here is the Result of the XHTML File:
    <bi:EXPORT xmlns:bi="http://xml.sap.com/2005/01/bi/wad/bisp">
      <bi:TEMPLATE value="Z_0ANALYSIS_PATTERN">
      </bi:TEMPLATE>
      <bi:ITEM_REF_LIST type="UNORDEREDLIST">
        <bi:ITEM_REF index="2" value="TEXT_ITEM_1">
        </bi:ITEM_REF>
        <bi:ITEM_REF index="3" value="TEXT_ITEM_2">
        </bi:ITEM_REF>
        <bi:ITEM_REF index="4" value="TEXT_ITEM_3">
        </bi:ITEM_REF>
      </bi:ITEM_REF_LIST>
      <bi:REPEAT_HEADER value="">
      </bi:REPEAT_HEADER>
      <bi:SHOW_EXPORT_DIALOG value="X">
      </bi:SHOW_EXPORT_DIALOG>
      <bi:REPEAT_KEYCOL value="">
      </bi:REPEAT_KEYCOL>
    </bi:EXPORT>
    - Now the Issue is i cannot see these web items in my PDF document when i export the query as PDF...??? the PDF-document is empty...??
    *- and Any Idea how can i add an Image-object (Logo) to the PDF document too..??*
    Many Thanks again,
    Nazih
    Edited by: Nazih Kayyali on Nov 20, 2008 4:17 AM

  • How to format pdf -  printer frielndly - dashboard

    Hello,
    I created dashboard with tree section. Every section has two request/report with arrange horizontal. I print this dashboard to pdf. Now I have section 1 , section 2 and part of section 3( header ) in first page. In secent page I have resto of section 3. I want two sections per page. How to set that section 3 must begin from new page.
    Regards,
    Luko
    update
    Ok I found Height in section.
    Edited by: Luko on 2009-12-29 16:13

    Apparently AA8 will work on Win7, though Adobe does not support it. They only support AA9 on Win7. The printer should be installed as part of the Acrobat installation. You do not add the printer in the sense that you suggest. Does Acrobat itself open? You probably need to do a repair to the Acrobat installation. Updates may also help if you are only running AA8.0. The updates can be downloaded from Adobe.com>downloads>updates. Be sure to install the updates in order.

  • How to get pdf printer back?

    Just downloaded acrobat XI pro Windows, but pdf driver can't be found in the printer folder.  Do I need to re- download acrobat XI pro?

    If you did download AA XI, do you still have that on your system. If so, then archive it to a CD or backup drive. If you no longer have it, you may want to download it again and archive it for the future. It gets a bit old trying to help folks who do not archive and then need to get it again because of a HD crash or such.

  • How to restrict to print more than one copy

    hi,
    in the oracle application, is there any way to restrict user to print a concurrent report output from more one ?
    in short
    i submit a report
    report completed successfully
    then view output
    one user can take print out but if user want to take another print output then system will don't allow.
    i mean view output button should be freezed after one print.
    it is possible?

    in the oracle application, is there any way to restrict user to print a concurrent report output from more one ?
    in short
    i submit a report
    report completed successfully
    then view output
    one user can take print out but if user want to take another print output then system will don't allow.
    i mean view output button should be freezed after one print.
    it is possible?Yes -- Re: Printer default number
    Thanks,
    Hussein

  • How to enable PDF printing (Ubuntu, Tomcat+Cocoon, Apex 3.1 or greater)

    Hi,
    Hope that this my guide help someone
    http://ubuntuforums.org/showthread.php?t=1004742
    Br, Jari

    thank you very much for the document (posting) on Ubuntu forms.
    I have tried it with Ubuntu 9.04 and it works as well as it was on your 8.04 system.
    thax again
    R/ Zaf

  • Print ID for condition lines?

    Hi,
    who can tell me how to use the 'Print ID for condition lines' in pricing procedure settings?
    tks in advance.

    Hi,
    print ID in pricing procedure controls the printing of that
    condition lines i.e  value[if condition record exists] of that condition type will be displayed when u take print preview of that document[order confirmation etc].if u set it as 'X' than that condition line[condition value] will be printed on any of your
    output.Eg print preview of ur invoice.
    Assign points if helpful.
    Edited by: Sharad Kaliya on Sep 3, 2008 8:55 AM
    Edited by: Sharad Kaliya on Sep 3, 2008 8:56 AM

  • How to create a PDF Printer

    Hi, we need to create a system PDF printer.
    I found many solution with a local printer but none with a system printer.
    does it exist an how-to to create this kind of printer?
    thank you

    Hello Massimo,
    this is possible by using the device type PDF1 (or ZPDF1). Please follow the instructions of the following notes in order to create a PDF printer in your system. These notes show different alternatives on how to achieve this:
    #317851 Creating PDF format via spooler in 4.6C/4.6B/4.5B
    #576973 Creating a file printer on a Windows PC
    #323736 Restrictions with "PDF print" through spooler
    The last note has the list of restrictions on this functionality.
    Also, is your OS Windows? Then please check the following note:
    #161516 Printing into a file or anywhere else in NT
    I hope this information helps.
    Best regards,
    Tomas Black

Maybe you are looking for

  • At a total loss on how to fix PSCS6 after CSCC Install

    I am assuming that the CC version of Photoshop had something to do with this as it started just after the install and they are both doing this. The very next image I edited after the install was gif_01.gif.  I saved it to: project/005885/site/image/g

  • Setting in SICF transaction

    Hi All, I have activated the standard service "WEBGUI" in SICF transaction. It has generated URL. Now I want to transaport the settings done in SICF transaction to activate WEBGUI on quality server. But during activation on development server, system

  • 2 wireless networks, suddenly one doesn't work!

    I have an odd problem that cropped up yesterday (Tues). I have a wireless network at home using a D-Link 624, an iMac G5, and a Powerbook G4 (aluminum). Works great!!!! At school/work (I'm a teacher), we have a wireless network in my classroom, where

  • Removal of the old European for

    Hi everyone, For everyone that migrated over from our old Europeans forums, you may still remember the old system. This is currently still linked in on the Support page, so you can read the archi'ved content. This page will be changed to link directl

  • Problems with iPhoto6

    hi, am wondering if someone can help me. my hard disk of my iBook G4 crashed. i had to buy a new one and re installed everything. however, i now find that the iPhoto and iMovies applications are not there. Shouldn't that be in the install discs? now