3 Replies Latest reply on Jun 13, 2013 11:45 AM by MarkWalsh

    Acrobat Scripting Open EPS Files Failed

    trundo Level 1

      Trying to open am .EPS file using AcroPDDoc and it is not working.  Any ideas?

       

      Using VS 2010

           Reference COM Object Adobe Acrobat 9.0 Type Library

       

      C# code

           AcroPDDoc testDoc = new AcroPDDoc();

           bool c = testDoc.Open(filepath);

       

           string t = testDoc.GetInfo("Author");

       

      I get nothing, even the boolean c is not even set.

       

      What I am trying to do is find out what application was used to create the .EPS file (i.e. Illustrator C2, Illustrator C6, CorelDRAW x5, etc.)?

       

       

      Any ideas?

       

       

      Thanks,

       

      Tom

        • 1. Re: Acrobat Scripting Open EPS Files Failed
          MarkWalsh Level 4

          Can you read the binary data for the file in Visual Studio? If so, look for a line starting with '%%Creator'. The rest of the line should be the application and version info (at least it is with the various EPS files I checked; don't have CorelDraw to test)

          • 2. Re: Acrobat Scripting Open EPS Files Failed
            trundo Level 1

            Mark,

             

            OK I understand where you are going.

             

            Now here is one issue.

             

            I can open 1 EPS file in Acrobat and in the properties it shows Application is CorelDraw x5.

                 Looking at the binary it shows Creator as

                      <<

                      /CreationDate (D:20130612013722-04'00')

                      /ModDate (D:20130612013722-04'00')

                      /Producer           <feff0043006f00720065006c002000500044004600200045006e00670069006e006500200056006500720073 0069006f006e002000310035002e0032002e0030002e003600360031>

                      /Author <feff004e006900670068007400200049006e007300740072007500630074006f0072>

                      /Creator <feff0043006f00720065006c0044005200410057002000580035>

                      /Title <feff00630068006500650072>

                      >>

             

                 This file would be a problem since I can't get the Creator.

             

             

            I can open other .EPS files in Acrobat in the properties it shows Application is Illustrator.

                 Looking at the binary it shows Create as:

                      <xmp:CreatorTool>Adobe Illustrator CS6 (Macintosh)</xmp:CreatorTool>

             

                 This file would not be a problem at all.

             

            And opening a CorelDraw file (.CDR) is all binary and no text that is understandable.

            • 3. Re: Acrobat Scripting Open EPS Files Failed
              MarkWalsh Level 4

              Don't look for 'Creator', look for '%%Creator' -include the %% in the search (there may be several lines which include 'Creator', but should only be one that starts with '%%Creator'). Again, not sure if the CorelDraw files conform to this or not.

               

              Edit: that assumption may not be accurate, there may be multiple lines which start with %%Creator - but those lines should contain the application info.