4 Replies Latest reply: Oct 6, 2014 5:25 AM by Russ Ward RSS

    FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?

    Denis Thiessen 56 Community Member

      Is there a way in FrameMaker 10 in the book to quickly find all imported graphics (.bmp, .cgm, .jpg, & .wmf) that are out-of-aspect ratio or where the Object Properties Scaling equals 0%?

       

      I import a lot of graphic (around a 100 or so) in FrameMaker 10 and I would like to be reassured that all imported graphic have the correct aspect ratio, and find any that are wrong quickly.

       

      I would like to be able to do this search in the Book format rather than each section.

       

      Is there a way to do this?

       

      Thanks!

        • 1. Re: FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?
          Gorly Community Member

          Hi Denis,

          the easiest way to do that would be to roundtrip those files to XML and back, discarding any size information doing so.

           

          -Alex

          • 2. Re: FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?
            Russ Ward Community Member

            Denis, this would require scripting. ExtendScript would likely be the first choice and would be perfect for the job. Given that you want to operate on the whole book at once, the script would be a little bit longer, so you might not get someone to post it here for free. I would consider it because it would be a nice addition to the samples on my website, but I can't do it right this minute. If no one offers for free, hit me up in a day or two and I might be able to accommodate  you.

             

            One question though... are you really looking to verify the aspect ratio? This could be a considerably more complicated task. FrameMaker doesn't save the original ratio, so you would need to reimport the graphic into some other scratchpad area, calculate the aspect ratio, then compare it to the place of reference. I'm not sure that I could go that far.

             

            Alex, I think you may have misunderstood the question. Also, it's not even clear if these are structured files, and if so, if there is a structured application to save as XML.

             

            Russ

            • 3. Re: FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?
              Gorly Community Member

              Hello Russ,

              to my understanding, the question was targeted towards ensuring that all graphics in the book are included with their original size and aspect ratio.

              As we're in the structured FM part of the forum I'd think that we are talking about structured files. So an XML roundtrip is the first thing that comes to mind, as most of the structures that I've seen being used are having a structapp underlying anyways.

              Doing some tweaks in the RWR is much more easy to understand, than doing the scripting way from scratch - at least in my opinion.

              I'm doing more or less the same with our legacy docs, to ensure they're fitting our latest requirements (as-is-import of graphics).

              Probably I'm wrong understanding the goal of the original question, but that's up to Denis to answer that.

               

              -Alex

              • 4. Re: FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?
                Russ Ward Community Member

                Hi Alex,

                 

                I think I see what you are saying now. Roundtrip except discarding the image metadata, then the images come back in with their original sizing. It might work, in the right situation.

                 

                Russ