Properties of the Document (fonts) access by Javascript

Hello world

Is theres a way to get access to the properties of the Document (fonts) in javascript

I need to get all the fonts (and the info as embebed or not) use in the document

I ' v alreaydy search through the doc http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/ww help.htm? & accessible = true

But I can't access the Document properties

I'm programming Via Xojo and I need to recover my apps news

Thank you

No, JS doesn't have access to this information.

Tags: Acrobat

Similar Questions

  • How to drive throughout the document font colors?

    So I know how to change a certain font throughout the document.

    Can I replace Let's say, Times New Roman with Arial throughout the entire document.

    However, what happens if I want to replace a font color?

    For example, I want to change the black 0,0,0,0 with black 40,30,30,100 throughout the document, instead of looking for one and replacing the existing color.

    I use CS5 on PC

    As Peter says, it is best to do with paragraph styles. The foregoing shows where.

    In general, you should use styles p. with little or no local formatting (according to use). And for the local formatting that is repetitive, character styles should be used.

    Take care, Mike

  • To know more about the properties of the PDF fonts

    Hi guys,.

    I have Acrobat Professional 8. I remember with versions previous of this application, I was able to select a font in a PDF and I told me everything, it's properties. I.E.

    Adobe Garamond Pro

    12 pt

    14 follow-up

    Now I go to properties / do, and I don't see what use the fonts in the PDF file type. Where can I find more information that I used to do before?

    In the Internet, there is a jewel free students of typography of the great master Massimo Vignelli, and true that you can download to

    http://anewdesigns.blogspot.com/2010/02/Massimo-Vignelli-Canon.html

    It is always interesting to study how a grand master to use typography size, leader and grids and with this Acrobat 8, I can't get much info on this style of fonts PDF.

    Any help or ideas?


    See you soon,.
    S

    Something to play with.

    Select the Touchup text tool in the advanced editing toolbar.
    This tool allows to select text.
    Now, right-click to display the context menu.
    In this menu, at the bottom, select Properties.
    The Properties Editor dialog box opens.
    If this isn't already in short, click the text tab.
    This tab shows:
    Type of policy; Original fonts; Changing fonts; Permissions; status (Embed |) Subset);
    Font size; Font color of filling; Character spacing; Stroke; Wee; Width of line; Horizontal scaling; Base offset

    If a PDF file is a PDF containing the well-trained tag you can open the Panel tags, select a PDF ('tag') element, right-click to display the context menu.
    Select properties, in the Properties Editor dialog box - click the button change the tag in the tag item dialog box - down the element tree.

    The appropriate dictionary will provide more detailed information.

    It's the tag element dialog box is not intended to be a provider of policies focused on "info". so, not 'friendly' if all you want is data of police.
    The first method, described above is almost the best you will get for the presentation of the police since Acrobat-specific information.

    Since Acrobat is not a "Publisher" (for fonts or otherwise) it is to be expected.
    Fonts/typography information is in PDF format (more if the PDF is a well formed PDF containing the tag), it may be possible for a developer to concoct a plug-in with the appropriate C programming language. Could even be something already out there.

    Be well...

  • Why does my bank statement appear garbled when I use the PDF export to Excel feature?  The properties of the document says ok to convert Adobe.

    I used a free trial version of Wondershare and the downloaded PDF beautifully.  A response to a question from Google suggested the rotation of the OCR, but is no longer an option?

    I am a subscriber of DC of Acrobat.  I used the PDF export to Excel export feature.  I did it by opening the PDF and choose the export option.  It is a PDF generated Bank from a client.  The text is composed of symbols for most.  It is a statement of Bank of America for a checking account.  The statements of his savings bank of America converted very well.  However, there was a different look between 2 PDF files.  Thanks for your help in advance!

  • What happened to the initial view options in the Document properties?

    What are the initial view options in the Document properties? I just updated my player and it is no longer accessible. SOS.

    Hi kga406,

    Please tell me if you are able to access 'initial view' tab in the properties of the document using Acrobat.

    You can change the initial view settings in Acrobat and you can view a PDF in Reader with the same initial point of view as established.

    Kind regards

    Ana Maria

  • Properties - asking extract that created the Pdf file of the document

    Hello

    I need to extract the original application a pdf file created from javascript.  for example in the properties of the document the application appears as follows:

    Application: AutoCAD 2010

    The script of the console that I have is this:

    Console.println ('Application: ')
    + this.info.Application + "");

    When the script is run, it does not extract the application that created the pdf file from.

    Please can someone tell how the script can be modified to remove the application from the document properties?

    Any help will be most appreciated.

    Thank you.

    It has no property named 'Application' of the information object. Try the "creator".

  • How do the properties of the smaller document window?

    I work on a laptop and need to enter metadata in the properties of the Document window, but it is too big for me to click on the button to save what I enter.  How can I make it smaller?

    You need to change your screen resolution.

  • Why the mode list Windows Explorer ignores the document property "Keywords"?

    If I open a word.doc file properties Summary tab and type the data in the fields title, author, subject, category, comments and keywords and then activate these columns in Windows Explorer details view, I can see the words I typed in these columns, with the exception of the key words, which remains empty.  Why Explorer doesn't not know my keywords?

    In addition, the comments column shows that the first 77 characters of the comment regardless of how long my comment is... Why is this? Is there some hidden settings that can be used to fail this behavior or change to a higher value?

    I just answered a recent question and found this old (which is slightly different from the one I responded to regarding Sharepoint properties etc..).

    I don't know why Microsoft has not done more properties available through the Windows Explorer list view, because for example, the property of "Key words" in Word has been around for a while before XP came. And before Windows 2 k come AFAICR. But judging by the mass of the columns dealing with properties 'media', they tried to meet the relatively new uses of Windows (much more than digital photography and other digital media), or the necessary code has been written by individuals affected by these media. And maybe the "key words" had been used differently by different Microsoft products and it was difficult to reconcile the different requirements. It is perhaps significant that property taken /is/ supported in Vista's Windows Explorer version, but called "Tags" there.
    However,.
    a. it is / was a mechanism to add columns to the list available from the point of view of list. I've never done so, it may be sure it will work because I imagine it should be, but you need to write a Shell Extension (.dll) that implements the IColumnProvider COM interface and save it in the appropriate location in the Windows registry.
    b. that the mechanism has been replaced by a new system of "Property manager" in Vista It is completely in step with the kind of properties 'Content Type' used in Sharepoint, I can't tell you, but there is a set of pages on this subject at
    http://msdn.Microsoft.com/en-us/library/cc144135 (v = vs. 85) .aspx
    Incidentally, the other widely available 'container' technology that could also retrieve and display properties, and has often been rather better than what Windows, Outlook. If you dragged the Word documents in an Outlook folder, you can create an Outlook display that displays the properties of the document (including key words, at least in Outlook 2003). The problem is that (AFAICR) you couldn't store links and Outlook was not really designed to store the files this way (for example, he had a relatively small capacity). The same thing was also possible at the same time in Exchange Server public folders, but there was also the ability practice and other difficulties, especially if you tried to synchronize these flders between servers. If these facilities are still available, and what was / is available in Groove/Sharepoint Workspace, I do not know :-)
  • Y at - he opened a Java command/script that runs all calculations in a PDF document on the document?

    Long story short, design a timesheet for my company using Adobe Pro. The form has fields that use java script to calculate different values. For example when someone enters the week, finishing, it fills the rest of the form with the correct days. This is a simple script which is located in "custom calculation. It works fine on PC and iOS devices (when you use a PDF reader application) but not when calculating on Android devices. When opened on a PC then the dates have not been calculated. This seems to be a problem with the Android device and the way it handles the script embedded in the page. For the test I used Adobes PDF reader program so in theory, these functions must be activated. However, I find very little information on why this would happen. For me that a simple work-around would be to set the properties of the document just run all calculations on the open page. So when opened on a PC by our payroll service dates will fill up. If you are curious of the code that I use I have attached below.

    Thank you in advance.

    The script:

    Custom text field calculation script

    (function () {}

    Get the value of the ZZWEEKEND field

    var v = getField("ZZWEEKEND").value;

    If the field is blank, this field blank

    if (v === "") {

    Event.Value = v;

    return;

    }

    Convert string to date in a date object

    var d = util.scand ("mm/dd/yyyy", v);

    Subtract the number of days

    d.setDate (d.getDate () - 4);

    Set the value of this field

    Event.Value = util.printd ("mmm - dd", d);

    })();

    You can use the calculateNow method, for example:

    calculateNow();

    in a script Page Open.

  • When I open a pdf file. the document that I'm automatically redirected to page 3 of the doc. How can I open the 1st page?

    When I open a pdf file. the document that I'm automatically redirected to page 3 of the doc. How can I open the 1st page?

    Hi Monica

    Open the properties of the Document window (ctrl + d), click on "Display Initial" tab, check "Open page" option, type 1 in the text box.

    Kind regards

    Rahul

  • File > properties: all the gray fields / inaccessible

    I use Acrobat Pro 11. I want to change the properties of the document, but they are greyed out. What I am doing wrong?

    document properties.png

    I see that the application that created the PDF file is FormsCentral, if the document has probably been activated drive. You can select: file > save a copy

    Open the new file to change things and then reactivate the file: file > save as other > Reader Extended PDF > activate tools more

  • What causes the error "the document could not be saved.  There was a problem reading this document

    (131) ", when you try to save a PDF file in Acrobat Professional X (10)?

    There are no security settings, no password and no restrictions in force on the PDF document.

    I am the owner of the document Windows access control list and also have full control of the administrative permissions for it.

    Trying to save the PDF file under a different name does not remove the error message or overall inability to save the document.

    This isn't a thing of security at all. This means that Acrobat found something in the PDF file that he disliked - what is false.

  • The document title Split String Script into an If identified

    Hello

    I have a console script that will extract the file title extension in the document properties:

    firstWord = this.info.Title.split("."); FirstWord = Event.Value [1];

    The example document title is: DWGTest.idw

    After the script is run from the console of the file extension is displayed correctly as: idw

    I now need to integrate the script with an if statement, and then perform an action.

    However, after you run the script I get a syntax error.

    Please can someone tell how can I modify the script works correctly?

    If the title in the properties of the document contains the file extension idw can create a signature field

    firstWord = this.info.Title.split("."); FirstWord = Event.Value [1];

    If (firstWord is "SDI")

    {

    var this.numPages = NUMPAGES;

    for (var i = 0; i < numpages; i ++)

    var a = this.addField ("Chk R1", "signature", 0,

    ([1093, 119.5, 1054.5, 136,5]) ;

    }

    Any help will be most appreciated.

    Thank you.

    Try to simplify it a little bit. This code tries to add a field of signature several times in the same place on the first page, assuming that there are several pages, and the rect does not seem right.

    var firstWord = info.Title.split(".")[1];
    
    if (firstWord === "idw") {
        addField("Chk R1", "signature", 0, [54.4, 136.5, 93, 119.5]);
    }
    

    Note that I changed the boundaries of the field (left and right) to try to ensure that the scope should be placed on the page. What is the width and height of your pages? The rect values can be read as "left side, top, right, bottom", with the origin (point 0,0) being the lower-left corner of the page. The values are in points and there are 72 points per inch.

  • How to access the methods and properties of the main document class

    How can I access methods and properties of the class of main document of other classes?
    Can someone give me a clue what I'm doing wrong?

    I use ActionScript3 in Flash CS3 with strict error checking on. I have an application with several custom classes:

    1. the MainMovie class is associated with the document.

    2. the SomeMovieClip class is associated with a movie clip symbol in the library and an instance of the symbol is placed on the main timeline.

    Compilation Flash returns this error message: "1061: call to a method may not set [name of the method here] through a reference with static type flash.display:DisplayObject.".

    I get the same error if I replace the undelined above with this code:

    root.gotoAndStop ("aFrameLabel");


    If I replace the same code simply with:

    trace (root)

    Flash returns [object MainMovie], which tells me that it recognizes the document class.

    However, if I turn the strict error checking, the compilation ends and the movie works as expected in all cases.

    root cast as a movieclip.

  • Coloring a font with a RGB, etc. without adding color in the swatch of the document.

    Is it possible to color a font with a RGB, Lab, or CMYK color without adding color in the swatch of the document.

    The only way I know is to add a color to the color chart or use an existing one.

    as

    App.Selection [0]. Characters [0]. FillColor = document. Colors.Add ({colorValue: 255, 53 (160) and space: ColorSpace.RGB}) ;}

    As a side effect to clutter up shades using many colors.

    any ideas?

    Hello Uwe!

    After 03:00 by me 02:00 by you

    I tried the link and it download but I have cs5 cs6 and cc but not cs5.5 and all the scripts worked on them can due to the conversion of files.

    It seems therefore that the following summary is all is correct

    New documents contain some

    Color chart (black, registration, paper and none) the index order is the order in which shades appear in the swatches Panel

    And the colors in the order of the alphabetical index

    named colors without name last and then 'A', 'Z' first color.

    Color documents News-[1] will be a color without a name that can be duplicated to produce other colors without name, noting that duplication should be processes and not the tones.

    So far so good, (not for long)

    Unnamed colors are not read only so if we make a positive effort to remove, we can do that.

    while (app.activeDocument.colors[-1].name == "") app.activeDocument.colors[-1].remove()
    

    Now, we will not have any what swatches without a name to duplicate and will have to use the method of file text marked with John at number 3 above.

    If there is no shade no name and we try to replicate the colors [-1] and it's a color as 'Yellow', then it seems s indesign crash.

    In any case the method below should always work (for regular non-dyed colours etc.).

    // optimized for easy of use but not efficiency !!!
    var doc = app.documents.add();
    var p = doc.pages[0];
    
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "0mm", "30mm", "30mm"], fillColor: addUnnamedColor([0, 0,255])}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "30mm", "30mm", "60mm"], fillColor: addUnnamedColor([0, 255,0], 1666336578)}); // will be a RGB because of value
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "60mm", "30mm", "90mm"], fillColor: addUnnamedColor([65, 50, 102], ColorSpace.RGB)}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "90mm", "30mm", "120mm"], fillColor: addUnnamedColor([84, 90,40],"r")}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "120mm", "30mm", "150mm"], fillColor: addUnnamedColor([232, 0, 128],1)}); // will be a RGB
    
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "0mm", "60mm", "30mm"], fillColor: addUnnamedColor([29.5, 67.5, -112])}); // will be a Lab because of -
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "30mm", "60mm", "60mm"], fillColor: addUnnamedColor([100, -128, 127], 1665941826)}); // will be a Lab because of value
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "60mm", "60mm", "90mm"], fillColor: addUnnamedColor([24.5, 16, -29], ColorSpace.LAB)}); // will be a Lab
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "90mm", "60mm", "120mm"], fillColor: addUnnamedColor([36.8, -9, 27],"l")}); // will be a Lab
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "120mm", "60mm", "150mm"], fillColor: addUnnamedColor([51, 78, 0], -1)}); // will be a Lab because of the 1
    
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "0mm", "90mm", "30mm"], fillColor: addUnnamedColor([82, 72, 0, 0])}); // will be a CMYK because there are 4 color values
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "30mm", "90mm", "60mm"], fillColor: addUnnamedColor([60, 0, 100, 0], 1129142603)}); // will be a CMYK because of value
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "60mm", "90mm", "90mm"], fillColor: addUnnamedColor([84, 90,40, 0], ColorSpace.CMYK)}); // will be a CMYK
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "90mm", "90mm", "120mm"], fillColor: addUnnamedColor([67, 53, 97.6, 21.7], "c")}); // will be a CMYK
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "120mm", "90mm", "150mm"], fillColor: addUnnamedColor([0, 100, 0, 0], 0)}); // will be a CMYK
    
    function addUnnamedColor (cValue, space, docToAddColor) {
        docToAddColor = app.documents.length && (docToAddColor || (app.properties.activeDocument && app.activeDocument) || app.documents[0]);
        if (!docToAddColor) return;
        var lastColor = docToAddColor.colors[-1];
        if (!cValue) cValue = [0,0,0,0];
        if (space == 1129142603 || cValue && cValue.length == 4) space = ColorSpace.CMYK;
        else if ((space && space < 0) ||  space && space == 1665941826 || (space && /L|-/i.test(space.toString())) || (cValue && /-/.test(cValue ))) space = ColorSpace.LAB;
        else if ((space && space > 0) || space && space == 1666336578 || (space && /R/i.test(space.toString())) || (cValue && cValue.length == 3)) space = ColorSpace.RGB;
        else space = ColorSpace.CMYK;
        app.doScript (
            """
            var newUnnamedColor = (lastColor.name == "") ? lastColor.duplicate() : taggedColor();
            newUnnamedColor.properties = {space: space, colorValue: cValue};
            """,
            ScriptLanguage.javascript,
            undefined,
            UndoModes.FAST_ENTIRE_SCRIPT
        );
    
         function taggedColor() { // need to use this if no unnamed exists
                 var tagString = "\r " : "WIN>\r ") + ""; // would make more sense to apply the correct value in the tagged text file but I can't be bothered !
                 var tempFile = new File (Folder (Folder.temp) + "/ " + (new Date).getTime() + ".txt");
                 tempFile.open('w');
                 tempFile.write(tagString);
                 tempFile.close();
                 var tempFrame = docToAddColor.pages[-1].textFrames.add();
                 $.sleep(250);
                 tempFrame.place(tempFile);
                 tempFrame.remove();
                 tempFile.remove();
    
             return docToAddColor.colors[-1];
    
         }
    
        return newUnnamedColor;
    }
    

    Apply the function to remove and replace swatch on the other thread both healthier of mind

    Concerning

    Trevor

Maybe you are looking for