Get pdf filename during initialize:

I wonder to get the pdf filename during initialize, may i know is it possible?
Thanks your concern.
Tham

ASFileSysOpenProc is not suitable. It is used for the opening of all
files, not just PDF files, and you do not provide it for the standard
filesystem: it is a standard part of Acrobat.
Since it is documents you are interested in, rather than files, you
would want to look at the document related callbacks (CosDoc, PDDoc,
AVDoc). I can see why you wouldn't find it though, the Acrobat API
documents are breathtakingly awful, ever since someone had the bright
idea of replacing a human editor with a programmer generated file.
You need to use the PDDocDidOpen notification (notification is the
buzzword here, not callback), registered with
AVAppRegisterNotification. Try documents from an older version of the
SDK, the Acrobat 8 SDK is beyond a joke.
Aandi Inston

Similar Messages

  • Getting PDF filename with unicode chars

    Hello,
    I'm trying to write a plugin that gets the file path of the current active document. The code looks like this:
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pdDoc = AVDocGetPDDoc(avDoc);
    ASFile file = PDDocGetFile (pdDoc);
    ASPathName filePath = ASFileAcquirePathName (file);
    This works fine for most documents, but for documents with unicode characters in the name each unicode character is replaced with '.' in filePath. For example, if the document is "测试中文关键词搜索!@#$%^&().pdf", then filePath becomes ".........!@#$%^&().pdf". Am I missing something required to get unicode filenames?
    Thanks.

    You were right, the plugin was getting a char* from ASFileSysDisplayStringFromPath. I removed that and added this which seems to have fixed my problem:
    ASText pathText = ASTextNew();
    ASFileSysDisplayASTextFromPath(ASGetDefaultFileSys(), filePath, pathText);
    wchar_t *pathString = (wchar_t*)ASTextGetUnicode(pathText);
    Thank you!

  • Getting  : Error occurred during initialization of VM when compiling

    Hello!
    I am using Jdeveloper 11.1.1.6.0 and all of a sudden when I try to compile I get the following errors...
    [scac] Error occurred during initialization of VM
    [scac] Could not reserve enough space for object heap
    I have tried to look for this issue on the web but non of the possible solutions seem to work. I was wondering if anyone might be able to provide some assistance on this.
    Thanks in advance.
    Edited by: 832187 on Jul 26, 2012 8:17 AM

    I fixed this by going into the ant-sca-compile.xml and changing the <jvmarg value="-Xmx512m"/>below.
    Before
    <target name="scac" description="Compile and validate a composite">
    <scac input="${scac.input}" outXml="${scac.output}" error="${scac.error}" appHome="${scac.application.home}" failonerror="true" displayLevel="${scac.displayLevel}">
    <jvmarg value="-Xms128m"/>
    <jvmarg value="-Xmx1024m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=512m"/>
    <!-- jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/ -->
    </scac>
    After
    <target name="scac" description="Compile and validate a composite">
    <scac input="${scac.input}" outXml="${scac.output}" error="${scac.error}" appHome="${scac.application.home}" failonerror="true" displayLevel="${scac.displayLevel}">
    <jvmarg value="-Xms128m"/>
    <jvmarg value="-Xmx512m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=512m"/>
    <!-- jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/ -->
    </scac>

  • Acrobat 9 Batch Processing - Get PDF filenames from folder?

    Hello,
    Can anyone provide me with an example with how to use Batch Processing (when set to a specific folder/files) to get a list of filenames in that folder? I haven't been able to find any examples online. There doesn't seem to be any built in batch sequences that automatically do this so I assume it will need to be done with javascript?
    Ultimately, I need to automate a process (I was hoping to create a batch sequence to accomplish this) that will allow me to prompt a user to pick a source folder of PDFs and then based on that selection, run a Javascript that I create which will merge all PDFs in that folder into a new PDF, apply some crop setttings to each page, and then prompt the user where to save the merged PDF?
    Has anyone ever done anything like this? I would love to see an example of how this might be able to be achieved.
    Many thanks in advance.

    Have you tried to create a test batch process (now called Actions)?  Actions in Acrobat 10 has the "merge all files in folder" option, and batch processing in previous versions has always included a page crop commad as well as an option for asking the user where to save the file.
    There are lots of examples and articles on this topic at http://www.acrobatusers.com
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • How can I get a filename during or after saving in CS4/5?

    I'm trying to get the new filename of a file the user is saving.  The way I'm trying to do it right now is to wait until after the file is saved, and then just check the current filename.
    In CS5, I found kAIDocumentWritePostprocessNotifier to be notified after a save,.  But CS4 only has kAIDocumentWritePreprocessNotifier.  I thought of using a timer, but I was wary that my plugin might be shut down before I can take an action if the user is shutting down Illustrator and saving.  Is there some way to emulate this functionality?  Is there a way to check when the file has been saved?  That'd at least let the timer length go under a second safely, by checking repeatedly.
    Or, better yet, is there just a way to get the new filename directly?
    Edit: It appears Postprocess is still too early in CS5.  So, any answer will be helpful for both CS4 and CS5.

    Hello,
    FTP From PL/SQL, look at this,
    http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
    something like this,
    DECLARE
      l_conn  UTL_TCP.connection;
      l_list  ftp.t_string_table;
    BEGIN
      l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
      ftp.list(p_conn   => l_conn,
               p_dir   => '/u01/app/oracle',
               p_list  => l_list);
      ftp.logout(l_conn);
      utl_tcp.close_all_connections;
      IF l_list.COUNT > 0 THEN
        FOR i IN l_list.first .. l_list.last LOOP
          DBMS_OUTPUT.put_line(i || ': ' || l_list(i));
        END LOOP;
      END IF;
    END;
    / http://www.oracle-base.com/dba/miscellaneous/ftp.pks
    http://www.oracle-base.com/dba/miscellaneous/ftp.pkb
    Hope this helps,
    Christian Balz

  • Error ocurred during initialization of VM. Unable to load native library...

    Hi,
    I´m trying to install Oracle 9i on a PC with Suse 9.2.
    when I put the first CD it comes with this error:
    Initializing Java Virtual Machine from /tmp/OraInstall2006-05-04_11-13-11PM/jre/bin/java. Please wait...
    Error occurred during initialization of VM
    Unable to load native library: /tmp/OraInstall2006-05-04_11-13-11PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
    I´ve seen that there was a similar issue in 2004 and I´ve trying to do what it says but it didn´t work this time.
    Unable to load native library:
    Could everyone help me to install Oracle??? I´ve been trying it for a few days and doesn´t work.
    Regards,

    I had same problems long time ago. Ok, I try to remember.
    First I read the recommandation. You need a special GLIBC-Library to support the JAVA 1.1.8 runtime environment.
    Some of the Oracle9i tools are compiled with gcc 2.95 compiler.
    You may need ”gcc_old for SLES9” for linking of those tools.
    gcc_old-2.95.3-175.2.i586.rpm is included in SLES 9 SP2 CD1
    For Suse you can obtain a package called orarun. You will get further support for installing, starting and stopping ORACLE. Please look at http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf.
    Good luck.

  • DB13 error: 0003 Error during initialization

    Dear All,
    Since last 2 days, Production backup is getting failed with error "0003 Error during initialization".
    Strangely, there are no related logs to investigate further... Nothing was changed in backup related configurations.
    We are using Tivoli (TSM) backup solution..
    System Details: HP-UX 11.31i, Oracle10g (10.2.0.4), ECC 6.0
    In DB13 Action logs, it is showing following details only...
    Action: Whole database offline backup
    Brbackup logfile : bedjjsnb.log   ##### Actually it should show filename something like "bedjjsnb.aff"
    Return Code : 0003 Error during initialization
    When I click on "Show Actiion/Detail log", it shows nothing... (Log file does not exists..)
    There is no file with above filename in /oracle/<SID>/sapbackup and in back<SID>.log
    I have checked below things :
    1. BRTOOL permissions (As per note 113747 - Permissions for DBA tools BRTools and SAPDBA)
    2. /oracle/<SID>/sapbackup permissions (it is 755 with ora<sid>:dba ownership)
    3. I have checked /var/adm/syslog/syslog.log, but there is no error.
    4. Test for communication between SAP server and Tivoli is OK.
    5. TSM Session query is also returning desired result.
    6. I made sure that there are free and scratched tape in TSM for SAP backup pool.
    7. No other backup was running at the time of SAP backup.
    I have tried taking backup on DISK which is successful without any errors or warnings.
    What else I can check ? Am I missing something ?
    Any inputs will be highly appreciated...
    I will try to fire backup manually later in the evening after business hours to see what exactly going wrong in between.
    Regards.
    Rajesh Narkhede

    Hi John,
    See the last few lines from output below: (SID and Hostname removed...)
    BR0110I Backup mode: ALL
    BR0077I Database files for backup:
    /oracle/<SID>/origlogA/log_g11m1.dbf
    /oracle/<SID>/origlogB/log_g12m1.dbf
    /oracle/<SID>/origlogA/log_g13m1.dbf
    /oracle/<SID>/origlogB/log_g14m1.dbf
    /oracle/<SID>/origlogA/cntrl/cntrlHRP.dbf
    BR0061I 53 files found for backup, total size 133738.270 MB
    BR0143I Backup type: offline
    BR0130I Backup device type: util_file
    BR0109I Files will be saved by backup utility
    BR0124I Query option set - no processing
    BR0056I End of database backup: bedjndvn.qub 2010-06-04 17.01.32
    BR0280I BRBACKUP time stamp: 2010-06-04 17.01.32
    BR0052I BRBACKUP completed successfully
    <HOSTNAME>:ora<sid>>
    Nothing seems to be wrong...
    Regards.
    Rajesh Narkhede

  • PDF Filename in WebResource URL

    Hi,
    I've got a maybe simple problem, but didn't find any solution.
    I get an PDF File from my application and open it as an external window.
    This works fine
    The URL contains not the filename but "unknown.pdf...".
    How can i change that?
    Following the code where i read the file and open the external window.
    File file = controller.getReportFile(...);
    byte[] fileData = null;
    try {
       fis = new FileInputStream(file);
       fileData = new byte[(int) file.length()];
       fis.read(fileData);
       fis.close();
    catch(Exception e) {
    IWDWindow = null;
    try {
       IWDWebResource webResource = WDWebResource.getWebResource(fileData,    WDWebResourceType.PDF);
       window = wdComponentAPI.getWindowManager().createExternalWindow(webResource.getURL(), "Report", false);
       window.open();
    catch(Exception e) {
    The URL looks like this (short form..)
    ".../~wd_key29_......./unknown.pdf?sap.session....."
    I appreciate any help

    Thank you for your reply.
    I'll try to detail what i want to do.
    The context of the view looks like this:
    Reports.creationDate
    Reports.filename
    Reports.filesize
    Reports.period
    This context is build up in wdDoModifyView and each context element will be bind to a column of a table, which i create manually.
    The table is now filled with these context. One column includes a download link (LinkToAction) which is binded to the action "onActionDownloadReport".
    In this action i read the leadSelection, get the filename of the current context element and send it to my background application which returns me the file.
    The rest is shown in the first posting.
    I tried to create the context attribute PdfSource as binary and the code you given me.
    But nothing happens. It's also "unknown.pdf"
    Maybe i have to bind the PdfSource to LinkToAction?
    Following the code where i create the download link in table.
    IWDLinkToAction link = (IWDLinkToAction) view.createElement(IWDLinkToAction.class, null);
    link.setText("Download");
    link.setOnAction(wdThis.wdGetDownloadReportAction());
    column.setTableCellEditor(link);
    table.addColumn(column);
    Regards
    Ingo

  • Error occurred during initialization of VM. Could not reserve enough space

    Dear All,
    I am trying to install SAP NetWeaver 7.0 SR2 SP9 on Oracle 10.2 and platform is Windows 2003 32 bits. While installing, in t he restarting the JAVA Instance step, server0 node is getting shutdown. When I further analyzed dev_server0 log, I could get below useful information:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    [Thr 6008] JLaunchIAbortJava: abort hook is called
    [Thr 6008] **********************************************************************
    *** ERROR => The Java VM aborted unexpectedly.
    *** Please see SAP Note 943602 , section 'Java VM crashes'
    *** for additional information and trouble shooting.
    [Thr 6008] JLaunchCloseProgram: good bye (exitcode = -2)
    I referred the note mentioned above and it inturn referred to note# 940893. I followed many other sap notes also. However my above problem did not solve yet. I have checke my JAVA SDK version also. It is j2sdk1.4.2_11 and seems to be fine. My systems memory is 3 GB and I gave 20 GB as Virtual memory. I dont think that it should be a memory problem. However somewhere I am lost and can not get the grip over the problem  to resolve it.
    May I request all of you to kindly help me on above issue? Please let me know if you need any more information.
    Waiting for your kind replies.
    Regards,
    Faisal

    Dears,
    Thank you very much for your replies. The heap size was 1024. I changed it to the below:
    Heap Size=512 (earlier 1024)
    Changed below paramters in configtool:
    -Xmx512m (earlier 1024)
    -Xms256m (earlier 1024)
    Hope this information will be helpful to others as well.
    Once again, I thank both of you to guide me in proper directions.
    Regards,
    Faisal

  • Instead of getting PDF got XML output Bi publisher report

    Hi ,
    While i run the concurrent request i got the below :
    Executing request completion options...
    Output file size:
    335
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 3715769 on node CORPT228V at 14-SEP-2012 07:50:11.
    Post-processing of request 3715769 failed at 14-SEP-2012 07:50:11 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    instead of getting pdf output i got xml o/p....
    thanks in advance....
    Regards,
    Doss

    Alex,
    I have checked the log ...i did find the below,
    [9/14/12 8:13:23 AM] [90939:RT3715787] Output file was found but is zero sized - Deleted
    [9/14/12 8:13:23 AM] [UNEXPECTED] [90939:RT3715787] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 17 more
    [9/14/12 8:13:23 AM] [90939:RT3715787] Completed post-processing actions for request 3715787.
    [9/14/12 8:15:47 AM] [GSMServiceController:90939] New Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [9/14/12 9:03:39 AM] [GSMServiceController:90939] Received shutdown request.
    [9/14/12 9:03:39 AM] [GSMServiceController:90939] Preparing to shutdown service.
    [9/14/12 9:03:39 AM] [GSMServiceController:90939] Stopping all Service Threads.
    [9/14/12 9:03:39 AM] [OPPServiceThread0] Preparing to shut down service thread.
    [9/14/12 9:03:39 AM] [OPPServiceThread1] Preparing to shut down service thread.
    [GC 25492K->7906K(63424K), 0.0562769 secs]

  • How do I get PDF forms to export to excel in the desired order?

    How do I get PDF forms to export to excel in the desired order?
    Here is what I have done:
    As taken from another post:
    Choose Forms > Manage Form Data > Merge Data Files Into Spreadsheet.
    In the Export Data From Multiple Forms dialog box, click Add Files.
    In the Select file Containing Form Data dialog box, select a file format option in File Of Type option (Acrobat Form Data Files or All Files). Then locate the form files that you want to merge into the spreadsheet, select them, and click Select.
    Repeat the previous step to add form data files that are in other locations, as needed.
    Click Export. Then select a folder and filename for the spreadsheet, and click Save.
    In the Export Progress dialog box, click either View File Now to open the spreadsheet file or Close Dialog to return to Acrobat."
         The problem now is that Adobe populates Excel in ABC order of the form, based off of the name of each box in the form. For example, if my form has three text boxes, named A, B, and C, then Adobe will export to Excel as such:
    Row 1 =         A                              B                              C
    Row 2 =         data entered             data entered              data entered
    where 'data entered' is whatever the user typed into the form boxes. But what if I want a different order for exporting, and I don't want to rename my text boxes? What if I want:
    Row 1 =         C                              B                              A
    Row 2 =         data entered             data entered              data entered   ?
    Is there a way to do this in acrobat x or xi?
    Thanks

    I don't have time to test right now, but there was a change with Acrobat 10 where it exports according to the tab order, which you may have to set manually, so give that a shot. Otherwise, you'll have to process the file after it's exported if you need the fields in a particular order. This wouldn't be too difficult to do with something like a VBS or JS script in Windows.

  • How to get image filename in indesign cs3

    Hi,
        I want to get a filename of a selected rectangle frame graphic child item like tiff image or pdf file. Please help me with a code snippet.
    Thanks,
    K.Saravanan.

    app.activeWindow.activeSpread = myDocument.spreads[j];
    app.activeWindow.zoom(ZoomOptions.FIT_SPREAD);

  • FM10 Book to PDF - show title (not PDF filename) in Reader header?

    FrameMaker 10.0.2.419 + Distiller X Pro 10.1.438 -> Adobe Reader X
    I have a FM book file with a title along the lines of 'Worked Examples'. When I save it to PDF with Distiller and view the PDF in Adobe Reader X, the reader's header bar shows the PDF filename e.g. wex.pdf, but I want it to show the book title Worked Examples.
    I assume there's a setting in Distiller that forces Reader to show the book title not the file name, but having trawled through the settings/help/forums I can't see it. It's probably blindingly obvious (when you know the answer!), but can anyone tell me how I can get Reader to show a book's title in its header?

    Note: I have partially solved this issue by loading the PDF into Acrobat X Pro and going to File > Properties, and on the Doc Properties > Initial View tab selecting 'Show = Document Title', and then saving the PDF. I'm hoping to figure out (or get told!) a way of achieving this from my FM10 book file though.

  • Error occurred during initialization of VM & java/lang/NoClassDefFoundError

    ascertain:tcglive:~/BUILD/bin> ./listJobs
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    ascertain:tcglive:~/BUILD/bin> ./startJobServer -fg
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    We've been trying to get rmiregistry started but have noticed the following discrepancy on the server.
    ascertain:tcglive:~> which java
    /usr/bin/java
    ascertain:tcglive:~> echo $JAVA_HOME
    /usr/local/j2sdk1.4.2_03
    There are conflicting versions of java on this box and even though 1.4.2 has been specified in $JAVA_HOME, the environment does not seem to recognise this:
    ascertain:tcglive:~> java -version
    java version "1.2.2"
    Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)

    What does
    which javasay?

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

Maybe you are looking for

  • Query: How do you add a Total field and a Calculation

    Hi Experts, I have writen the following query with the Query Generator. I have 2 questions: I need to display the Total of column T2.[OpenSum]. How do I write this in the Query? I need the T2.[OpenSum] to be multiplied with T3.[Commission] - on the l

  • ORA-12514 TNSlistener does not currently know of service requested in conne

    When I connect in command prompt using username,password & Host String(tnsNames.ora). Its succeed as seen below. C:\>sqlplus sonia/mypass@sonia - In this line First sonia is the userName & second Sonia is the host from the tnsnames.ora SQL*Plus: Rele

  • WRT54GS and wireless xbox

    Maybe stupid question but I'll ask anyway.  Just bought XBox 360.  Have a Linksys WRT54GS Wireless Router.  Do I need to purchase a wireless adapter for the Xbox 360 or is one built in and all I need to do is set it up? Solved! Go to Solution.

  • Force Check Out For Infopath Form while editing in browser.

    Hi, Can Someone tell me How to Force Check Out for InfoPath form while editing in browser.  Any Help Would be more than Welcome.

  • Slow internet on Mac Pro?

    Any idea why my 2009 (Nehalem) Mac Pro gets a 9.74 download speed on Speedtest.net but my 2009 MBP and 2011 MBA both get speeds above 20? All are obviously on the same wireless network and all are running Lion... could it be the Airport Card in the M