Create empty document

Hi, I try to create empty pdf document using C# from standalone app. Here is my code.
CAcroApp acroApp = new AcroAppClass();
acroApp.Show();
AcroPDDoc pdDoc = new AcroPDDocClass();
Object jsObj = pdDoc.GetJSObject();     //  jsObj = null in this
Type T = jsObj.GetType();
Object doc = T.InvokeMember(
                "newDoc",
                BindingFlags.InvokeMethod |
                BindingFlags.Public |
                BindingFlags.Instance,
                null, jsObj, null);
if I guessed rigth ,  my problem is the obtaining  AcroPDDoc object. I've tryied to get it through AVDoc object, but got pdDoc=null in this case.
AcroAVDoc g_AVDoc = new AcroAVDocClass();
CAcroPDDoc pdDoc = (CAcroPDDoc)g_AVDoc.GetPDDoc();
I have not found any examples for obtaining JSObject without opened document. How can I do it?

My purpose is create pdf file from image. I've wanted create a document, and then added  annotation. I already have a ready plugin which inserts image to rectangle of annotation.

Similar Messages

  • Create empty Document with DOM level 3

    im trying to create an empty document using the DOM level3 api, and am not sure how to do it. i can parse an existing document using an LSParser etc, but not sure if i can use the same implementation to create an empty document, there seems to be no method to do this.
    any ideas?
    Adam

    The org.w3c.dom.ls API is for loading, storing and filtering an XML document.

  • Error: Empty document found - proceed without sending message.

    Hi,
    I am using FCC in my Sender CC.
    Error:  Information     Channel CC_XXXXXXXXXXXXXXXXXX: Converted complete file content to XML format.
              Warning     Channel CC_XXXXXXXXXXXX: Empty document found - proceed without sending message.
    Thnaks,
    Satya

    Hi,
    Check this link.. Do you create input file similar to the link describe?
    Empty document found. Proceed without sending message

  • How to create a document/report on all objects in the BW system?

    Hi,
    The requirement in our company is to create a document/report with the list of all the objects that exist in the BW system for various applications. This list should contain the technical details of the different objects and where an object is used, what's the source for the object etc. The information should be similar to that in the Metadata repository but it should be one single document/report which includes all the objects.
    I tried using the 0TCTBWOBJCT info object (content browser) but it was not of great help.
    Can anyone help me out in this task?
    Thanks,
    Anu

    Hi,
    Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
    Hope it helps
    bhaskar

  • Error while creating a  Document  in CV01N

    Hi Gurus,
    I am trying to  create  a document through CV01N and  i wnat to attach it to material .
    We have created some Z- Document types and  the  origin for  the  file(source) is picked up from another system.
    Suddenly iam creating an error  File extension type XX  not   allowed  for  work station PDF.
    I can able to  pickup  documents from my Desktop, but  when i try to pull it from the  document  management system by mentioning the URL it  showing me the above error.
    Users are able to create  by  specifying the URL path till last week.But this week they are  facing the above problem
    Can anybody  have any idea of where we missing or  what the error is. Suitable answers will be rewarded
    Thanks in advance
    Regards
    Venkat

    Hi,
    I am newly using BI publisher . I am using 10.1.3.4.0 . I am just trying to create a report in test name. that is the first step to create a report where i am getting error. I am using default RPD paint , where all the user and Groups are defined .

  • Error while creating delivary document

    Hi
    i got error while creating delivary document
    "Delevivary documents could not be created"
    Thanks&regards
    kishore kumar

    Hi Kishore,
    Please check the sales order is this relevent for the delivery or not.
    Check the copy control settings between your sales document type and delivery document type in VTLA transaction.
    Check the incompletion log for the sales order.
    I hope it will help you,
    Regards,
    Murali.

  • I created a document in Pages on my ipad and now it won't open up. How can I fix this?

    I created a document on my Ipad and when I finished it, I closed Pages. When I went to re-open Pages and see the document it wouldn't open. I click on the document and it shows the processing symbol but then the entire program closes. All of the other documents within pages open up fine, just not this one. Any help?

    Try resetting your iPad.  Hold the on/off and home buttons together for 7 or 8 seconds till the Apple logo appears.
    I'm assuming your default is to save Pages documents to iCloud, and that you had a good WiFi connection when you closed Pages the last time you tried to save the document.

  • Program does not create PCP0 documents for TMS Idocs

    Hi All,
    We have a dialy job that will catch up all payroll/tms idocs that is being received by the system. The program will automatically creates a document in the tcode PCP0 for every idocs that it has gathered both Idocs that have no errors and Idocs that have errors. Would like to ask if you have experienced the cause of this?
    Regards,
    S. T.

    Hi wyo3witt,
    I checked your account and saw that your subscription had been canceled, but that you hadn't been refunded yet. I processed a refund for you (transaction ID 0066152640); you see it in your account in 2-3 days.
    Best,
    Sara

  • FKPE1 - Create additional document FI-CA

    Hi all,
    I have a problem in FI-CA.
    When I post a document with FPE1 I want to create another document automatically.
    I have seen that it is possible with events (trx FQEVENTS).
    Probably the event i have to use are 10, 20 , 30. I have implemented 10 , 30. In event 30 i call fm FKK_CREATE_DOC_ADDITIONAL, but the system dump for an error message (Internal errore: lock missing for modification..).
    Anyone know how these event work?
    Thanks,
    enzo

    Were you able to make these events work. I am getting short dump  MESSAGE_TYPE_X.
    Please suggest .

  • I have been creating a document in numbers on my iPhone and synced to iCloud. Now I cannot open it, and when trying to download via browser I get an error message. How can I recover this document?

    Dear all,
    I have created a document on my iPhone, and stored it on iCloud. I have updated the document both on my iPhone and on my iPad. Now, I cannot open the document on my iPhone anymore, even a reset of the phone did not help. Via iPad I also cannot open the file, and when I try to download it to my PC via icloud.com I get an error message.I suspect that the file has become corrupt as I have updated it on the iPhone while I did not have network connectivity.
    I have two questions:
    1.) Is it possible to recover an earlier version of the file?
    2.) What can I do to prevent this from happening again in the future?
    3.) Does the iPhone sync changes to iCloud in the background or does the application need to be active?
    Thank you,
    Niftan

    Welcome to the Apple Community.
    I have seen previous versions mentioned in a pop up message before on iCloud.com, but I'm not really sure at all how it would help, as I couldn't get it to do anything.
    The best advice I have at this time is to back up your work on your iOS device by regularly saving it to iTunes, if anything goes wrong you can then either load it into the numbers app again on the device or recover it via iTunes on your computer.
    My syncs are immediate, I never get chance to see if it works in the background, sorry.

  • Pages document will not open, it says I need a newer version of Pages.  I have already installed and created this document in the new version of Pages

    I just created a document in Pages.  Now when I try to open my document in Pages I am given a message that I need a newer version of Pages to open it.  When I go to the Appstore it shows that I have already downloaded the latest version.

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Delivery document not being picked while creating shipment document

    Dear All,
    Issue is regarding creation of shipment document.
    As i am creating shipment document in VT01N, am unable to get the delivery doc . ie., delivery document is not picked in shipment creation.
    I have created a sales order, picking is completed n saved, PGI not yet been done.
    Am unable to create a shipment document due to delivery document not being picked.
    i/p's will be of great help.
    with regards,
    Vijayashree

    Dear all,
    The issue is solved.
    As the Route was not picking in Sales Order so the delivery was not picked in shipment creation.
    Route determination setting was not correct.
    Regards,
    Vijayashree

  • How do I create a "document-centric" Web Service?

    By document-centric I'm talking about receiving a SOAP message on the server-side, where the initial parsing and security processing (this aspect is very important) is performed but then allowing the developer to access the delivered "payload", i.e. the XML, and perform whatever mapping/processing that is required without automatically mapping to the "standard" auto-generated Java objects.
    It is important that the client receives the "full" complex WSDL and can therefore generate their proxy classes with whatever tool (or language) that is appropriate.
    On the server side we do not want to create hundreds (if not thousands) of Java Bean clases as we already have the legacy code to map XML to Java. The idea is that JAX-RPC only instantiates the SOAPElements that represent the "raw" message, or, if possible, doesn't instantiate any objects whatsoever.
    I've spent many days now trying to find a single well-worked example for this type of Web Service without success - many, many references of the style "..and you can then create a document style web service.." but without the all important "how".
    From what I've read a custom type-mapping and/or serializer/deserializer could be the answer but again no good, solid examples are forthcoming.
    Another alternative seems to be to create the server side stub-classes using a "dummy" WSDL with the elements set to "anyType" but then distribute the "genuine" WSDL to the clients - we've got a simple example of the kind working but I don't like the idea of "tricking" the system in this way.
    I'm working with WASD 5.1, which in theory conforms with JAX-RPC so any ideas offered here should also apply in that environment.
    Has ANYONE successfully created a service of this type?
    Any help with this issue would be very much appreciated and rewarded (with Duke Dollars of course).
    Chris.

    Chris,
    I too noticed that most vendors take the RPC centric approach. Its because most of the industry examples of how WSs were used were simple enough to implement using RPC and anything more (document literal) would add to the complexity of implementation. This is something that is feared by many developers, especialy the .Net crowd who seem to want everything done through a wizard menu interface and don't care about other WS implementations at all.
    This is sort of changing. J2EE 1.4 is WS-I compliant, so when you compile server side ties from WSDL you can specify a document literal option and WS-I compliance. This gives you access to the SOAPElement objects. There's still issues with going between W3C DOM and SOAP elements but that's just API inconvenience, not a show stopper. As the inudustry develops more complex WSs we will see the vendors change their tools to better support this...
    Anyway, some more help...
    I use the the following wscompile options to build from WSDL for document literal WSs.
    wscompile.bat -d . -nd . -s . -f:documentliteral -f:wsi -keep -model model.gz -import config.xml
    wscompile.bat -d . -nd . -s . -f:documentliteral -f:wsi -keep -model model.gz -gen:server config.xml
    My "wrapper" elements look like this...
    <xs:element name="AComplexXMLResponse">
         <xs:complexType>
              <xs:sequence>
                   <xs:element ref="myNS:MYComplexXMLType"/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    If I do this:
    <xs:element name="ASimpleXMLResponse">
         <xs:complexType>
              <xs:sequence>
                   <xs:element name="AName" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    I still get the JAXRPC language bindings to a string, but in my case I don't really care. This may well be different for you.
    What I do to manage these elements is to split up the WSDL, WS wrapper element definitions and actual data XML schema definitions into separate documents. This means I have a WSDL which IMPORTS my message schema (this is where I define wrappers for in and out XML) which INCLUDES the actual DATA XML schema that I have.
    The WSDL import looks like this:
    <types>
         <xs:schema>
              <xs:import namespace="http://schemaURI" schemaLocation="./relativePath/WrapperElementSchema.xsd"/>
         </xs:schema>
    </types>
    The wrapper element schema has:
    <xs:include schemaLocation="./ActualDataSchema.xsd"/>
    This way I can easily replace the wrapper documents with just anyType references if something doesn want to play nice. The data schema file and the WSDL stay the same. This minimises the impact on what you have to change in your distribution. This is important as the WSDL is often generated on the fly by your WS environment and so can not be easily changed once you build your WSs, but the schema files it references are easily changed without affecting your code.
    Another reason for the wrapper elements was a JWSDP 1.2 issue (I don't know if this has been fixed in 1.3), where if you had the same method parameter signature in a web service (the parameters it took were the same XML types, for instance if you have an add and update methods for the same document input) JWSDP would get confused at runtime. It did not take account of the SOAP action that came along with the request to determine which operation to call. It just took the incoming XML, saw that it was of a certain type and it passed it to the first operation that took this element, which is VERY wrong. By using the wrapper elements, I could give all my input and output elements for each method different names (I used a naming stragegy that appended a 'request' or 'response' string to the method name to form a method parameter element name. This is a pain in the ass, but works and does wonders for interoperability with other WS vendors. Like I said before, I've got this working with JWSDP, BEA and .Net servers and clients.
    Hope this helps,
    If you think there is a real need for a public HOWTO on this, I could write one with a full step by step guideline that shows where I broke my legs getting this stuff to work. But this would eat into my sleep time :-/ TO JUDGE INTEREST I call on all people interested in a tutorial to respond to this thread (esp people involved with the JWSDP WS tutorial documentation). If I get 5 or more different people responding I will loose some sleep for the good of this community. Otherwise, I will just try to help you when I have time to read the forums.
    Kuba

  • How to create shipment document with out inbound delivery document

    Dear Friends
    How to create shipment document with out outbound/inbound delivery document.
    In my client scenario, there is no inbound delivery for normal purchases.
    Just there are raising the PO to vendor, then they are doing MIGO for goods receipt.
    Can we do shipment creation with reference to PO?
    If it is possible, how it will be?
    Please let it solve
    With regards
    Lakshmikanth

    Dear Sameer,
    Please go to transaction VT01N here you enter Transportation planning point and shipment type then press enter.
    Now system will take you to the shipment document creation screen here you click on Select deliveries or press F6 now system will take you to the select outbound deliveries screen in this screen you enter selection data then execute, now deliveries will get assigned to that shipment.
    After assigning the deliveries enter the remaining data then complete the shipment finally save the shipment document.
    For more information please go through this SAP help link
    Note:- Shipment process need to be carry out for the deliveries before PGI.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

  • In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    May you open your eyes before creating a new thread ?
    Your question was already asked and answered today.
    https://discussions.apple.com/thread/3177074?tstart=0
    Yvan KOENIG (VALLAURIS, France) jeudi 14 juillet 2011 14:40:40
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for