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

Delete undefined attribute from book root element

Contributor ,
Jun 30, 2022 Jun 30, 2022

Copy link to clipboard

Copied

The Extendscript method doc.DeleteUndefinedAttribute and the equivalent FDK F_ApiDeleteUndefinedAttribute are not available for a book. There appears to be no other way to delete an undefined attribute or even a normal attribute for that matter. They are available for a document, as discussed in Delete an attribute.

 

have used the nomenclature ele.Attributes = changedAttributes a lot. It appears that the Extendscript implementation just goes through and updates any attributes with changed values. It does not remove any, should changedAttributes be one less. 😉

 

.pop() also appears to be ignored for attributes, in that the attributes length says the same.

 

Am I missing something easy here?

 

Jon

TOPICS
Scripting

Views

26

Likes

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation