[AS CS3] Getting fonts of placed InDd docs (imported pages, or graphics)

I need to get the status of fonts that are in InDd documents placed inside another InDd document. I can see the fonts in the "Find Font" window, and it shows me if the font is OK or missing. How would I get that information via script?
Opening all the child documents is not really an option.
Thanks,
Chris

I got similar results when I tried with a slightly more complex document<br />than before. Assuming the count is correct, and that all you want to know is<br />whether any are missing, you could get the count, loop through asking for<br />the names by index, and then check whether all the names are unique.<br /><br />Something like this:<br /><br />tell application "Adobe InDesign CS3"<br />    set n to count of fonts of document 1 -- assume reliable<br />    set theFonts to fonts of document 1 -- assume unreliable<br />    if (count of theFonts) is not n then -- mismatch<br />        set fontNames to {}<br />        repeat with i from 1 to n<br />            set end of fontNames to name of font i of document 1<br />        end repeat<br />        -- see if font names are duplicated<br />        repeat with i from 1 to (n - 1)<br />            set oneFont to item 1 of fontNames<br />            set fontNames to rest of fontNames<br />            if fontNames contains oneFont then<br />                -- there's a duplicate<br />                set fontProblem to true<br />                exit repeat<br />            end if<br />            if i = n - 1 then<br />                -- no duplicates found<br />                set fontProblem to false<br />            end if<br />        end repeat<br />    else<br />        -- counts match, so all is well<br />        set fontProblem to true<br />    end if<br />end tell<br />return fontProblem<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Sessions <a href=http://scriptingmatters.com/aspro>

Similar Messages

  • How to get font's information from PDF of page item?

    The PDF file is placed in a document of InDesign.How to get the list of font's name from the PDF.I would like to know the font which is used in the PDF file.

    Thanks, Michael 2 James
    I try it.The IFontNames interface's "FontsSupplied" Function can't got the name of fonts from PDF file. This PDF file was created by InDesign.
    If the PDF file had be created by Adobe Acrobat and some fonts had be embedded,the "FontsSupplied" Function would have gotten the name of fonts.
    There other ways?Thanks

  • Hyperlinks from other placed indd documents or pdfs getting lost after export to PDF

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

  • CS3 Postscript fonts not visible when Installed with Suitcase 11.0 Vista Ult64

    CS3 Postscript fonts not visible when Installed with Suitcase 11.0 on Vista Ultimate 64bit.
    Truetype and Opentype work fine. I have searched through all the forums here multiple times, but not found a solution. The only workaround I found was to manually put the font files in c:/ProgramFiles(x86)/CommonFiles/Adobe/Fonts.
    When I put any font files in that folder, they show up in CS3 for use, but not in windows apps. I thought I would make a permanent work around by placing all of my uninstalled font files in that folder, then use suitcase to install them from there. That didn't work because EVERY font in that folder is available to CS3 and turned on. Do they get installed when you put them in there?? It didn't seem like they were installed, and windows apps didn't see them.
    These are workarounds anyway. My main goal is to have suitcase work so I can organize my fonts efficiently. Extensis blames the font and CS3. I have read that there are adobe issues with other font management software as well as suitcase. Any help would be appreciated.

    Got mine FIXED here is what i did:
    Windows 7 64bit SP1, CS 5
    Postscript fonts (comprising of *.pfb + *.pfm files) did not show up in any CS5 app, but showed OK in Word, Excel, Notepad etc.
    Tried  activating through Suitcase Fusion 2 and also through FontExpert 2009 -  but neither of them made the fonts visible in CS5 apps
    1) open Start Menu/Control Panel/Fonts
    2) on the sidebar there is "Font settings" item
    3) set the settings as i did
    [    ]  Hide fonts based on language settings
    [ x ]  Allow fonts to be installed using a shortcut (advanced)
    FIXED mine,
    now i can use Suitcase Fusion 2 to install any PFB/PFM fonts without any problems...
    PLEASE IF THIS WORKED FOR YOU TOO, LEAVE A MESSAGE HERE SO OTHERS KNOW IF THIS FIX IS 100% WORKING

  • How to get Font height

    OK I give up.
    How can I get font height, not size. For example for font size 12, font height is 17.
    This method, getHeight(), is accessable through FontMetrics object which is accessable from Graphics object. I can't get Graphics simply with
    JLabel lab = new JLabel();
    lab.getGraphics(); // this gets me null
    so how can I get the font height ?

    Get the FontMetrics object from your Component and its font (you can use method getFont):
    http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html#getFontMetrics(java.awt.Font)

  • Grey lines across my Placed Word doc

    What is causing grey lines across my Placed Word doc and how do I get rid of them?

    It looks indeed -- from your screenshot -- like you've got paragraph rules enabled as a default setting currently in your document.
    Before you place the Word document in your InDesign document try the following:
    Edit > Deselect All (to ensure you have nothing selected).
    Type > Paragraph Styles - ensure [Basic Paragraph] is selected.
    Type > Character Styles - ensure [None] is selected
    Type > Paragraph. From the Paragraph panel menu choose Paragraph Rules
    Select Rules Above (top left menu), ensure Rule On is not selected.
    Select Rules Below (top left menu), ensure Rule On is not selected.
    Also if you are inserting your docx into an existing text frame, check that at the insertion point (click with type tool as insertion point), the Paragraph Rules are disabled.
    Next try and place your docx again. Hopefully that'll resolve the issue.
    Cari

  • I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad and getting the phoos o my IMac. ou see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac.

    I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad which will be replaced with the photos on my IMac.You see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac. Is there and app available to do the former. many thanks. b

    The iPad and related software is designed to sync with only one computer. I suggest transferring the photos from one of your iMacs to the other so that all photos are on one Mac. Same for all other files you want to sync over.
    To get those AppleWorks files to the iPad you'll have to determine if Pages will open them. If it will then use the file sharing feature of iTunes to copy them to Pages on your pad.
    If Pages will not open the AppleWorks files directly you'll have to save them in some format that Pages will read. These include but may not be limited to Pages and Word formats.

  • Page numbers from placed indd file not printing

    I've created a saddle-stitch booklet 1up in InDesign CS4. I've got auto page numbers on the master page, but when I place it in another InDesign document 2up for proofing, the page numbers are visible, but don't output either to an exported PDF or a PostScript file printed to be Distilled. Please advise.

    It's a bug. Anything on the master page of a placed INDD file just
    disappears...not good.
    Bob

  • How to get Font's associated with a pdf document.

    Hi All,
    I am currently working on a project related to Document Management in SAP. For this I have a set of pdf document's that needs to be classified as 'searchable' and 'Non-searchable'. I am planning to identify the document based on Font contents i.e a searchable document has some font associated with it, and non-searchable documents do not have any font associated with it.
    I am trying to use the class cl_fp_pdf_object and get the information about font. I see that there is no function which gives me this information directly. Is there any way to get font information of a pdf documents using classes ? or Is there any way to identify directly weather a document is searchable or not ?  Please help.
    DATA: l_fp          TYPE REF TO if_fp,
               l_pdfobj      TYPE REF TO if_fp_pdf_object.
        Create PDF Object.
          l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
        Set document.
          l_pdfobj->set_document( pdfdata = l_pdf ).
        Set task to get metadata.
          l_pdfobj->set_task_getmetadata( ).
        Execute, call ADS.
          l_pdfobj->execute( ).
    Thanks
    Aditya

    Just curious....why would you make "font" the basis of that classification?

  • How-to get Font weight information while reading a PDF document

    Hello everyone
    it seems that the available tools to read PDF documents from Java don't allow to get font weight informations about the tokens read from PDF.
    I need to know if a character is bold in order to recognize if it could be part of a paragraph's title.
    is there a way to keep this information? (now I'm using PDFBox but it seems to allow only to get the PDF content as plain text, without keeping this kind of font weight info...)
    thanks sincerely a lot
    to anyone who would be so kind to help me
    ;)

    shilkie wrote:
    I've already read the wiki and the examples about iText, and also the two free tutorial chapters, but it seems iText doesn't allow to check the font character of a pre-existing PDF document,,it only allows to create document with a specified font but this is not what I needWell, to tell you the truth, I don't do much with PDF, myself, I only believe (from anecdotal evidence) that iText is much better than PDFBox. Have you downloaded it and tried a few things, or just read some of the docu? I am fairly sure that if you designate a font, there is probably a way to retreive this font as well, although not necessarily. Download it and play around a bit.

  • Cant get @font-face to work on my new web site

    Hi everyone,
    I Cant get @font-face to work on my new web site.
    I tryed it before on other web sites and it worked just fine.
    Here is the code i am using:
    CSS:
    @charset "utf-8";
    @font-face {
    font-family:"Caviar Dreams",sans-serif !important;
    font-style: normal;
    src:url ("../fonts/CaviarDreams.ttf") format('truetype');
    src:url("../fonts/CaviarDreams.eot") format('eot');
    src: url("../fonts/CaviarDreams.svg") format('svg');
    src:url("../fonts/CaviarDreams.woff") format('woff');
    src:url("../fonts/CaviarDreams.otf") format('otf');
    /* Simple fluid media
    Note: Fluid media requires that you remove the media's height and width attributes from the HTML
    http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
    max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
    width:100%;
    Dreamweaver Fluid Grid Properties
    dw-num-cols-mobile: 5;
    dw-num-cols-tablet: 8;
    dw-num-cols-desktop: 10;
    dw-gutter-percentage: 25;
    Inspiration from "Responsive Web Design" by Ethan Marcotte
    http://www.alistapart.com/articles/responsive-web-design
    and Golden Grid System by Joni Korpi
    http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    body{
    background-image:url(../images/background/wraper_bg.jpg);
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-size:100% 100%;
    font-family:"Caviar Dreams", sans-serif !important;
    .caviar{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif ;
    .index_bg{
    width:100% !important;
    height:100% !important;
    background:url(../images/graphics/index_bg.png) !important;
    background-size:cover !important;
    .welcome_image{
    position:absolute;
    top:35%;
    width:95% !important;
    margin:2% !important;
    .nav{
    color:#FFFFFF !important;
    font-family:"Britannic Bold" !important;
    font-size:14px;
    font-weight:lighter !important;
    .background_white{
    background:rgba(255,255,255,0.7);
    .background_black{
    background:rgba(0,0,0,0.65);
    .background_black_2{
    background:#000 !important;
    .background_noir{
    background:rgba(179,1,1,0.7);
    .background_purple{
    background:rgba(152,131,201,0.7)!important;
    color:#FFFFFF !important;
    width:100% !important;
    height:25px;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    margin:0px !important;
    padding:0px !important;
    .background_purple:hover{
    background:#FFFF00!important;
    color:#000 !important;
    width:100% !important;
    text-decoration:none !important;
    font-family:"Caviar Dreams" ;
    border:0px !important;
    .white{
    color:#FFFFFF !important;
    .black{
    color:rgba(0,0,0,1) !important;
    .red{
    color:#B30101 !important;
    .yellow{
    color:#FFFF00 !important;
    .black_span{
    background:#000000 !important;
    color:#FFFFFF !important;
    margin:1% !important;
    margin-left:5px !important;
    padding:5px !important;
    .black_span_margin1{
    margin-left:0px !important;
    .black_span_margin2{
    margin-left:0px !important;
    .border_white{
    border:3px solid #FFFFFF !important;
    margin:0px !important;
    padding:0px !important;
    .border_gold{
    border:0px solid #000!important;
    margin:0px !important;
    padding:0px !important;
    h1, h2, h3, h4, h5, h6{
    font-family:"Britannic Bold" !important;
    font-weight:lighter !important;
    color:#FFD700 !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    p{
    font-family:"Caviar Dreams", Arial, Helvetica, sans-serif !important;
    font-size:16px !important;
    color:#FFFFFF !important;
    margin-left:2% !important;
    margin-right:2% !important;
    margin-top:2% !important;
    margin-bottom:2% !important;
    .text-small{
    font-size:12px !important;
    .caviar{
    font-family:"Caviar Dreams" !important;
    I am trying to use the font Caviar Dreams on my new web site but i cant get it right,
    Can anyone tell me what is wrong.
    And also i would like some help with IE9, it seems the header is displaying in blue instead of black on IE9 and 10.
    My web site adrees is marcoalexwebdesign.site11.com  .

    I already fixed the issue, it seems trhat in dreamweaver the fonts ttf , otf, etc must be in a folder named webfonts, and then dreamweaver connects the fonts stylesheet to the main stylesheeet with @inport.I had to unisntall the fonts from my windows and download them again and add tehm with dreamweaver add web fonts feature.
    Thanks ayway.

  • Profit Center Document not getting generated when direct FI doc is posted

    Dear Experts,
    Profit Center Document not getting generated when direct FI doc is posted. However CO Document is generated for Line Item 1 mentioned below.
    Accounting Entry
    Line 1 -Debit Expense ( Cost Center) 1000
    Line 2 - Credit Bank                             1000    
    Advance Thanks
    Sanjai

    Hi,
    Pls check profit center configuration.... Some config might have missed.....
    Use the t.code 1KE1 For analysing the profit center configuration.
    Regards,
    RAM
    Edited by: Ram000 on Oct 7, 2011 10:45 AM

  • Formatted master pages don't auto update in multipage indd doc

    Formatted master pages don't auto update in multipage indd doc. When a page is added/removed, folios and rules remain in right page orientation even if they've just become left hand pages, and vice versa. Forced to keep taking the additional steps of applying master to pages which is incredibly annoying/did not use to happen.

    Formatted master pages don't auto update in multipage indd doc. When a page is added/removed, folios and rules remain in right page orientation even if they've just become left hand pages, and vice versa. Forced to keep taking the additional steps of applying master to pages which is incredibly annoying/did not use to happen.

  • JS CS3 Simple Dialog to change doc starting page.

    This example presents the user a dialog telling them the what their current document starting page is. The user can then change the value and update the starting page number. For some reason I'm getting a error Cannot handle the request because a modal dialog or alert is active. I have set myDialog.close(); before the if statement so should this not stop this error?
    I have not added any checks to ensure a doc is open in ID yet.
    var myDialog = new Window('dialog', ' Starting Pg No');
        myDialog.dPgNo = myDialog.add('panel',undefined,'File details');
        myDialog.dPgNo.alignChildren = 'left';
        myDialog.dPgNo.myPgNo = myDialog.dPgNo.add('group');
        myDialog.dPgNo.myPgNo.group = myDialog.dPgNo.myPgNo.add('group');
        myDialog.dPgNo.btnGroup = myDialog.dPgNo.add('group');
        with (myDialog.dPgNo){
        myPgNo.group.orientation = 'column';
        myPgNo.group.alignChildren = 'right';
        myPgNo.group.preferredSize = [90,15];
        myPgNo.group.st  = myPgNo.group.add('statictext',undefined,'Your Doc starting page is:');
        myPgNo.et = myPgNo.add('edittext', undefined, app.activeDocument.pages[0].name)
        btnGroup.btn = btnGroup.add('button', undefined, 'Update');
        btnGroup.alignment = 'right';
    myDialog.dPgNo.btnGroup.btn.onClick = function() {
    myDialog.close();
    var myPagestart = myDialog.dPgNo.myPgNo.et.text;
    if (app.activeDocument.pages[0].name != myPagestart){
    app.activeDocument.pages[0].appliedSection.continueNumbering = false; //<-----------ESTK stops here with the error mentioned before.
    app.activeDocument.pages[0].appliedSection.pageNumberStart = parseInt(myPagestart);
    app.activeDocument.pages[0].appliedSection.sectionPrefix = "";
    alert("Your document start page has been changed to "+myPagestart+".");
    myDialog.show();
    myDialog.show();

    Hi John,
    You don't need to close and reopen the window. Instead of dialog use 'palette' type of the window and run the script in a persistent engine, e.g. #targetengine "session".
    Kasyan
    #targetengine "session"
    var myDialog = new Window('palette','Starting Pg No');
        myDialog.dPgNo = myDialog.add('panel',undefined,'File details');
        myDialog.dPgNo.alignChildren = 'left';
        myDialog.dPgNo.myPgNo = myDialog.dPgNo.add('group');
        myDialog.dPgNo.myPgNo.myGroup = myDialog.dPgNo.myPgNo.add('group');
        myDialog.dPgNo.btnGroup = myDialog.dPgNo.add('group');
        with (myDialog.dPgNo){
            myPgNo.myGroup.orientation = 'column';
            myPgNo.myGroup.alignChildren = 'right';
            myPgNo.myGroup.preferredSize = [90,15];
            myPgNo.myGroup.st  = myPgNo.myGroup.add('statictext',undefined,'Your Doc starting page is:');
            myPgNo.et = myPgNo.add('edittext', undefined, app.activeDocument.pages[0].name)
            btnGroup.btn = btnGroup.add('button', undefined, 'Update');
            btnGroup.alignment = 'right';
    myDialog.show();
    myDialog.dPgNo.btnGroup.btn.onClick = function() {
        var myPagestart = myDialog.dPgNo.myPgNo.et.text;
        if (app.activeDocument.pages[0].name != myPagestart){
            app.activeDocument.pages[0].appliedSection.continueNumbering = false;
            app.activeDocument.pages[0].appliedSection.pageNumberStart = parseInt(myPagestart);
            app.activeDocument.pages[0].appliedSection.sectionPrefix = "";
            alert("Your document start page has been changed to "+myPagestart+".");

  • Can I embed fonts in exported Word docs in 09

    As it says. Can I embed fonts in an exported DOC type document, in Pages 09, or 5.2 for that matter?
    thanks

    No, not in a Word document. If you export to PDF fonts will be embedded.

Maybe you are looking for

  • Is there a way i can burn a dvd to my macbook, then edit sections of that dvd and re-burn those sections i edited to a new dvd?

    Is there a way i can burn a dvd to my macbook, then edit sections of that dvd and re-burn those sections i edited to a new dvd?

  • The flow of SD

    Hi Experts .     Can u please help me explain how the flow of SD  and MM, and In FI CO( what are the transcation will be created)

  • JSP Database Access : 500 Internal Server Error

    Hello everybody! My JSP code run until I write the next: Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver").newInstance(); Connection connDB = DriverManager.getConnection("jdbc:odbc:OracleDB", "carlos_prb", "carlos_prb"); Statement smentDB = connDB.cre

  • Leading account assignment mandatory

    Hi For the account assignment Cost Center we have Cost Center as leading field and ORDER_NO as a second field for statistical internal orders. It is today possible to enter an order without the leading cost center without getting an error when orderi

  • Where are photos saved

    i just upgraded from 10.4 to 10.6.3 and successfully imported all my old documents to a new machine. i'm wondering where the iphoto library is saved in iphoto 9. in my old version, in the pictures folder, there was an iphoto library folder with all m