Identify the elements of the document, mark it as XML?

Hi all

Currently working on a project Web-to-print with InDesign CS5 server and JavaScript.

I want to do is to allow following to happen:

  • A user downloads a document .indd (OK with that!).

  • A JS script traverses the document and identifies all the elements of the document (text boxes, images, etc.).

  • The user is then asked to select which elements of the document they would like to mark as "editable".

  • The items that the user has selected as editable are marked in the .indd as XML elements.

  • The .indb is saved and closed.

I am relatively new to InDesign scripting, and I hope that this is not something so unusual that I'm trying to achieve! Does anyone have advice/ideas on how this could be done?

Thank you very much

Well, Yes, I think (I have not memorized... XML syntax) but... is not usually what you would mark your XML elements.

I mean, generally you can do something like:

...
...
...

If you wanted the counts. But you would not create new tags for each object:

...my rectangel data
...rect2 data
...text data...

It will definitely hurt to parse your XML code with standard tools. Use an attribute instead. Or why even make them unique like that? I'm not sure t The Way of XML?

Seems in any case, that, as you found your foot.

Tags: InDesign

Similar Questions

  • I want to auto generate a word from a PDF document. Firstly, the OCR must identify the document. Then I want to be able to select the character 'areas' where the text will be different by document according to the document. Again, I want this automated pr

    I want to auto generate a word from a PDF document. Firstly, the OCR must identify the document. Then I want to be able to select the character 'areas' where the text will be different by document according to the document. Again, I want this automated process.

    We have many forms in our records. From these forms, we generate a list of documents that fully represents what is in the file. To create a list of accurate documentation of a specific file, I have to manually go page-by-page, extract specific information (they are in the same place) and the list of documents manually. I want to automate this process.

    The function of OCR in Acrobat does not 'zone' OCR.

    Server as "automation" is not supported by Acrobat (by license and by design). Acrobat is a desktop application, and so many activities can be "automated" via Acrobat JavaScript and Acrobat Actions (a feature of the 'Pro' version) a hot body will have to be available to keep things moving along.

    From what write you it's maybe that your specific needs would be better served by a category Server product. To research these remember Bing / Google is your friend.

    Be well...

  • How do to identify the documents called "models of library" using the RESTful API?

    How do to identify the documents called "models of library" using the RESTful API? Furthermore, what constitutes a document to be a "model of library"? I see nothing in the libraryDocuments RESTful documentation that describes this type of document, such as presented on the tab 'Manage' my developer account. Please see the screenshot below. There is a model of Document named "[DEMO ONLY] Test model" listed under "Library Templates" and I try to figure out which classifies that document to be included this way and how does produce a similar announcement by using the RESTful API.

    Screen Shot 2014-10-29 at 11.16.48 AM.png

    Thank you!

    Hello

    You can connect to access library models using the REST API, use 'GET /libraryDocuments' allowing to recover documents in library for a user. Models are created in the account of EchoSign, which later are accessible via the REST method mentioned above.

    Jat

  • AIP-50083: Protocol for the identification of the Document error

    Hello

    I did for X 12-V4010-855 B2B configurations. And I'm getting below error when I did a 855 out of BPEL.

    Machine Info: (sybil.eatonsteel.com)
    Description: Failed to identify the document of the message protocol
    StackTrace:
    Error -: AIP-50083: Protocol for the identification of the Document error
    at oracle.tip.adapter.b2b.engine.Engine.identifyDocument(Engine.java:3043)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1552)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2404)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2303)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2258)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:500)
    at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:348)
    at java.lang.Thread.run(Thread.java:534)


    Could you please let us know whatis I am doing wrong.

    Concerning
    Kiran

    This seems to be a problem with the payload, please correct the same. In case if you have any questions, please send us the payload. Please make sure to validate your document with XSD.

    Rgds, Ramesh

  • How to hide/show the individual elements in a document

    I try to hide all items in a document (and store each original visibility state), iterate the elements preselected user and perform an export for each item in the selection (I've got this covered part) and finally restore the visibility of each new item state (where the initial visibility state storage is necessary).

    I found that I can browse all the elements in the document to help

    app.activeDocument.pageItems[i]
    

    where i is the page element identified by the index of the i - th in the pageItems collection.

    What is not clear, however, is how to get the visibility of this element of the page state. Indeed, there is a visbilityVariable of property associated with the elements of the page, but when I try to 'control' the content with an alert message, I get "undefined".

    Is there the best ways through all elements in a document? Ideally, I would like all the elements of access regardless of the weather, they are elements of the path, group items, items of text frame or what have you. I need this collection in the State of visibility of each item read/write. Thank you!

    "visibilityVariable" is for "data-driven graphics", regardless of those who may be. Try the property 'hidden' instead.

    JoarBolstad wrote:

    Is there the best ways through all elements in a document? Ideally, I would like all the elements of access regardless of the weather, they are elements of the path, group items, items of text frame or what have you.

    Don't worry, you got it right first time. 'PageItem' is the global superclass of all the graphic elements. Starting from the ESTK help (rather, my version as well):

    PageItem class
    A page element object.

    Superclass of CompoundPathItem, GraphItem, GroupItem, LegacyTextItem, MeshItem, NonNativeItem, PathItem, PlacedItem, PluginItem, RasterItem, SymbolItem and TextFrameItem

  • B2B 11 GR 1 matter unable to identify the EDI document via the channel look file

    Hello

    I was wondering if someone might have encountered this problem, I see a bit of noise on this forum about recognition of documents, and this may sound familiar to some of you...

    It is necessary to configure B2B 11 g (11.1.1.2) to query a file from a certain location. In 10g, there is an option to create the directory name of the poll with a certain convention %FROM_PARTY%_TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.edi etc., but this option is totally removed from 11 GR 1 material, so the only option is to go for changed file name (with the same format as above).

    Now I have to deal with incoming EDI files, so creaed the file with the above names naming convention and configured a channel listen to extract the file. The EDI file is simple with normal elements of ISA, GS and functional group, also passing thro validation documents Editor. B2B pulls, Archive it, but during the identification phase, he simply out craps with the following messages in the journal:

    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: []
    intNode name: Interchange
    ]]
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeControlVersion Val = 00401
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeReceiverID Val = XXXXXXXX
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeReceiverQual Val = 12
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeSenderID Val = YYYYY
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeSenderQual Val = 08
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: ISA Key = InterchangeUsageIndicator Val = T
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: standard = X 12
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processIntNode: number of nodes group = 0
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: processNode: number of nodes to Exchange > 1
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] [EDIDocumentPlugin: processNode: counterProperties >]
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: identifyIncomingDocument: no IDE or HL7
    [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] EDIDocumentPlugin: identifyIncomingDocument: no IDE or HL7. Return
    [2011-03-16 T 13: 19:11.476 - 04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@2fa8a24d] [username: < anonymous >] [ecid: 0000Iuz2yY3CwklqwsJb6G1DW8Ew000031, 0] [APP: soa-infra] error -: B2B-50083: Protocol for the identification of the Document error. [[
    at oracle.tip.b2b.engine.Engine.identifyDocument(Engine.java:4203)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1850)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1395)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3216)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2960)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2706)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:540)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:200)
    to oracle.integration.platform.blocks.executor.WorkManagerExecutor$ 1.run(WorkManagerExecutor.java:77)
    to weblogic.work.j2ee.J2EEWorkManager$ WorkWithListener.run (J2EEWorkManager.java:183)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)

    ]]

    I am unable to understand what makes the engine EDI to throw the paper away when everything is in order? Just to clarify, there are also a commercial partnership with ECS, configuration files and agreements XSD.

    I see a similar discussion at 11g - inbound configuration for any group or no header Exchange with no resolution.

    Pointers?

    Concerning

    B2B understood the agreement to be executed in spite of not providing the name file name or dir (% TO_PARTY % etc...) convention. Remains to be seen if they made any changes specific to the PS2.

    Essentially arrivals, file name or directory name is used to identify the TP which sends the document, but there is in the case of EDI and other parameters that can be used for the identification of TP as ISA and GS headers. So, even if the identification of TP with the help of file name or directory name fails, always TP can be identified on the basis of present envelope parameters in the EDI message. You can view-

    http://www.b2bgurus.com/2007/08/trading-partner-identification-in-EDI.html

    Above blog is for B2B 10 g and where he mentions some properties to set, but these properties are part of the product of g 11 B2B itself and therefore, no additional configuration is necessary.

    Finally I discovered that the problem of managing EDI is the line breaks. When I provide the entire load in one line, the B2B is able to implement the agreement, but when I the segment using line breaks separate the same error is thrown.

    IDE itself is a delimited file that uses it's own delimiters (known as o delimiters EDI separators) to separate the segments, elements etc. Even from every part of the IDE has fixed length designed in ecs file. If you insert a line break between the two, then this file will become invalid because you're characters additional ading inside (line break is a character) and engine EDI will not be able to analyze this document. This is according to the standard guidelines and nothing specific to Oracle B2B. So do not add in additional characters (including line breaks)

    Kind regards
    Anuj

  • Value of the element are clear when I joined the document,

    Hi friends,


    I created a form and I have two reports on the same page. First of all is the list of all the Document, and the second is the list of all the attached Document.

    first of all, I have to fill out all the information to the point after that I have have attached the report document, when I attach the document then attached document come in two second report.

    Problem is when I filled all the points with value and atcchted document page is update then all value elements are clear.
    I don't want the value of the items when I joined the paper.

    Another problem is I m facing this page, if I refresh the page then a single document is automatically attached or add in the second rerpot.

    My workspace details

    Workspace: IMPROVE THE SKILLS
    User: [email protected]
    Password: desomu

    Application No.: 42370
    Page no. 4


    How can I attached document with clear.


    Thank you.

    Ok

    See the page now.

    'Fixing' your link on the list of the documents was not submit the page, he called to a URL that has just passed the value selected in the FILE_OBJ_ID.

    I've changed that to call a javascript function called addAttachment having set the value of a new hidden page element called P4_FILE_OBJ_ID and then the page submitted. All entries for the other entry points are saved then as well. I moved the process that adds the file selected in the table DUMY_SELECTED_ATTCH_FILE to work on submit it instead of loading the page. I also updated the list of documents in order to exclude items that have already been picked - unless you want duplicates?

    Another thing that you should consider...

    If you have multiple users doing so at the same time, the DUMY_SELECTED_ATTCH_FILE will contain documents for all THE users, so all users send the same accessories. You should consider adding a username column in the DUMY_SELECTED_ATTCH_FILE table and assign to this v ('APP_USER') so that you can identify the files selected by the current user only

    Andy

  • When I try to delete an element of images/documents, etc, it is moved to the Recycle Bin ok but the little window recycling rest and cannot be canceled

    original title: Please help me.

    When I try to delete an element of images/documents, etc, it is moved to the Recycle Bin ok but the little window recycling rest and cannot be cancelled by the task handle. If I open 'my computer' and start typing in the search box it also freezes and it slows down my computer. I ran spybot, AVG, disk etc. defragmentation, but no problems were discovered.

    Have you tried running SFC. EXE/scannow from a high command prompt to repair a corrupt Windows?

  • Using PhotoShop elements Version 9.3 14?) : I have a file I've flattened and now want to resize now.  When I try to resize the size of the document from inches to Pixels.   When I choose to change - there is no other choice "Pixel".  I'm in., Points,

    Using PhotoShop elements Version 9.3 14?) : I have a file I've flattened and now want to resize now.  When I try to resize the size of the document from inches to Pixels.   When I choose to change - there is no other choice "Pixel".  I'm in., Points, cm, but no Pixel option.      I have the following options checked: resampling, constraint proportions, scale of Styles.

    The plan was to add a frame of 60 pixels around the 5.56 a picture and then framed 8 x 10 x 7.

    Go to Image > resize > canvas size. You should be able to find the scale of the pixel in the menu dropdown.

  • I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What do I need

    I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What should I do to change it?  I use DreamWeaver 2004 on a PC.

    You will need to correct the links that begin with "file".

    Now that your site has been defined, you just delete the bad links and DW left write the good ones for you.

    Click on the yellow folder on the property inspector, and then select the target page.

    If your site is small, you can edit the links manually (remove the part in red)

    content.htm file:///C:/desktop/localRootFolder/subfolder/subfolder/images/

    It would be useful that post you your code on the page so that we can see if you use the old technique or new for these links.

  • Use Photoshop elements 2 and I can't seem to get, but a single layer, is displayed in the palette no matter how many photos that I place in the document.  What I am doing wrong?

    Use Photoshop Elements 2 and can't seem to get, but a single layer, is displayed in the palette no matter how many picutres I place in the document.  What I am doing wrong?

    Did some reading and found my problem. Sorry if I caused any problems.  Am just true layers again. Thank you all

  • How to prepare a PDF file to fill out so that the check marks appear in the document printed?

    I use the XI player a to fill out IRS form that contains check boxes in order to answer the questions.  I can see the checkmarks in the boxes in the registered version of my document.  However, when I print the document, the check marks do not appear.  Can someone help me with this problem?

    I don't know - I have never seen anything like this.  You evolve somehow printing output, for example a document smaller than the form was designed for?

  • Can I access an element in the document parent edge animate function?

    Hi, very, very new to animate dashboard.

    I want to know if I can access items in the document parent of the function that I attach to the stage or another item in my animation.
    the equivalent of the window. parent . document . getElementById

    I noticed that the function automatically transmits "sym", which I assume is the animation so can I get to sym.parent document reference?

    Sorry if it's a bit basic but this is really new to me.  Thank you.

    Hello

    I had a similar problem, the need to access a DOM element of index.html Dreamweaver file from in the Actions of my composition of edge panel.

    In my example, I have a

    in the file index.html with id = "foot".

    That's how I got a JQuery style reference to the item in the Actions of the composition Panel:

    $("#footer", window.parent.document)

    This allowed me to access attributes, like this: $(«_#footer_»,_window.parent.document).html ()... or you could assign it to a variable, like this: var myFooter = $("#footer", window.parent.document);

    Hope that helps!

  • Still awaiting a response from Adobe regarding the post "printing a pdf to a pdf document marked".

    Still awaiting a response from Adobe regarding the post "Printing a pdf to a pdf document marked", dated December 15, 2012 09:20.

    As a first step, please upgrade to Acrobat 9.5.4 and see if that solves the problem.

  • How to configure the nonprinting elements on PDF document.

    Hello world.

    I am trying to create a PDF document with background elements including the background color, images and some geometric elements that I want to be displayed when the document is displayed on a computer screen, but that do not appear when teleworkers is printed.

    How can I configure the PDF so that some elements are visible but not printable?

    TIA,

    Joe.

    PS: in case the information is relevant, I'm under Acrobat version 9.5.3.

    Yes, the layers is quite accurate. A background that you add with Acrobat is a layer, it just appears in the layers navigation panel. Creating the InDesigner layer is even better than what I suggested. Once you have it in Acrobat you can set it to be visible, but not print.

Maybe you are looking for