9 Replies Latest reply on Mar 29, 2011 2:48 AM by John Hawkinson

    Damaged Files in InDesign CS5

    Oviya... Level 1

      Hi Friends,

       

                     How can find, File whether damaged or not before opening that file in InDesign CS5....?

       

      Thanks,

      Divya.

        • 1. Re: Damaged Files in InDesign CS5
          Oviya... Level 1

          Its very urgent.. Please help me friends....

          • 2. Re: Damaged Files in InDesign CS5
            John Hawkinson Level 5

            Your question is whether you can determine if an InDesign file is damaged before you open it?

             

            Generally speaking, you cannot do so. The only application that can reliably read InDesign files is InDesign. So the best you can do is ask InDesign to open it.

             

            That said, there are some preliminary checks you can do. You can make sure the size of the file is reasoanble.

            You can make sure the file starts with 0606EDF5-D81D-46e5-BD31-EFE7FE74B71D. You can probably do a few more things, but are they worth it? Probably not.... But you don't tell us what your application is, so it is hard to tell.

            • 3. Re: Damaged Files in InDesign CS5
              Oviya... Level 1


              File size is 262 KB friend...

               

              While opening the file only it shows "Cannot open. The file is damaged and cannot be recovered(Error Code:5)".

               

              Is any way in InDesign java script to find this problem...........?

              • 4. Re: Damaged Files in InDesign CS5
                John Hawkinson Level 5

                Almost certainly not. Javascript lets you perform tasks that you could otherwise do in the InDesign application. There are a few things it can do that are not presented in the user interface, but they are pretty rare and specialized (like executing XML rules). There is no Javascript API for validating file integrity or giving you insight into why the file may be unreadible.

                • 5. Re: Damaged Files in InDesign CS5
                  Oviya... Level 1

                  Ok John.
                  No need in java script.. atleast, Is any other way to find..?


                  • 6. Re: Damaged Files in InDesign CS5
                    [Jongware] Most Valuable Participant

                    Oviya... wrote:

                     

                    File size is 262 KB friend...

                     

                    That's enough information. The file is damaged, period.

                     

                    All file sizes created by InDesign are multiples of 4,096 bytes. Additionally, all files created by InDesign start with a standard structure of 8,192 bytes -- and at that point there is *nothing* inside the file, it's all header.

                     

                    Checking with Javascript is the most senseless thing to ask. How could that even work? You start a script, point to a file, and it says "file is damaged" -- for each file you want to open?

                     

                    ---

                     

                    [OT] "One more request to all, If you feel someone's reply is useful to find your answer or correct answer, don't forget to mark the reply as "useful answer" or "correct answer". If you mark It will help to the readers also."

                     

                    Please do so.

                    • 7. Re: Damaged Files in InDesign CS5
                      Oviya... Level 1

                      I didn't get your reply....

                      • 8. Re: Damaged Files in InDesign CS5
                        John Hawkinson Level 5

                        It would help if you could write your English a lot more clearly. I understand it's not your first language, but perhaps you could just use more words.

                         

                        Do you mean you did not RECEIVE Jongware's reply? Or you did not UNDERSTAND it? Or something else?

                         

                        If you did not UNDERSTAND it, which part did you not understand?

                        • 9. Re: Damaged Files in InDesign CS5
                          [Jongware] Most Valuable Participant

                          Oviya... wrote:

                           

                          I didn't get your reply....

                           

                          Yes, I'm afraid that's the case.

                           

                          Possibly you lack the correct technical background to ask "the right questions".