How to create ICon/Cursor from pdf files

     I was able to create ICon from jpg file without problem but I couldn't create ICon from pdf files.
Here my code:
var myDoc = app.newDoc();
myDoc.importIcon("myIcon"); // it worked when I chose a jpeg image, but it didn't
//when chose a pdf file.
icon = myDoc.getIcon("myIcon");
oIcon = util.iconStreamFromIcon(icon);  
myDoc.closeDoc(true);
app.addToolButton({
               cName: "myButtoon",
               oIcon: oIcon,
               cExec: "app.alert('Someone pressed me!')",
               cTooltext: "Push Me!",
               cEnable: true,     
               nPos: 4
   //app.removeToolButton("myButtoon");
My goal is to create buttons which have icons from a pdf file (stamp) and when user click on these buttons, the cursors become the icon . And then, when user click on the document, the iCon will be showed in the document. The point is: is there anyway to create icons/cursors/stamps from one pdf file. Because the stamp is changeable, when user changes the color/shape of the pdf file, the icons/cursors/stamps will automatically change
What kind of pdf format do I have to use?
I used the sample "SignHere.pdf" in stamps folder of Acrobat but it didn't work.
Thanks.

The SDK has all the information - but certainly there are only samples for those common actions that users have been doing for years.  Most developers don't recreate stuff already present in the application - such as the Stamp plugin - so we don't have samples of such things.
But all the pieces you need are present in the SDK - it's just necessary obvious.  You will need to learn about the details of how the plugin APIs work to create the toolbars and toolbuttons, and then how to handle cursors.  You will then need to learn about PDF details in order to be able to take an existing PDF, potentially modify it (eg. Change the color(s)) and then place it onto another PDF.  
The methods you listed are from JavaScript - there are alternative methods for plugins, such as the AVConversion APIs.

Similar Messages

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • How to Export multiple photos from pdf files?.

    Good day.
    How to Export multiple photos from pdf files?.
    Thanks.

    Hello
    how to reach from file menu ?.
    Running Adobe reader 9 version 9.3.0
    Thanks again.

  • How to create JSF application from xsd files?

    Hi,
    We have many xsd files describing xml's which we are supposed to send to web services. Application which we are creating should allow user to fill xml documents with data and then we should send those xml files to some web service. We want to automatize as much as possible the process of application creation to avoid possible errors and to minimize our efforts (there are plenty of quite complex xsd files).
    Our first approach was: we used Oracle JSXB to generate java classes basing on xsd files (using JDeveloper 10.1.3.2.0.4066). Then we tried to generate DataControls, but this action fails with following error:
    Window title: Error in init bean
    Message: Could not complete initbean because it would result in an invalid document
    Details: oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Wartość atrybutu Name nie jest typu ID (Value of Name attribute is not of ID type)
    Wartość musi być następującego typu: (Value must be of following type)
    Nazwa typu: ID (Type name)
    Typ pierwotny: string (Primitive type)
    Z następującymi więzami: (With following constraints)
    zgodne z wzorcem: [\i-[:]][\c-[:]]* (Compliant with template)
    [ node = Name ]
    <JavaBean version="10.1.3.40.66" id="XSLStylesheet" BeanClass="oracle.xml.xslt.XSLStylesheet" Package="oracle.xml.xslt" isJavaBased="true">
    <Attribute Name="classMethodParams" IsUpdateable="0" Type="java.util.Hashtable" />
    We tried Sun implementation fo JAXB - it generated different java classes (with annotation mechanism). Creation of DataControls using those classes was successful. Then we created simple JSF page and tried to put those DataControls on it in order to let the user fill it with data. The thing is that those controls are read only as there is no row created in those DC. We can't create any row in those DC as there are only 'commit' and 'rollback' operations. When we try to call 'CreateInsert' operation on child elements of those DC we get error in JDeveloper log window:
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-29000: DataControl:createRowData
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: DataControl:createRowData
    new row is not created and controls are still read-only.
    The question is:
    1. is there another, more efficient way to create JSF application from xsd files?
    2. if this is the best way to do it, what do we do wrong?
    Leszek

    To anyone who might find it useful: our solution to mentioned problem.
    Few tips how to solve described problem:
    1. Do not use JAXB (we checked Oracle and Sun)
    2. Use castor http://www.castor.org/
    a) for each xsd generate java files in separated package
    b) use java 1.5 to let castor generate lists
    c) use mapping of xml namespaces to java packages to have only 1 implementation of each xsd
    3. Create facades - java files for you root-level java objects
    4. Right click those facades and choose 'Create DataControl' in jdev
    5. Now you may drag and drop you DataControls and use them in your JSF (or UIX) application
    I hope it will help someone :)
    Leszek

  • [solved] How to remove specific pages from PDF file?

    I'm looking for a way to remove few pages from PDF file.
    Last edited by delor (2008-07-04 10:28:22)

    To remove first page I did this:
    pdftk original.pdf cat 2-end output result.pdf
    Any other propositions ?

  • How to extract the image from pdf file

         Hai friends........
             Is it possible to extract the images in a page from pdf file.
             If so. please share with me.......
        Thanks in advance,
        abu

    In later versions of Acrobat you can select an Image with the Select tool, then right-hand click for Save options.
    ------------->
    It helps if you quote your exact version of Adobe Acrobat/Reader - choose [Help, About...] to find this.
    Also useful: Version numbers of other software (e.g. Word) if relevant. Age of computer and amount of memory (RAM) available (r/h cllcking on 'My Computer' and choosing Properties gives you this, plus processor speed).

  • How can I read content from PDF file stored in Oracle 9i XMLDB

    Hi Friends:
    Now I have met one question that I don`t know how to read some String , for example "Hello", from the PDF file stored in the Oracle 9i XMLDB, I have stored that PDF file into the XMLDB now, any suggestions are appriciated . Thank you in advance.

    You may be able to do something with Oracle Text. The following shows how to get an HTML rendiditon of a binary document. I think you can also get plain text instead of HTML
    set echo on
    spool xfilesUtilties.log
    connect sys/&1 as sysdba
    grant ctxapp to &2
    connect &2/&3
    begin
      ctxsys.ctx_ddl.create_policy(policy_name=>'XFILES_HTML_GENERATION', filter=>'ctxsys.auto_filter');
    end;
    create or replace package xfiles_internal_11010
    authid definer
    as
      function renderAsHTML(sourceDoc BLOB) return CLOB;
    end;
    show errors
    create or replace package body xfiles_internal_11010
    as
    function renderAsHTML(sourceDoc BLOB)
    return CLOB
    as
      html_content CLOB;
    begin
      dbms_lob.createTemporary(html_content,true,DBMS_LOB.SESSION);
      ctx_doc.policy_filter(policy_name => 'XFILES_HTML_GENERATION',
                            document => sourceDoc,
                            restab => html_content,
                            plaintext => false);
      return html_content;
    end;
    end;
    show errors
    create or replace package xfiles_utilities_11010
    authid current_user
    as
      HOME_FOLDER   constant varchar2(700) := xdb_constants.HOME_FOLDER;
      PUBLIC_FOLDER constant varchar2(700) := xdb_constants.PUBLIC_FOLDER;
      function renderAsHTML(sourceFile VARCHAR2) return CLOB;
      function transformToHTML(xmldoc XMLType, xslPath VARCHAR2) return CLOB;
    end;
    show errors
    create or replace package body xfiles_utilities_11010
    as
    function renderAsHTML(sourceFile VARCHAR2)
    return CLOB
    as
    begin
      return xfiles_internal_11010.renderAsHTML(xdburitype(sourceFile).getBLOB());
    end;
    function transformToHTML(xmldoc XMLType, xslPath VARCHAR2)
    return CLOB
    as
      html clob;
    begin
      select xmldoc.transform(xdburitype(xslPath).getXML()).getClobVal()
        into HTML
        from dual;
      return html;
    end;
    end;
    show errors
    grant execute on xfiles_utilities_11010 to public
    create or replace public synonym xfiles_utilities for xfiles_utilities_11010
    quitMessage was edited by:
    mdrake

  • How to Create Service Interface from WSDL file

    Dear Experts,
    Required your help in below scenario resolution.
    I have a WSDL file , from that WSDL file can I create a service interface.
    If yes than what are the steps for creating the same.
    Thanks & Regards,
    Rathan.

    Rathan,
    PLz chk the below link (PDF file)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79?quicklink=index&overridelayout=true
    Mutti

  • How to create Blu-Ray from previous files?

    Back in November of 2010 thefifthlion posted a similar question, but the thread was archived so I could not post a follow up in that same thread.
    My question is similar:  how to create a Blu-Ray from previous Compressor files.  His answer was to create a disc image by selecting "Hard Drive" from the Output Device pop up menu.  Then use Toast or Disc Utility to burn the copies.  Fine, but here's my revised question to that:
    Compressor just spent nearly 20 hours compressing a 2+ hour video with "Create Blu-Ray" selected for the When Job Completes.  Before it completed the Blu-Ray burner apparently fell asleep or went offline somehow because the computer wouldn't recognize the drive by the time Compressor was done.  So I had no choice but to selct "Cancel Burn" and stop the process, restart the computer, and get the Blu-Ray burner back online.
    You probably know where I'm going with this.  I now have two files on my desktop - the video and the audio file created of the project from Compressor.  BUT WHAT CAN I DO WITH THOSE FILES NOW?  Needless to say I don't want to go through the entire 20 hour process again - only to have the same thing happen with the burner drive.  As per the below paragraph (copied from thefifthlion's original post in November) is this the best way to burn Blu-Rays in Compressor?  Always create a disc image rather than burn right away... and then use a third party burner like Toast 10 or Disc Utility to burn the disc?  I can't believe Compressor doesn't have an option to open the project again and burn a Blu-Ray straight away.
    > Output Device pop-up menu: Use this pop-up menu to choose the device to format to. The pop-up menu displays a list of your system’s suitable output devices, including optical drives and the computer’s hard disk. Each device also includes the words Blu-ray or AVCHD to indicate which type of disc it creates. Choose Hard Drive to create a disk image (.img) file that you can burn to Blu-ray Disc media at a later time using the Disk Utility application (available in the Utilities folder). Other settings may change depending on the device you choose.
    Thanks very much for any feedback.
    Eric

    Follow up question:
    I went through the process again (approx 20 hours!! ) and this time made the video a disc image.  I don't have Toast (though I think it might be time to get it) but I keep reading that Disc Utility can burn a Blu Ray using that disc image.  So, I went through another multi hour process to burn that 20+ gig file onto a Blu Ray, but it appears that it didn't burn it as a playable disc, rather, more like it put the file on the disc as data files.  All the info is there, 20 some gigs, I can see all the files, but the disc doesn't play.
    Now I apologize if it's a silly question if it's known that you can't make a playable blu ray with Disc Utility, but I don't know either way, that's just what I've read and this is the first time I've tried it. 
    Soooooooo, if I always make a disc image, should I just get Toast and use that to make the blu ray?
    By the way, a brief update:  the whole reason this thread came up was because my Pioneer blur ray burner goes offline (sleep) after an hour or so and doesn't come back or wake up.  So with a long processing time in Compressor the drive goes offline and then can't burn the disc, so I lose that whole session.  Turns out that Pioneer (by their own admission) is not made to be fully compatible with Macs!!  In particular Mac Pros.  I took that drive out and replaced it with an LG.  Haven't tested it yet but I'm looking forward to it.
    Eric

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • Haroon Mahmood – how to create electronic signature in pdf files

    Hi,
    I am Haroon Mahmood. I am new to this forum. I want to know, how to create and add the electronic signature in Adobe Acrobat. I want to manage my signature documents for online work purpose.So that, if I need to sign a form, I can easily add my electronic signature to any PDF. So I never need to print my electronic signature to sign a form.
    Thanks & Regards
    Haroon Mahmood

    Hi Haroon ,
    Please follow these steps
    Launch Acrobat or open a PDF>Fill & Sign>Place Signature >As you will click on that option you will be prompted create signatures in different ways.
    Select any of them as per you requirement.
    You will get more options under the Fill & Sign tab.You can perform various operations using the same.
    Please refer to the following link for more information.
    https://helpx.adobe.com/acrobat/using/signing-pdfs.html#get_pdfs_signed_with_echosign
    Please go ahead and give it a try.Let us know how it goes.
    Regards
    Sukrit Dhingra

  • How to create a 300 dpi pdf file?

    I have to send a 300 dpi PDF file, and I'm using Adobe Reader XI. But I can't find a way to raise the resolution or the files I create. What can I do?

    Welcome to a surprisingly complicated world.
    Adobe Reader is not an editor. Adobe Acrobat is an editor.
    PDF files do not have a simple resolution. Rather, they are a mixture of text, line art and shapes - neither of which have resolution - and images. Images each have a separate resolution.
    Acrobat Pro has a preflight tool. It can check things like "are there any images less than 300 dpi".
    No responsible tool would ever INCREASE the resolution of files you create. This would vary between pointless and dangerous; it could have a catastrophic effect on work you pay a lot of money to print. You must start with higher quality originals, if you have a low resolution PDF it is too late to fix it - like trying to turn chicken soup back into chicken.

  • How to create and attach a pdf file to an email

    I am looking into the feasibility of using email system to send indentical notices along with data attachments to hundreds of companies simultaneously. Each data attachment is corresponding to its own company email.
    Please advise how can I create this file. What tool(s) do I need?
    Thanks in advance for your assistance.
    ML

    user627993,
    First thing is that this forum is for OTN community feedback and suggestions as the forum header says. Second, you have not provided any background of scenario like platform, tools, business case etc, so its impossible to suggest where to post.
    You can go to forum home page
    http://forums.oracle.com/forums/categoryHome.jspa?categoryID=84 and check which one is suitable for your case.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to creat COM object from dll file?

    Hi,
    I tried to read about this topyc, but I didn't found eny example that creat
    COM object. I downloaded jacob.jar
    then I writed:
    ActiveXComponent ax = new ActiveXComponent("C:/MyJava/deploy/SMSCom.dll");
    Object SMSObj = ax.getObject();
    I get error (I put jacob.jar with all athers jars, I don't know way this erre)
    Exception occurred during event dispatching:
    java.lang.UnsatisfiedLinkError: no jacob in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java)file name: SMSCom.dll
    object name: SMSSender
    In VB this is the code:
    Object SMSObj = CreateObject("SMSCom.SMSSender");
    SMSObj.password = pass;
    SMSObj.Username = name;
    SMSObj.Source = phone;Thanks

    In Eclipse:
    1- To include jacob.jar for compile / run:
    Choose the Java perspective, then in the Package Explorer right-click on the project and choose Properties.
    Select Java Build Path from the left pane then the Librairies pane from the right.
    Click on Add External Jars button and select the jacob.jar file then click Open then Ok.
    2- To make jacob.dll and SMSCom.dll "visible" for run:
    Open your Debug (or Run) Java application configuration (the one for your project's main class).
    Select the Environment pane then click on Select button.
    Select Path and click on Ok button.
    Then re-select Path and click on Edit button.
    Add the two appropriate folders for jacob.dll and SMSCom.dll in the Path and click on Ok then Apply.
    Regards

  • How can I copy text from pdf file to Pages or Word?

    I recently changed to Lion. When I try to copy pdf text from either Preview or Adobe reader into either Pages or Microsoft Word I get all undecipherable characters. This did not happen in previous OSX versions. Is there a fix?

    I have found that some pdf's are "protected" so that it is not possible to copy text. Does this happen to all your pdfs, or just some?
    If it is just some of the pdfs, then this might help:
    http://hints.macworld.com/article.php?story=20040622214927503
    charlie

Maybe you are looking for