ExifTool Forum

ExifTool => Newbies => Topic started by: scibi on October 24, 2017, 08:43:06 AM

Title: Deleting "undeletable" data from .ai file
Post by: scibi on October 24, 2017, 08:43:06 AM
Hi!
Im using Exiftool from some time, and this tool helped me a lot in my work (as QA).
Today I have blocked/stopped/crashed on removing some xmp data which  -all:all/-xmp:all/GUI cannot delete :(
The data looks like :

<?xpacket begin="" id="xxxxxxxxxxxxxxxx"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c014 79.156821, 2014/08/29-03:07:50        ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about=""
    xmlns:xmp="http://ns.adobe.com/xap/1.0/"
    xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/"
    xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/"
    xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#"
    xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#"
    xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/"
    xmlns:illustrator="http://ns.adobe.com/illustrator/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
    xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
    xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
    xmlns:stMfs="http://ns.adobe.com/xap/1.0/sType/ManifestItem#"
    xmlns:pdf="http://ns.adobe.com/pdf/1.3/"
    xmlns:egGr="http://ns.esko-graphics.com/grinfo/1.0/"
    xmlns:egInk="http://ns.esko-graphics.com/inkinfo/1.0/"
    xmlns:egLayL="http://ns.esko-graphics.com/laylist/1.0/"
    xmlns:egLay="http://ns.esko-graphics.com/layer/1.0/"
    xmlns:egPagL="http://ns.esko-graphics.com/pagerangelist/1.0/"
    xmlns:egPag="http://ns.esko-graphics.com/pagerange/1.1/"
    xmlns:egBarcL="http://ns.esko-graphics.com/barcodelist/1.0/"
    xmlns:egBarc="http://ns.esko-graphics.com/barcode/1.0/"
    xmlns:egFontL="http://ns.esko-graphics.com/fontlist/1.0/"
    xmlns:egFont="http://ns.esko-graphics.com/fontinfo/1.0/"
    xmlns:ExtensisFontSense="http://www.extensis.com/meta/FontSense/"
   xmp:CreatorTool="Esko DeskPack 14.1.1.121 Oct  2 2015"
   xmp:CreateDate="2016-01-08T16:45:45+08:00"
   xmp:ModifyDate="2017-07-21T11:01:50+08:00"
   xmp:MetadataDate="2017-07-21T11:01:50+08:00"
and so on..


Rest of xmp data is already deleted, or If i work on next file is removed with no problem, but always this keeps remaining. This problem don't occur on PSD files.
Any ideas how can I beat it?
Thanks for your time!
Title: Re: Deleting "undeletable" data from .ai file
Post by: Phil Harvey on October 24, 2017, 08:53:40 AM
If you could send a sample file to me, I'll take a look (philharvey66 at gmail.com)

- Phil
Title: Re: Deleting "undeletable" data from .ai file
Post by: Phil Harvey on October 24, 2017, 09:05:45 AM
I got the sample.  This is a PDF-format AI file.

You should have seen this warning when you edited the file with ExifTool:

    Warning: [minor] ExifTool PDF edits are reversible. Deleted tags may be recovered!

ExifTool is removing the XMP from the document dictionary.  However, PDF edits are reversible, so the data is never actually deleted from the file.  The data may be removed permanently using a utility such as qpdf.  See point number 2 in the PDF tags documentation (https://exiftool.org/TagNames/PDF.html) for details.

- Phil
Title: Re: Deleting "undeletable" data from .ai file
Post by: scibi on October 24, 2017, 09:12:20 AM
Thanks Phil for the answer!
It works :)