How to find if there is a file using the FrameMaker API?

How do we find such a file (with pdf / GST file given path) is in force in a folder given using the FrameMaker API?

You can use the function F_FilePathProperty() FDK to check if there is a way (as a FilePathT). It also provides information about whether the path is writable, readable, is a directory or a file.

.. .Scott

Tags: Adobe FrameMaker

Similar Questions

  • How to find a specific voice memo file in the backup from my iPhone to my Mac? I know where to find the backup, but not how to recover specific files. Thank you.

    How to find a specific voice memo file in the backup from my iPhone to my Mac? I know where to find the backup, but not how to recover specific files. Thank you.

    You can't look "inside" a backup. Just use iTunes to sync with your iPhone, then you'll see a separate category for voice memos in the sidebar.

  • To make the first page of the file as a hyperlink using the framemaker API

    How can I make the first page of the file as a hyperlink using the framemaker API?

    This should make the entire page as clickable to open the link on the pdf creation.

    Thank you

    ASHA Rayakar

    Hi Asha,

    If you have managed to make a hypertext link at all, you are on the right track. From your description, it appears you are trying to use an existing text frame to place your marker of hypertext, a block of text that already contains text. If you put a hypertext marker in a paragraph with text, in fact, the only area that is clickable will be this paragraph. There is nothing you can do about it... This is the main behavior of FrameMaker.

    If you put a hypertext marker in a block of text that contains zero text (not even a single space), by default FrameMaker making this whole image map area. So if you try to make a whole page clickable, you will draw a new block of text that covers the entire page and insert the marker of hypertext, without text. You can experiment with this manually in the GUI.

    In your code, you must use the credentials of the members tr.beg.objId and tr.end.objid FO_Pgf. Looks like you might be using variable ID which is incorrect. If you do not have an ID of the variable, you can find the location/range of corresponding text including the FP_TextRange property. This will return the good ID FO_Pgf you need.

    If you are looking for the text block that contains a variable, you can use something like:

    F_TextRangeT tr;

    F_ObjHandleT textFrameId;

    TR = F_ApiGetTextRange (docId, varId, FP_TextRange);

    textFrameId = F_ApiGetId (docId, tr.beg.objId, FP_InTextFrame);

    This help at all?

    Russ

  • How to manage when there are huge files in the batch program?

    Hi all
    There are huge files in my lot, and when I run the batch, the performance was very poor, then, how I divide it into several small batches to improve performance?

    The solution below will work for single batch processing thread. With these lines, I was able to download 300 K Recoreds in ciustom table in 7 min.

    int i = 0;
    Read all the records in the input file
    While (not null (record = {readRecord()))}

    i ++ ;
    If (I % 500 == 0) {}

    ((FrameworkSession) SessionHolder.getSession ()) .getHibernateSession () .flush ();
    ((FrameworkSession) SessionHolder.getSession ()) .getHibernateSession () .clear ();
    }

    Process record
    } / / End then that

  • How to validate totall character in a file using the extrnal table

    Hi all

    I have an external as table below

    CREATE TABLE 'WE_INT '. "" XTB_INVADJ_FROM_POS ".

    ("TRANSACTIONDATE" VARCHAR2 (14 BYTE),

    VARCHAR2 (2 BYTE) "LOCATION_TYPE."

    VARCHAR2 (4 BYTE) "LOCATION_VALUE."

    VARCHAR2 (3 BYTE) "ITEM_TYPE."

    VARCHAR2 (13 BYTE) "ITEM_VALUE."

    VARCHAR2 (5 BYTE) "UPC_SUPPLEMENT."

    VARCHAR2 (2 BYTE) "INVENTORY_STATUS."

    VARCHAR2 (2 BYTE) "ADJUSTMENT_REASON."

    VARCHAR2 (1 BYTE) "ADJUSTMENT_SIGN."

    "SET AMOUNT" VARCHAR2 (8 BYTE).

    VARCHAR2 (4 BYTE) "ADJ_QTY_DECIMAL_VALUE".

    )

    EXTERNAL ORGANIZATION

    (TYPE ORACLE_LOADER

    DEFAULT DIRECTORY 'LOC_SOURCE_POS2RMS_INVADJ '.

    ACCESS SETTINGS

    (RECORDS DELIMITED BY NEWLINE

    CHARACTERSET WE8MSWIN1252

    STRING SIZES ARE IN BYTES

    WHEN LOAD)

    ((1:5) = "TDETL")

    )

    BADFILE "XTB_INVADJ_FROM_POS.bad."

    DISCARDFILE 'XTB_INVADJ_FROM_POS.dis '.

    LOGFILE "XTB_INVADJ_FROM_POS.log".

    FIELDS

    LTRIM

    (

    "TRANSACTIONDATE" POSITION (30:43) DATE,

    "LOCATION_TYPE" POSITION (44:45) TANK,

    "LOCATION_VALUE" POSITION (46:49) TANK,

    "ITEM_TYPE" POSITION (50:52) TANK,

    "ITEM_VALUE" POSITION (53:65) TANK,

    "UPC_SUPPLEMENT" POSITION (66:70) TANK,

    "INVENTORY_STATUS" POSITION (71:72) TANK,

    "ADJUSTMENT_REASON" POSITION (73:74) TANK,

    "ADJUSTMENT_SIGN" POSITION (75) TANK,

    "SET AMOUNT" POSITION (76:83) TANK,.

    CHAR POSITION (84:87) "ADJ_QTY_DECIMAL_VALUE".

    )

    )

    LOCATION

    ("inv.txt"

    )

    )

    REJECT LIMIT UNLIMITED;

    If you see my conetent file that it will be as below.

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-000000400000

    I want to validate the chracters total if this line is to have more or less of 87 87 he must raise the error.

    You can use a column in the external table that contains all characters and a view that selects in the outer table, limiting the lines based on the length of the column that contains all characters, such as shown below.  You can create a separate view for those! = 87 if you want a list of releases.

    Scott@orcl12c > c:\my_oracle_files\inv.txt TYPE of HOST

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000040086

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-000000400087

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-0000004000088

    Scott@orcl12c > CREATE or REPLACE DIRECTORY LOC_SOURCE_POS2RMS_INVADJ AS 'c:\my_oracle_files '.

    2.

    Created directory.

    Scott@orcl12c > external_table CREATE TABLE

    2 ("TRANSACTIONDATE" VARCHAR2 (14 BYTE),

    VARCHAR2 (2 BYTE) 3 'LOCATION_TYPE. "

    VARCHAR2 (4 BYTE) 4 "LOCATION_VALUE."

    VARCHAR2 (3 BYTE) 5 'ITEM_TYPE. "

    VARCHAR2 (13 BYTE) 6 "ITEM_VALUE."

    VARCHAR2 (5 BYTE) 7 "UPC_SUPPLEMENT."

    VARCHAR2 (2 BYTE) 8 "INVENTORY_STATUS."

    VARCHAR2 (2 BYTE) 9 "ADJUSTMENT_REASON."

    10 'ADJUSTMENT_SIGN' VARCHAR2 (1 BYTE),

    11 "SET AMOUNT" VARCHAR2 (8 BYTE).

    VARCHAR2 (4 BYTE) 12 "ADJ_QTY_DECIMAL_VALUE."

    13 total_characters VARCHAR2 (255)

    14)

    15 EXTERNAL ORGANIZATION

    16 (TYPE ORACLE_LOADER

    17 DEFAULT DIRECTORY 'LOC_SOURCE_POS2RMS_INVADJ '.

    18 ACCESS SETTINGS

    19 (RECORDS DELIMITED BY NEWLINE

    CHARACTERSET 20 WE8MSWIN1252

    21 STRING SIZES ARE IN BYTES

    22 LOAD WHEN)

    23 ((1:5) = "TDETL")

    24)

    25 BADFILE "XTB_INVADJ_FROM_POS.bad."

    26 DISCARDFILE 'XTB_INVADJ_FROM_POS.dis '.

    27 LOGFILE "XTB_INVADJ_FROM_POS.log".

    28 FIELDS

    LTRIM 29

    30        (

    31 "TRANSACTIONDATE" POSITION (30:43) DATE,

    32 'LOCATION_TYPE"POSITION (44:45) TANK,

    33 "LOCATION_VALUE" POSITION (46:49) TANK,

    34 'ITEM_TYPE"POSITION (50:52) TANK,

    35 'ITEM_VALUE' POSITION (53:65) TANK,

    36 "UPC_SUPPLEMENT" POSITION (66:70) TANK,

    37 "INVENTORY_STATUS" POSITION (71:72) TANK,

    38 "ADJUSTMENT_REASON" POSITION (73:74) TANK,

    39 'ADJUSTMENT_SIGN' POSITION (75) TANK,

    40 "SET AMOUNT" POSITION (76:83) TANK,.

    41 'ADJ_QTY_DECIMAL_VALUE' POSITION (84:87) TANK,

    42 total_characters POSITION(1:255) TANK

    43        )

    44                  )

    LOCATION 45

    46 ("inv.txt"

    47         )

    48)

    RELEASE 49 UNLIMITED LIMIT

    50.

    Table created.

    Scott@orcl12c > SELECT * from external_table

    2.

    TRANSACTIONDAT LO LOCA ITE ITEM_VALUE UPC_S IN AD AN ADJ_ ADJUSTME

    -------------- -- ---- --- ------------- ----- -- -- - -------- ----

    TOTAL_CHARACTERS

    --------------------------------------------------------------------------------

    20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 086

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000

    040086

    20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0087

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000

    0400087

    20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0008

    TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000

    04000088

    3 selected lines.

    Scott@orcl12c > external_table FROM SELECT LENGTH (total_characters)

    2.

    LENGTH (TOTAL_CHARACTERS)

    ------------------------

    86

    87

    88

    3 selected lines.

    Scott@orcl12c > xtb_invadj_from_pos VIEW to CREATE or REPLACE AS

    2. SELECT "TRANSACTIONDATE"

    3 "LOCATION_TYPE."

    4 'LOCATION_VALUE. "

    5 "ITEM_TYPE."

    6 "ITEM_VALUE."

    7 "UPC_SUPPLEMENT"

    8 "INVENTORY_STATUS"

    9 "ADJUSTMENT_REASON."

    10 "ADJUSTMENT_SIGN."

    11 "QUANTITY ADJUSTMENT."

    12 'ADJ_QTY_DECIMAL_VALUE '.

    13 FROM external_table

    14 WHERE the LENGTH (total_characters) = 87

    15.

    Created view.

    Scott@orcl12c > SELECT * FROM xtb_invadj_from_pos

    2.

    TRANSACTIONDAT LO LOCA ITE ITEM_VALUE UPC_S IN AD AN ADJ_ ADJUSTME

    -------------- -- ---- --- ------------- ----- -- -- - -------- ----

    20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0087

    1 selected line.

  • How to check for charts grouped using the FrameMaker API?

    I have a page with bundled graphics frame and also other graphic objects that are not consolidated or are grouped into a different set. How can I check if all the objects in an image are grouped in one package?

    Michael is correct. Specifically, the graphics have a FP_GroupParent property, which returns the ID of the FO_Group object that the graphic is in (if any). If the graph is not grouped, I believe that this property returns a value of zero. Thus, all graphics within a group will have the same value for FP_GroupParent.

    Note that you can combine both groups, which then makes things much more complicated. A FO_Group object also has a FP_GroupParent property that theoretically allows an unlimited amount of group nesting. I hope that you don't have to deal with that.

    Russ

  • How do I know if a job runs using the JAVA API

    I use this Quick start to create a process that returns all current running tasks. If you look at the code, if the task of the current status is 100 then it is a task accomplished. What is the constant of a running task?

    I looked here , but it does not list a constant assimilates still running. Is the right way to go about this, or should I try something different?

    This link will take you to the TaskStatusTypes javadocs.

    http://livedocs.Adobe.com/LiveCycle/ES/sdkHelp/programmer/Javadoc/com/Adobe/IDP/taskmanage r/dsc/client/task/TaskManagerConstants.TaskStatusTypes.html

    There are 4 State active tasks, CREATION (1) and CREATED_SAVED (2) for the active tasks that start of the process, where the process instance is not created before to have completed this task, and ATTRIBUTED (3) and ASSIGNED_SAVED (4) for the active tasks associated with a process instance.  _SAVED status means that an incremental recording of data was performed for example save to drafts of workspace.

    No active tasks are COMPLETED (100), DEADLINED (101) and CLOSE (102), note that all are > = COMPLETED status, so conversely, any status< completed="" is="">

  • Find and view a network file in the page of the ADF

    Hello

    I have a simple requirement where at the click of a button link in my page ADF, I need to display an html page stored in the network location (e.g. / / < host name > / folder1/folder2/demofile.htm)

    I have only the path and only a substring of the filename, so I have to search for the file in the network directory using this substring. Once I have the file name, I use af:goLink to navigate to the network path and view the file in the browser.

    Here is the piece of code from Managed bean and the jspx

    FindFilebean.java

    .

    .

    path = "" \< host name > \\folder1\\folder2".

    File f = new File (path);

    [] List of the files in the folder = f.listFiles ();

    File latestFile.

    for (file: filelist) {}

    {if (file. ToString(). Contains (fileNameSubstring)}

    If (latestFile== null |) ((latestFile! = null & & latestFile. lastModified() < file.lastModified ())) {

    latestFile= file ;}

    }

    }

    path = latestFile;

    .

    .

    FindFile.jspx

    < af:goLink text = "Print Traveler" id = "gl1".

    destination = "#{viewScope. . "{FindFilebean.path}" targetFrame = "_blank" / >

    < af:popup = "deferred" autoCancel childCreation = "disabled" id = "p1".

    It works perfectly fine when I run a local integrated server, but I get a null value pointeron access to the f.listFiles (); when it is deployed on the weblogic managed server

    I also tried the following:

    1. creates a servlet and tried to read the file using the buffered output stream and display in an inlineFrame

    2 FiledownloadActionListener to read the file and view/download it

    These two approaches work very well locally but display/download a blank page on the server.

    Please suggest what Miss me here and if there is another way to achieve this.

    JDev version: 11.1.2.4.0

    WebLogic Server version: 10.3.6.0

    Thanks in advance.

    In fact f.listFiles () should not throw NPE as the directory exist a lot and the code snippet works fine on the local server.

    But you should add check and display the appropriate message to the users in the case

    As you mentioned the managed server is not able to access the network share.

    Guidance on how I could do this job?

    That is the question to your system administrator.

    They need to map this network share to the managed server machine.

    Or if this is impossible, then you can perhaps use another approach (ftp, scp,...)

    Dario

  • I saved my adobe files temporarily muse in my computer when I restart my PC I see not the mt files, please tell me how to recover my files and how to record my entire Web site file using save option.

    I saved my adobe files temporarily muse in my computer when I restart my PC I see not the mt files, please tell me how to recover my files and how to record my entire Web site file using save option.

    When you talk about 'temporarily' as record files in the temporary folder and then by restarting the machine will lose files. You can save the file in any location stored as reader or office and then reopen the case should show all of the content without any loss.

    If the files are deleted or lost there's no way to recover those, sorry if this is the case.

    Thank you

    Sanjit

  • How to read/write tdms 2.0 files with the TDM C DLL?

    Hello

    How to read/write tdms 2.0 files with the TDM C DLL?

    How consequently the datas in interlaced with the TDM C DLL mode?

    Thank you

    Confirmation: TDM C DLL always wrote the file in TDMS version 2.0.

  • How to find what Windows 7 build I use?

    How to find what Windows 7 build I use

    http://www.Microsoft.com/security/updates/CheckVersion.aspx
    I guess that Windows 7 is similar to Vista. Type "winver" into the search/start box, and then click OK TaurArian [MVP] 2005-2010-development day of Services

  • How to send a mail with attachment no matter what file use the invoke in os 6.0?

    Hello

    There is some issue that how to send a mail with attachment to use the invoke method in os 6.0?

    "I use the Transport at this time mail send successfully, but I use the invoke to throw this error time these error ismail service does not support these tyes of change of parts joined the send using field or remove attachments ' so how do?

    Thank you

    Hi, rishabh

    Thanks.i got the solution and super work Super-Duper hit.

    Thnaks,

    Umang.

  • How to create a button to download files in the form?

    How to create a button to download files in the form?

    Hello

    Please refer to the link below with a similar discussion.

    Download file button

    Kind regards

    Vivek

  • How to split a PDF into smaller files using Acrobat XI

    How to split a PDF into smaller files using Acrobat XI?

    Hi laforcej

    Open the PDF in Acrobat...

    Go to tools-> Pages-> extract

    Now, select the Page number, you want to extract and save

  • How to pass parameters in local html files using InDesign?

    How to pass parameters in local html files using InDesign, or how to pass info environment, such as the image, the html code is sitting on top in local html files in InDesign?  I try to use the code html-javascript, then simply pass parms to behave differently depending on where the code is placed in the folios of InDesign.  I don't know how to do it.  If I could read in some environment of the folio InDesign info by using html or javascript, which might work as well.  Please advise, thank you!

    In indesign, you can draw a box and connect the html code to display in this box, if you do it this way you don't let the application in browser.  In the control panel overlays folio, its web called overlays.

    I suggest you download Bringhursts ipad Bob application called DPS tips, it will give you a quick overview of all different overlays and basic opportunities.

    https://iTunes.Apple.com/us/app/Digital-Publishing-Suite-tips/id436199090?Mt=8

    Joe

Maybe you are looking for