Mapping InDesign style names to PDF tags

I've mapped style sheet names to tags in InDesign, and they display correctly in the InDesign structure panel, but when I export a PDF, it is my style sheet names that persist in the PDF tag window. Any ideas how to fix this?

Hi Jongware
Many thanks once again for your help. I have one more tweek to make to this code and that is to define which page I want to start loading pdfs from. The original script this is based on does ask me, but the code below does not and I am not sure which line of code I need to do this.
//DESCRIPTION:Place PDF pages 2-up
// Jongware, 22-Sep-2009
// (based on PlaceMultipagePDF.jsx)
//Make certain that user interaction (display of dialogs, etc.) is turned on.
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
//Display a standard Open File dialog box.
var myPDFFile = File.openDialog("Choose a PDF File", "PDF files:*.PDF");
if(myPDFFile == "" || myPDFFile == null)
  exit(0);
myDocument = app.activeDocument;
myPage = myDocument.pages.item(0);
myPlacePDF(myDocument, myPage, myPDFFile);
function myPlacePDF(myDocument, myPage, myPDFFile){
var myPDFPage;
app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
var myCounter = 1;
var myBreak = false;
while(myBreak == false){
  if(myCounter > 2 && (myCounter & 1)){
   myPage = myDocument.pages.add(LocationOptions.after, myPage);
  app.pdfPlacePreferences.pageNumber = myCounter;
  if (myCounter & 1)
   myPDFPage = myPage.place(File(myPDFFile), )[0];
  else
   myPDFPage = myPage.place(File(myPDFFile), )[0];
  myPDFPage.horizontalScale = 90;
  myPDFPage.verticalScale = 90;
  if(myCounter == 1){
   var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
  else{
   if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
    myPage.remove();
    myBreak = true;
  myCounter = myCounter + 1;
I need to import more than one document into my A3 document, so I need to be able to determine where to start placing.
Then the script will be perfect - many thanks - hope you can help.
Regards
G

Similar Messages

  • Can a DTD map custom styles to standard HTML tags?

    Hi,
    Every week the publishing house I work for has to manually copy the entire content of a weekly magazine on an article-by-article basis into an online database, the web version of the magazine. This means copying the styled InDesign content and inserting it into the database as plain text, re-finding all those italics (and any other styling) and putting it all back manually.
    I already know that I can create tags with all the basic HTML styles needed in the 'Tags' palette in InDesign, and then export that.
    The trouble is that when I re-import the XML file, I have to laboriously map the custom house-styles (there are many of them and they're boiler-plate, i.e. consistent, across all the magazine's InDesign styles) to the imported HTML styles.
    So here's my question:
    Am I wrong to believe that it's possible to create a DTD that would import not only the HTML tags but their relationship to the existing, custom-named InDesign tags that are common to all the magazine's documents?
    As an InDesign wish-feature, what's missing from the 'Tags' corner-menu is 'Export DTD' - if that was available, I could map the whole relationship between Indesign Styles/HTML styles just one time and later import the DTD on other articles; which would tell the Structure View how to convert our custom house-styles (both Paragraph Styles and Character Styles) into HTML tags and cut this time-consuming task in half.
    Thanks!
    EDIT: I perhaps should have mentioned that obviously the final stage after this 'dream conversion' is to export the XML from the Structure View. Then I can just open the saved XML file and paste it into the CMS with formatting intact.
    Added extra explanation of the workflow.

    geekbelief wrote:
    Googling XSLT and InDesign, it seems that such a stylesheet, if I were to create it, possibly couldn't handle spaces in the original InDesign style-names..? If anyone knows that for a fact, I'd be glad to be aware of it before starting down a long path to a roadblock.
    That's a good question. Let's find out together, shall we. I just created a text frame with Lorem Ipsum text, and created "a style" (with space) and "bstyle" (without). Now ... Map Style to Tag doesn't work, presumably because the tags don't exist and I assumed this would *create* them. And if you create one, ID complains "tags cannot contain tabs or spaces". (So can you have a Tab in your paragraph style name then? Gosh.)
    ... Forcing in a Non-breaking Space (#160) also doesn't work, this time ID simply says "A tag name cannot contain the character ' '."
    I think that's one you have to do manually.
    geekbelief wrote:
    I'm guessing that if I wanted to change the InDesign style 'Subheader' into 'h2', that snippet of the XSLT would be like this...?
    <xsl:template match="Subheader"><h2><xsl:apply-templates /></h2></xsl:template>
    Yeah, that's the correct syntax. But you cannot use an XSLT for mapping InDesign styles to tags. The process as I described works when importing your XML into InDesign, and changes the tags in the XML file to match InDesign styles. That's the other way around.
    I don't expect anyone to write this for me, but any hints or links to tutes that I haven't yet found would be appreciated!
    For a simple one-to-one translation of tag names, you can use this all the way. You only need any other XSL command if you want to do more than simple translation, such as filtering, moving, combining, or separating tags or their contents.
    There are lots of good tutes on the 'web for XSLT, although it seems interest has diminished lately. Half a decade ago XSLT was "hot"; nowadays the iPad is. Is there any news on improvements for ID's native XSLT support in CS6? I dare bet there are none at all -- it's already been deemed "yesterday's technology" by Adobe's Dev Team, just as Flash was discarded per CS5.5. I'm sure next year DPS will follow; and the year after that EPubs will be gone for good as well, replaced by holograms, transmitted live from your local library.

  • PDF tags from eps

    Hi all,
    sorry but I can't find the Acrobat Distiller forum (except for server version)...
    Is there a way to obtain a tagged PDF file from an eps exported by InDesign and then distilled by Distiller?
    many thanks
    Danilo

    Note, I've also tried assigning particular elements specific styles. For example, I specifically set the highlighted line below to a <P> tag using the tag palette.
    But when it is output, it still comes across with the style name, not the tag name.
    So, not sure if assigning actual tags to styles or elements really exports the tags - it seems it only exports the style that is applied to the element. I want to export the actual tag (not the style) so that when the tags are viewed from Acrobat, the PDF will show just <P>, <H1>, <H2>, etc.
    Any help is appreciated!

  • InDesign Export to PDF -- Tags changing in Acrobat

    I am trying to create a PDF file that is accessible/508-compliant. The original file was created using InDesign. I've added tags to the InDesign Files (P, H1, H2, etc.) which I see in the Structure panel. When I export the file to PDF with "create tagged pdf" checked the PDF file has different tags <span>, <no paragraph style>, etc. I'm at a loss of how to make the file accessible for screen readers.

    Do you know about the dreaded 'Yucky Discoloured Box' Syndrome?  Sounds like this might be it, you should supply info as to how you are printing it too.
    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php
    http://indesignsecrets.com/eliminating-the-white-box-effect.php

  • How to Map the styles in indesign

    I have updated certain styles in template now I need to updated those styles in source indd file.
    Do we have any way to map the styles or do we can replace the styles from one indd doc to another is there possible.
    Otherwise do we have any other simplest way in indesign.
    I have to replace more than 30 to 40 documents.
    Then it take so long time.
    Is there any script to make it soon.

    REMO1980 wrote:
    The actual probs is I need to replace only the style naming not the style.
    Example:
    In indd file the style name is "Title" I need to replace this style name to Chapter Title.
    Is this Possible in
    scripting?
    Yes its possible ....
    Check below code
    //rename paragraph style
    var myDoc = app.activeDocument;
    if (myDoc.paragraphStyles.item("Title") != null)
    myDoc.paragraphStyles.item("Title").name = "Chapter Title";
    But if you importing template style and your template style naming is different then your document stye. I think you can also use delete old style and replace with your new style.
    //delete and replace paragraph style
    if (myDoc.paragraphStyles.item("Title") != null && myDoc.paragraphStyles.item("Chapter Title") != null)
    myDoc.paragraphStyles.item("Title").remove("Chapter Title");
    Shonky

  • Possible to not have InDesign CC automatically generate class names based on 'Style Name'?

    In the Export Tagging settings in InDesign CC, there is an option to use a custom tag as well as a custom class name. However, if the class is left blank then the Style Name is used in its place.
    Is it possible to not have InDesign assign a class automatically?
    Here is my scenario: I would like to not clutter up my HTML markup by having a class name of `body` for all my p tags, when I could simply use p without a class and style it in my CSS.
    Thank you in advance.

    This is even worse than a Bug. It's a huge expense.
    Even if you make your paragraph style 1 letter, let's say "B" for "Body", You still end up with <p class=B> instead of just <p>. Now multiply that "class=B" by all the lines in your code and your bloat is greater than 10% on a per file basis.
    On Amazon a 3 MB file for example costs 45 cents to transmit to a customer. 10% more means an additional 4.5 cents cost per book. Say you sell 100,000 copies of a book, we're talking .045 x 100,000 = $4,500.00. And remember that MOBIs pretty much double the size of your basic EPUB. This is a serious problem, the correction of which cannot be delayed!

  • The custom style mapping option text still maintains the word formatting or it shows a style override in the InDesign style - how do I correct this?

    When I tell the custom style mapping option to format a Word style (from an rtf document) with the InDesign style, the text still maintains the word formatting or it shows a style override in the InDesign style. I have a large document that needs to import the styles correctly and I've followed the tutorials exactly however the placed text is still hanging onto the word RTF styles. I want the rtf text to convert to my InDesign styles completely without overrides.

    I actually need the cell styles. That's what sets my font, spacing, and GREP styles.
    I did find the solution today. In the table style or table setup, I needed to set the "Stroke Drawing Order" to "Column Strokes in Front". Even though it was previously set to "Best Joins" and I had no strokes for rows or for the table borders, it just wasn't giving priority to my dotted columns.
    Thanks for your response though!

  • Is it possible to reuse the map file that was produced to map FrameMaker styles to RoboHelp when creating a PDF in RoboHelp?

    I'm using RoboHelp 11 to produce WebHelp. The documentation was previously written in FrameMaker and posted in PDF format, however it has undergone many releases since those days. I'm now being asked to create the help in PDF and WebHelp. Not really an issue except that the help format does not look particularly good in PDF (not designed for both).
    Ideally I'd like to just use the map file from the original Frame to RoboHelp conversion in reverse (with a little editing)--to convert the RoboHelp styles to the original FrameMaker formats when I create the PDF, however A) there doesn't seem to be an option for that, and B) the original FrameMaker to RoboHelp map file doesn't seem to have been preserved after that conversion.  Is it there and I'm just not seeing it?
    If necessary I can just create another CSS to redefine the styles, but if I don't have to, I rather not.

    I suspect that even if you could find the mapping information (pass as to where) it would simply tell you that Style A in Fm was mapped to Style B in Rh but not give you any information about how Style A was defined in Fm.
    I think your only options are to create a CSS as you suggest or, as I would, create redefine the Word Style Mapping Template to suit. By going to Word first, you can edit the output for better page breaks and other tweaking you might want.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • What pdf tag should I use for footnotes?

    I get involved in generating fully accessible tagged pdf's for asisstive technologies and the like. I have a doc in InDesign which uses footnotes. When I tag the document, should I map the footnotes (paragraph) style to a particular predefined pdf tag (http://www.alistapart.com/d/pdf_accessibility/PDFtags.html) and if so which one? P, STORY, NOTE....? I'm not sure and can't find any reference out there to help me.

    offtheroad wrote:
    What instrument area should I use for pulling in iTunes files to edit together, Voice, guitar, ...
    drop the files into a blank area of the timeline and GB will create a track for the files. if you want to do it manually, create a New Basic Track

  • Bizarre Error: "Map Missing Styles" - CS3

    When updating linked text, I got a "Map Missing Styles" error, which said it was missing a certain paragraph style. I've never seen this error before and a google search came back with zero results. The needed paragraph style is definitely there, but it's inside a folder in paragraph styles. And before you ask, yes, the paragraph style was in the folder when I styled the original text.
    Anybody else ever have this issue? Can IDCS3 just not handle linked text when its paragraph style is inside a folder?
    thanks

    At what point in the operation do you map tags to styles?
    I suspect what may be happening is that some of the paragraphs were initially tagged by quadruple-clicking or by mapping styles to tags. Either of these entails that paragraph returns are included within tags, so that closing tags occur at the start of new paragraphs. Then, when you delete a paragraph, you are left with remnants of that paragraph's old tags (with nothing inside) in the following paragraph. (Check the Story Editor to test this.) Now, if you map tags to styles at this point, a paragraph with residual tags like these can be given the style of a paragraph that has been deleted.
    The way to avoid it is to make sure closing tags occur before the paragraph returns -- but of course if you are getting InDesign to "clone" for repeating XML elements, the resulting "cloning" behavior will be different. Consider the option to not include contents of whitespace-only elements to fix it. It will probably take a bit of trial-and-error to get it working exactly the way you want it to, but that's par for the course!
    Jeremy

  • SFTP sender to File receiver mapping of file names

    My scenario is: sender channel = SFTP (Seeburger) transferring multiple PDF files to Receiver adapter File (NFS).
    These PDF files need to have the same name as the original files from the sender (3rd party) system.
    Because these files are being processed without an interface, I can't use UDF to help map the file names.
    I've tried using Seeburger's localejbs/Seeburger/AttribMapper to map the names, as follows:
    File (NFS) receiver channel config:
    - ASMA boxes for 'Use Adapter-Specific Message Attributes' and 'File Name' are ticked
    - Module localejbs/Seeburger/AttribMapper is on the first line in the module tab under processing sequence, with module key = AttributeMapper
    - Under Module Configuration: 
      - Module Key = AttributeMapper
      - Parameter Name = http://sap.com/xi/XI/System/File/FileName
      - Parameter Value = @http://seeburger.com/xi/SFTP/dtSubject
    (I haven't entered any attribute module config on the sender side)
    This setup fails on the receiver side with the message 'Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.RetryControlException: Channel stopped by administrative task.' (not very helpful!).  All I can get from that is that it doesn't like my module configuration!
    Can anyone help me understand the correct way to do the file name mapping for my specific scenario?
    Regards,
    Christine

    We've got this working at last!
    The main problem was indeed the missing .sca file from Seeburger:  SeeModuleCollectionPI.sca
    Our Basis team deployed this file this morning.  After a bit of fiddling around with the attribute mapping, my test files were transferred successfully with their original names.
    The config I ended up with is just as described in another forum post for SFTP to FTP, but I'll repeat it in more detail here:
    Sender channel
    Parameters tab:
    Adapter Type = SFTP (Seeburger)
    (sender, transport & message protocol = SFTP)
    Scheduler = x in all appropriate days, with interval = 1 (minimum allowed)
    (rest here is specific to your environment, but I set filename to *.pdf to get all .pdf files from the sender)
    Module tab
    Processing Sequence
    Number  Module Name                                          Type                                          Module Key
    1            localejbs/Seeburger/AttribMapper          Local Enterprise Bean     AttribMapper
    2            localejbs/Seeburger/solution/sftp           Local Enterprise Bean     solutionid
    3            localejbs/CallSapAdapter                   Local Enterprise Bean     exit
    Module Configuration
    Module Key        Parameter Name                                               Parameter Value
    AttribMapper          http://sap.com/xi/XI/System/File/FileName         @http://seeburger.com/xi/common/dtSubject
    Receiver Channel
    Parameters tab:
    Adapter type = File
    (receiver, with transport protocol File System (NFS), etc)
    Target tab:
    Target directory (set to your required PI server directory)
    File Name Schema = * (can be anything, will be ignored)
    Processing tab:
    (your requirements-specific settings - mine were create, write directly, file type binary)
    Advanced tab:
    Under Adapter-Specific Message Attributes (ASMA):
    tick the following:
    Use Adapter-Specific Message Attributes
    Fail If Adapter-Specific Message Attributes Missing
    File Name
    Modules tab:
    Processing Sequence
    Number  Module Name                                          Type                                          Module Key
    1            CallSapAdapter                                       Local Enterprise Bean     0
    (nothing under Module Configuration)
    Thanks to those who kindly took the time to try and help me, your suggestions pointed me at the real problem.
    Christine

  • How to extract inline styles from a PDF document using Acrobat 9?

    I have a requirement for extracting all the contents along with the para level and character level styles from a PDF document in the form of XML. While doing so I'm getting lot of additional tags. In addition to that I'm not able to find the inline tags (character level tags) like bold, italics, superscripts etc and the page numbers. It would of great help if someone can throw light on this.
    Thanks.

    Moved to Acrobat Forum.

  • JS CS3 script form word styles to indesign styles

    I have search over the forums and can find a script the can change WORD styles (with a diskette sign) to Indesign paragraph styles (without the sign). Can any one help me on this?
    Thanks.

    Here I translated the script from Russian into English for you. BTW, it is based on a script written by Dave Saunders (thanks Dave for it) — I totally reworked it to my needs. You should replace paragraph style names, font names, find-search strings, etc. with your own stuff.
    Kasyan
    // Description: Script for InDesign CS3
    // Version 4
    // Removes local formatting of the text after importing it from Word transforming it into characters styles
    // Removes non CMYK colors
    // Removes imported styles
    // Adds non-breaking space before some abbreviations in text. For example: В, У, гг., млрд.
    // Removes superfluous. Finds-replaces some sequences of characters:  For example:"--" to "—"
    // Removes hyperlinks
    // Copyright © 2008 Kasyan Servetsky
    #target indesign
    if (app.documents.length == 0) {
         alert("Open a document and try again.", "Error", true);
    else {
         app.activate();
         var myDoc = app.activeDocument;
         if (myDoc.selection.length == 1) {
              if (myDoc.selection[0].constructor.name ==  "TextFrame") {
              var myTextFrame = myDoc.selection[0];
              else {
                   alert("Select a TEXT BOX.", "Error", true);
                   exit();
         else {
              alert("Select a single text block.", "Error", true);
              exit();
         if (!myDoc.saved) {
              alert("This document has never been saved. Save it and try again.", "Error", true);
              exit();
    //--------------------------------- Progressbar ---------------------------------
         var stop = 11;
         var w = new Window ( 'window', 'Preparing the file', undefined, {closeButton:false, maximizeButton:false, minimizeButton:false} );
         var pb = w.add ('progressbar', [0, 0, 350, 20], 0, stop);
         var txt = w.add('statictext', undefined, 'Starting the process');
         txt.alignment = "fill";
         w.show();
         pb.value = 1;
         var myTxtReplace;
         var myGrpReplace;
         myReplaceStuff();
         txt.text = "Finding-replacing text";
         myProblems = 0;
         myReplaceNonCMYK();
         pb.value = 2;
         txt.text = "Removing non CMYK colors";
         if (app.activeDocument.paragraphStyles.item("Body Text") == null) {
              pb.value = 3;
              txt.text = "Creating paragraph style \"Body Text\"";
              var paraStyle = myDoc.paragraphStyles.add( {     basedOn:"[No Paragraph Style]",
                                                                                                        name:"Body Text",
                                                                                                        alignToBaseline:true,
                                                                                                        firstLineIndent:2,
                                                                                                        leftIndent:0,
                                                                                                        rightIndent:0,
                                                                                                        spaceBefore:0,
                                                                                                        spaceAfter:0,
                                                                                                        justification:Justification.LEFT_JUSTIFIED,
                                                                                                        appliedFont:"TimesPalKasN\tRegular",
                                                                                                        pointSize:8.5,
                                                                                                        leading:10.6,
                                                                                                        kerningMethod:"Metrics",
                                                                                                        tracking:0,
                                                                                                        hyphenateCapitalizedWords:true,
                                                                                                        hyphenation:true,
                                                                                                        hyphenateBeforeLast:2,
                                                                                                        hyphenateAfterFirst:2,
                                                                                                        hyphenateWordsLongerThan:5,
                                                                                                        hyphenateLadderLimit:3,
                                                                                                        hyphenationZone:12.7,
                                                                                                        hyphenWeight:5,
                                                                                                        appliedLanguage:"Russian",
                                                                                                        fillColor:"Black"} );
         else {
              var paraStyle = myDoc.paragraphStyles.item("Body Text");
              pb.value = 3;
         removeImportedStyles();
         pb.value = 4;
         txt.text = "Removing imported styles";
         protectLocalStyling();
         pb.value = 5;
         txt.text = "Saving local formatting";
         myTextFrame.parentStory.texts.everyItem().paragraphs.everyItem().applyParagraphStyle(paraStyle, true);
         pb.value = 6;
         txt.text = "Applying paragraph style \"Body Text\"";
         removeInTables();
         pb.value = 7;
         txt.text = "Processing tables";
         myTextFrame.parentStory.texts.everyItem().paragraphs.everyItem().clearOverrides(OverrideType.all); // ***
         pb.value = 8;
         txt.text = "Removing local formatting";
         replaceTxt();
         pb.value = 9;
         txt.text = "Replacing text";
         replaceGrep();
         pb.value = 10;
         myRemoveHyperLinks();
         pb.value = 11;
         txt.text = "Removing hyperlinks";
         w.hide();
         if (myProblems == 0) {
              alert ("No problems were found.", "All done");
         else {
              alert ("Problems were found and corrected.", "All done");
    //************************************** Functions *******************************************************
    function protectLocalStyling() {
        var myStyles = ["Italic","Bold", "Bold Italic"];
        var myPosns = ["superscript","subscript"];
        var myPosnEnums = [Position.superscript, Position.subscript];
         var noCharStyle = myDoc.characterStyles[0];
        for (var j = myStyles.length - 1; j >= 0; j--) {
          var myCharStyle = myDoc.characterStyles.item(myStyles[j]);
          if (myCharStyle == null) {
            var myCharStyle = myDoc.characterStyles.add({name:myStyles[j], fontStyle:myStyles[j]});
              app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences.appliedCharacterStyle = noCharStyle;
              app.findTextPreferences.fontStyle = myStyles[j];
              app.changeTextPreferences.appliedCharacterStyle = myStyles[j];
              myTextFrame.parentStory.changeText();
        for (var j = myPosns.length - 1; j >= 0; j--) {
          var myPosCharStyle = myDoc.characterStyles.item(myPosns[j]);
          if (myPosCharStyle == null) {
            var myPosCharStyle = myDoc.characterStyles.add({name:myPosns[j], position:myPosnEnums[j]});
              app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
              app.findTextPreferences.appliedCharacterStyle = noCharStyle;
              app.findTextPreferences.position = Position[myPosns[j]];
              app.changeTextPreferences.appliedCharacterStyle = myPosns[j];
              myTextFrame.parentStory.changeText();
         app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    //  Removing non CMYK colors
    function myReplaceNonCMYK(){
         for(var myCounter = myDoc.colors.length; myCounter > 0; myCounter--){
              if (myDoc.colors[myCounter-1].name != "Registration" && myDoc.colors[myCounter-1].name != "Paper" && myDoc.colors[myCounter-1].name != "Cyan" && myDoc.colors[myCounter-1].name != "Magenta" && myDoc.colors[myCounter-1].name != "Yellow" && myDoc.colors[myCounter-1].name != "Black") {
                   if ((myDoc.colors[myCounter-1].space != ColorSpace.cmyk)  || (myDoc.colors[myCounter-1].model != ColorModel.process)){
                        myProblems = myProblems + 1;
                        myDoc.colors[myCounter-1].remove ("Black")
    // Removing imported styles
    function removeImportedStyles(){
         var paraStyle = myDoc.paragraphStyles.item("Body Text");
         var noneCharaStyle = myDoc.characterStyles.item("[None]");
         for(var myCounter = myDoc.paragraphStyles.length-1; myCounter >= 2; myCounter--){
              if (myDoc.paragraphStyles[myCounter].imported == true ) {
                   myDoc.paragraphStyles[myCounter].remove(paraStyle);
         for(var myCounter = myDoc.characterStyles.length-1; myCounter >= 2; myCounter--){
              if (myDoc.characterStyles[myCounter].imported == true) {
                   myDoc.characterStyles[myCounter].remove(noneCharaStyle);
    // Processing tables
    function removeInTables(){
         if (myTextFrame.parentStory.texts.everyItem().tables.length > 0) {
              if (myDoc.paragraphStyles.item("05. TABL_BODY") == null) {
                   myTableStyle = myDoc.paragraphStyles.add({name:"05. TABL_BODY", appliedFont:"HeliosKas\tCondensed Regular", pointSize:8, leading:8});
              else {myTableStyle = myDoc.paragraphStyles.item("05. TABL_BODY")}
         myTextFrame.parentStory.texts.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().applyParagraphStyle(myTableStyle, true);
         myTextFrame.parentStory.texts.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().clearOverrides(OverrideType.all);
    // Find-replace pairs
    function myReplaceStuff() {
         myTxtReplace =     [ // TEXT
                                            [" А ", " А^S"],
                                            [" В ", " В^S"],
                                            [" С ", " С^S"],
                                            [" К ", " К^S"],
                                            [" О ", " О^S"],
                                            [" У ", " У^S"],
                                            [" На ", " На^S"],
                                            [" По ", " По^S"],
                                            [" Из ", " Из^S"],
                                            ["г-н ", "г-н^S"],
                                            ["г-на ", "г-на^S"],
                                            ["г-ну ", "г-ну^S"],
                                            [" т", " ^Sт"],
                                            [" г.", " ^Sг."],
                                            [" гг.", " ^Sгг."],
                                            [" грн.", " ^Sгрн."],
                                            [" коп.", " ^Sкоп."],
                                            [" тыс", " ^Sтыс"],
                                            [" млн", " ^Sмлн"],
                                            [" млрд", " ^Sмлрд"],
                                            [" т.п.", " ^Sт.п."],
                                            [" т.д.", " ^Sт.д."],
                                            [" др.", " ^Sдр."],
                                            [" км", " ^Sкм"],
                                            ["см. стр.", "см.^Sстр."],
                                            [" ^p", "^p"],
                                            [" —", "^S—"],
                                            [" —", "^S—"],
                                            ["№ ", "№"],
                                            ["$ ", "$"],
                                            ["EUR ", "EUR"],
         myGrpReplace =     [ // GREP
                                            ["[~m~>~f~|~S~s~<~/~.~3~4~% ]{2,}", " "], // Multiple Space to Single Space
                                            ["--", "~_"] // Dash Dash to Em-dash
                                            // ["~b~b+", "\\r"], Multiple Return to Single Return
    function replaceTxt() {
         app.findTextPreferences = NothingEnum.nothing;
         app.changeTextPreferences = NothingEnum.nothing;
         app.findChangeTextOptions.wholeWord = false;
         app.findChangeTextOptions.caseSensitive = true;
         app.findChangeTextOptions.includeMasterPages = false;
         for (i = 0; i <  myTxtReplace.length; i++) {
              var myCurArray = myTxtReplace[i];
              app.findTextPreferences.findWhat = myCurArray[0];
              app.changeTextPreferences.changeTo = myCurArray[1];
              myTextFrame.parentStory.changeText();
         app.findTextPreferences = NothingEnum.nothing;
         app.changeTextPreferences = NothingEnum.nothing;
    function replaceGrep() {
         app.findGrepPreferences = NothingEnum.nothing;
         app.changeGrepPreferences = NothingEnum.nothing;
         for (i = 0; i <  myGrpReplace.length; i++) {
              var myCurArray = myGrpReplace[i];
              app.findGrepPreferences.findWhat = myCurArray[0];
              app.changeGrepPreferences.changeTo = myCurArray[1];
              myTextFrame.parentStory.changeGrep();
         app.findGrepPreferences = NothingEnum.nothing;
         app.changeGrepPreferences = NothingEnum.nothing;
    function myRemoveHyperLinks(){
         if (myDoc.hyperlinks.length > 0){
              for(var myCounter = myDoc.hyperlinks.length; myCounter > 0 ; myCounter--){
                   myProblems++;
                   myDoc.hyperlinks[myCounter - 1].remove();

  • Export a Indesign(CS3)  Document as PDF(Windows)

    Hi,
    I am beginner in Indesign Plugin development.
    I want to export a Indesign CS3 document as PDF programmatically. I
    know that we need to use IPDFExportPrefs and set the various
    attributes.I dont know proper code.
    Can anybody give the code to implement it.
    Or any reference to find it.
    Thanks,
    Ravi sharma

    Arthur,
    You can't export the document directly to HTML, but you can use the Cross-Media Export to make and XHTML file for Dreamweaver (or other editor). It will generate an HTML page and a blank CSS style sheet, as well as gathering the images, but web and print are entirely different formats so you won't have anything resembling your ID doc when you get through, as far as layout is concerned. If you want people to see your layout as is, you need to use PDF. Try changing the compression settings for the export to bring the size down, but it will be a compromise somewhere most likely.
    Peter

  • InDesign CS5.5 Exporting PDF master page hyperlinks only work on first 2 pages

    We recently upgraded from CS5 to CS5.5 and now our hyperlinks that go to different pages in the PDF only are working on the first 2 pages of each document in the book.  We have about 30 documents wrapped up in a indesign book.  On the master page we have hyperlinks that allow users to quickly go to the index in the back of the book.  After the CS5.5 upgrade the hyperlinks only work the the first 2 pages of each document.  We export to PDF(print) with hyperlinks enabled.
    I have tried the below:
    - I have tried 2 different computers
    - Deleted and re-created the indesign preference file
    - deleted and re-created the hyperlinks

    Can you recommendd the best way to manage the following:
    I'm on a Mac. Created an enewsletter for a client in Indesign CS5 with 7 "click here"s throughout the document. The hyperlinks are to connect w other PDF documents not URLs.
    Where will I have the best luck creating the hyperlinks - Indesign or in the PDF I export? I have Acrobat Pro if I need to create the hyperlinks in the PDF.
    Except I can't figure out how to create the links in either program as far as what name to designate and where do the PDFs reside so people can link to  them? And do I enter the file name of the PDF connected to the particular "click here."

Maybe you are looking for

  • Flashplayer doesn't work in IE 10.?

    I have downloaded my flash player numerous times and it won't work with IE 10. and sometimes in Chrome.  Chrome's graphics are so bad I don't want to use it except for a back up. I have had this problem for a couple of months.  I download it it succe

  • Got new miniMac servers with 2x750GB drives. How to setup and confirm RAID mirror?

    Literally just got shiny new miniMac Server with the dual 70GB internakky hard drives/disks with OS X 10.7.$ LION pre-installed. What a nice machine in a super cool box! Seemed to bootup and run fine! Now my issue (there will be more for this MAC new

  • X6 : how to get next and previous controls working...

    Hi, May be i am missing how to do the same...but i can't get the the next video by pressing the next icon on the real player...i am viewing the video files from the gallery..Or the next and prev controls won't work..

  • Pattern tool background fill

    Is there a way that the background fill of a pattern can fill the whole pattern so that there aren't gaps like the above picture? So that it woudn't matter if you expanded the border there would always be a solid fill background?

  • Change styles for ebook/print

    I have my book pasted up in InDesign, and I can easily output to PDF or EPUB from the book window. Great. However, I'd like different styles to apply to each format. For example, I want a different first-line paragraph indent level for PDF than for E