Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Edit IDML, remove metadata, save, again open in InDesign - can't open

Contributor ,
Sep 18, 2017 Sep 18, 2017

Hi,

I have an InDesign source document within more than 30mb metadata info, when we use the source file in another document, adding 30mb additionally when getting pages one-by-one. So, we don't retain the meta info in source document. I'm trying to remove the metadata information from the source file and i can't open the document.

I have followed the below process,

1. Save the source file to IDML

2. Change the file extension from .dml to .zip

3. Unzip the zip folder

4. Edit the meta info in xml file and save

5. Zip the folder

6. Change the file extension from .zip to .idml

7. Then, I can't open modified file.

Can you please guide me know if I missed any important steps.

Screen Shot 2017-09-18 at 7.21.42 pm.png

Screen Shot 2017-09-18 at 7.25.40 pm.png

Thanks in advance,

Selva

4.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Sep 18, 2017 Sep 18, 2017

Hi Selva,

You can easily edit XMP metadata without passing through IDML thanks to the Adobe XMPLIB library:

Given that file is the indd file you are after:

var main = function() {

var file = File.openDialog();

if  ( !file  || !/\.indd$/.test(file.name) ) return;

var xmpFile = new XMPFile(file.fsName, XMPConst.UNKNOWN,XMPConst.OPEN_FOR_UPDATE);

var xmp = new XMPMeta();

if (xmpFile.canPutXMP(xmp)) {

xmpFile.putXMP(xmp);

}

xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);

}

try

{

ExternalObject.AdobeXMPScript = ne

...
Translate
People's Champ ,
Sep 18, 2017 Sep 18, 2017

Hi Selva,

You can easily edit XMP metadata without passing through IDML thanks to the Adobe XMPLIB library:

Given that file is the indd file you are after:

var main = function() {

var file = File.openDialog();

if  ( !file  || !/\.indd$/.test(file.name) ) return;

var xmpFile = new XMPFile(file.fsName, XMPConst.UNKNOWN,XMPConst.OPEN_FOR_UPDATE);

var xmp = new XMPMeta();

if (xmpFile.canPutXMP(xmp)) {

xmpFile.putXMP(xmp);

}

xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);

}

try

{

ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');

main();

}

catch (e)

{

alert(e.message+"//"+e.line );

alert('Unable to load the AdobeXMPScript library!');

}

Be aware the file needs to be closed or it will fail.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 19, 2017 Sep 19, 2017

Hi Loic,

The alternate solution is tremendous. It's working fine on my file. Thanks you so much.

selva

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2017 Nov 16, 2017

Another option is to use ExifTool to remove all XMP (or specific) metadata:

exiftool -r -XMP:all= 'MAC OS PATH TO FILE OR FOLDER'

exiftool -r -XMP:all= "WIN OS PATH TO FILE OR FOLDER"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2018 Jun 27, 2018

There may not be any need to edit via IDML:

Prepression: Metadata Bloat – photoshop:DocumentAncestors

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2018 Jun 27, 2018
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines