6 Replies Latest reply on Nov 23, 2012 5:14 AM by Dave Merchant

    How Do I run Flattener Preview with Javascript or Action

    cvpd

      Hey Guys,

       

      I'm running Acrobat XI on Windows 7, and I'm looking for a way to automate outlining of text in a PDF.

       

      So far I've got the watermark stage all taken care of through Actions, but I can't find the command to use flattener preview.

       

      Can someone please point me to the right command, or alternately, point me to the right Javascript reference (I've downloaded the SDK but there's no searchable reference to the flattener preview in the Javascript reference) so I can include the custom code in Actions.

       

      If it doesn't exist, can I formally request that the command be added to the selectable commands in the Action interface, it seems like a logical one to include as it's ability to outline text is extremely useful.

       

      Kind regards,

       

      Andrew

        • 1. Re: How Do I run Flattener Preview with Javascript or Action
          Test Screen Name Most Valuable Participant

          The flattener is NOT a tool for converting text to outline; Acrobat has no such tool (and many would say that the whole idea of outlining text is out of date, though not people who operate die cutters).

           

          When the flattener actually HAS to flatten transparency, converting text to outline is one of the techniques it MIGHT use.

           

          I don't think there is an API to it anyway.

          • 2. Re: How Do I run Flattener Preview with Javascript or Action
            cvpd Level 1

            Have you tried to open a PDF with fonts that you 1. Don't have and 2. Cost a fortune to buy? I don't need to edit the text, I need to import the PDF into Illustrator to make a minor change or add bleed without it ruining the fonts through substitution. Outlining the fonts is the easiest and fastest way to do it reliably, and the only way to do that in Acrobat without another expensive extension is to use the VERY USEFUL text outlining function in the flattener preview.

             

            Clearly you're only a designer who doesn't have to work with someone else's files. I'm a printer who has to work with someone else's files every second job I run.

             

            Seriously, if you can't answer the question I asked why go on the attack to make you feel valid?

            • 3. Re: How Do I run Flattener Preview with Javascript or Action
              Test Screen Name Most Valuable Participant

              You should recall that Adobe sell fonts, when you consider the features of Acrobat. Also, Adobe have to keep the other font manufacturers happy, since they may otherwise remove their font licenses that allow use in a PDF. This was a very real possibility a few years ago.

               

              I didn't see my response as an attack, sorry if it seems that way. Simply a statement of facts. Many, many people have indeed been saying for years that font outlining is obsolete.


              And, indeed, the transparency flattener will only sometimes, if you happen to be lucky, outline fonts. I have to point this out in case anyone who happens to read this thread thinks they have found a panacea.

              • 4. Re: How Do I run Flattener Preview with Javascript or Action
                cvpd Level 1

                If you want flattener to outline fonts 100% of the time you add a transparent watermark before doing it, as I mentioned earlier. I set it to 100% transparent, and the flattener works 100% of time time. It only works when there's transparency to work with. Took me a while plus half a dozen Google searches to figure that out.

                 

                Automating that watermark is the easy part. I'm looking for a way to include automating the flattener step as well, then with a click of a button the fonts are outlined and I can make the adjustments I need to in Illustrator.

                 

                Unless Adobe wants to fix the import process in Illustrator to give me the option to outline the fonts upon import?

                • 5. Re: How Do I run Flattener Preview with Javascript or Action
                  Test Screen Name Most Valuable Participant

                  Again, don't take this as an attack, but why would Adobe provide an option which could reduce their sales of fonts. The font makers have the upper hand here.

                   

                  I don't deny a problem exists, especially in Japan, where popular font sets are not licensed for embedding in PDF at all.

                  • 6. Re: How Do I run Flattener Preview with Javascript or Action
                    Dave Merchant MVP & Adobe Community Professional

                    You can easily automate the Flatten tool using Preflight to define a new Profile, which fires the obviously-named 'Flatten transparency' fixup. The Profile can then be applied to a set of files using an Action or a Droplet.