SimpleIDML 1.2.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- simpleidml-1.3.1/PKG-INFO +759 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/README.rst +2 -2
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/setup.py +3 -5
- simpleidml-1.3.1/src/SimpleIDML.egg-info/PKG-INFO +759 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/SimpleIDML.egg-info/SOURCES.txt +5 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/__init__.py +1 -1
- SimpleIDML-1.2.0/PKG-INFO +0 -760
- SimpleIDML-1.2.0/src/SimpleIDML.egg-info/PKG-INFO +0 -760
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/AUTHORS +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/LICENSE +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/MANIFEST.in +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/setup.cfg +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/SimpleIDML.egg-info/dependency_links.txt +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/SimpleIDML.egg-info/requires.txt +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/SimpleIDML.egg-info/top_level.txt +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/scripts/simpleidml_create_package_from_dir.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/scripts/simpleidml_indesign_close_all_documents.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/scripts/simpleidml_indesign_save_as.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/commands.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/components.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/decorators.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/exceptions.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/extras.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/ftp.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/id_package.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/idml.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/__init__.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/indesign.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/scripts/close_all_documents.jsx +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/scripts/export.jsx +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/scripts/list_profiles.jsx +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/scripts/package_to_print.jsx +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/indesign/scripts/save_as.jsx +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/test.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/src/simple_idml/utils.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/Makefile +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/coveragerc +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-0photo.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-0photo.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-1photo-elts-same-layer.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-1photo-elts-same-layer.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-1photo.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/2articles-1photo.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/4-pages-layers-with-guides.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/4-pages-layers-with-guides.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/4-pages.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/4-pages.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/META-INF/container.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/META-INF/metadata.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/MasterSpreads/MasterSpread_ua5.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Resources/Fonts.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Resources/Graphic.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Resources/Preferences.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Resources/Styles.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Spreads/Spread_ud6.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Stories/Story_u188.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Stories/Story_u19f.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/Stories/Story_u1db.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/XML/BackingStory.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/XML/Mapping.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/XML/Tags.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/designmap.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo/mimetype +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo-package.zip +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo-with-attributes.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo-with-attributes.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_import-xml.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_import-xml.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_imported-nested-xml.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_imported-nested-xml.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_imported-xml.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/article-1photo_imported-xml.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/4-pages-insert-article-0-photo-complex.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo-complex.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo-elts-same-layer.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent2.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent3.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-ignorecontent.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-nested-tags.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes2-prefixed.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes2.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-setcontent-false.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml-without-picture.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/expected/article-1photo_import-xml.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/META-INF/container.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/META-INF/metadata.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/MasterSpreads/MasterSpread_uba.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Resources/Fonts.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Resources/Graphic.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Resources/Preferences.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Resources/Styles.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Spreads/Spread_u165.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u16d.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u184.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u19a.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u1c6.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u1dd.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u1f3.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u209.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u221.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u237.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u24e.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u264.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/Stories/Story_u27b.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/XML/BackingStory.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/XML/Mapping.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/XML/Tags.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/designmap.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview/mimetype +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interview.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interviewold.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/interviewold.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-bloc-notes.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-bloc-notes.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs-3pages.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs-3pages.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-edito.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-edito.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/magazineA-template.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/media/Jacques-Yves_Cousteau.jpg +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/media/bouboune.jpg +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/media/default.jpg +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/media/default2.jpg +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/module1.pdf +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/package-pirate.zip +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/page-9modules.idml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/IDML/page-9modules.indd +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/SOAP/indesign-service.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent2.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent3.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-ignorecontent.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-nested-tags.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-extra-nodes.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-extra-nodes2.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-delete-informations.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-delete.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-false.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-remove-br.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml-without-picture.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/article-1photo_import-xml.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/XML/interview_en.xml +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/__init__.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/components.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/extras.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/id_package.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/idml.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/indesign.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/regressiontests/utils.py +0 -0
- {SimpleIDML-1.2.0 → simpleidml-1.3.1}/tests/runtests.py +0 -0
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: simpleidml
|
|
3
|
+
Version: 1.3.1
|
|
4
|
+
Summary: A library to manipulate Adobe(r) IDML(r) files.
|
|
5
|
+
Home-page: https://github.com/Starou/SimpleIDML
|
|
6
|
+
Author: Stanislas Guerra
|
|
7
|
+
Author-email: stanislas.guerra@gmail.com
|
|
8
|
+
License: BSD Licence
|
|
9
|
+
Project-URL: Source Code, https://github.com/Starou/SimpleIDML
|
|
10
|
+
Project-URL: Issue Tracker, https://github.com/Starou/SimpleIDML/issues
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
19
|
+
Classifier: Topic :: Printing
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: AUTHORS
|
|
23
|
+
|
|
24
|
+
==========
|
|
25
|
+
SimpleIDML
|
|
26
|
+
==========
|
|
27
|
+
|
|
28
|
+
.. image:: https://img.shields.io/pypi/v/simpleidml.svg
|
|
29
|
+
:target: https://pypi.python.org/pypi/SimpleIDML
|
|
30
|
+
|
|
31
|
+
.. image:: https://img.shields.io/pypi/pyversions/simpleidml.svg
|
|
32
|
+
:target: https://pypi.python.org/pypi/SimpleIDML/
|
|
33
|
+
:alt: Supported Python versions
|
|
34
|
+
|
|
35
|
+
.. image:: https://img.shields.io/pypi/l/simpleidml.svg
|
|
36
|
+
:target: https://pypi.python.org/pypi/SimpleIDML/
|
|
37
|
+
:alt: License
|
|
38
|
+
|
|
39
|
+
.. image:: https://coveralls.io/repos/github/Starou/SimpleIDML/badge.svg?branch=master
|
|
40
|
+
:target: https://coveralls.io/github/Starou/SimpleIDML?branch=master
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
Installation
|
|
44
|
+
============
|
|
45
|
+
|
|
46
|
+
Use ``pip``:
|
|
47
|
+
|
|
48
|
+
.. code-block:: bash
|
|
49
|
+
|
|
50
|
+
pip install simpleidml
|
|
51
|
+
|
|
52
|
+
Or:
|
|
53
|
+
|
|
54
|
+
.. code-block:: bash
|
|
55
|
+
|
|
56
|
+
python setup.py build
|
|
57
|
+
sudo python setup.py install
|
|
58
|
+
|
|
59
|
+
Python support
|
|
60
|
+
--------------
|
|
61
|
+
|
|
62
|
+
- Python 3: 3.9+
|
|
63
|
+
|
|
64
|
+
Any questions?
|
|
65
|
+
--------------
|
|
66
|
+
|
|
67
|
+
https://groups.google.com/forum/#!forum/simpleidml-users
|
|
68
|
+
|
|
69
|
+
Developers
|
|
70
|
+
----------
|
|
71
|
+
|
|
72
|
+
.. code-block:: bash
|
|
73
|
+
|
|
74
|
+
vagrant up
|
|
75
|
+
vagrant ssh
|
|
76
|
+
cd tests
|
|
77
|
+
python runtests.py
|
|
78
|
+
|
|
79
|
+
What is SimpleIDML?
|
|
80
|
+
===================
|
|
81
|
+
|
|
82
|
+
SimpleIDML is a Python library to manipulate Adobe® InDesign® IDML files. The main purpose being
|
|
83
|
+
the ability to compose IDML files together and produce complex documents from simple pieces and
|
|
84
|
+
to separate the data from the structure.
|
|
85
|
+
|
|
86
|
+
The philosophy behind SimpleIDML is to keep the content and structure separated and to use XML
|
|
87
|
+
files to feed your documents by using the XML Structure in InDesign.
|
|
88
|
+
Keeping this isolation is important to ease the debugging and to keep track of what is going on.
|
|
89
|
+
|
|
90
|
+
I urge you to take a look in the *regressiontests* directory for real-world examples.
|
|
91
|
+
|
|
92
|
+
Uses cases - success story(ies)
|
|
93
|
+
===============================
|
|
94
|
+
|
|
95
|
+
Le Figaro - FigaroClassifieds
|
|
96
|
+
-----------------------------
|
|
97
|
+
|
|
98
|
+
SimpleIDML is used in production at *Le Figaro* aside in-house tools managing the content of
|
|
99
|
+
Classifieds Ads magazines like *Propriétés de France* or *Belles Maisons à louer*.
|
|
100
|
+
These tools produces XML files describing the page layout (which IDML templates and sub-templates
|
|
101
|
+
to use) and the page content.
|
|
102
|
+
The XML files feed another tool - the one using SimpleIDML - that compose the final page.
|
|
103
|
+
|
|
104
|
+
The steps of the (simplified) process of composition are:
|
|
105
|
+
|
|
106
|
+
1. Get the main IDML template (the page) ;
|
|
107
|
+
2. Ad the sub-templates (the ads) into the page template ;
|
|
108
|
+
3. Import the content into the final IDML file ;
|
|
109
|
+
4. Edit the file in InDesign ;
|
|
110
|
+
5. Push the changesets back to the content management application and update the database.
|
|
111
|
+
|
|
112
|
+
There is a lot of cool features in this application. You can update a part of a page already or
|
|
113
|
+
partially composed for example.
|
|
114
|
+
|
|
115
|
+
Architecture
|
|
116
|
+
''''''''''''
|
|
117
|
+
|
|
118
|
+
These applications are web-applications. The communication is done by web-services feeding a task
|
|
119
|
+
queue (RabbitMQ/Celery).
|
|
120
|
+
|
|
121
|
+
The performances are quite good. Composing a document requires a fraction of a second.
|
|
122
|
+
|
|
123
|
+
What are IDML files?
|
|
124
|
+
====================
|
|
125
|
+
|
|
126
|
+
IDML (*InDesign Markup Language*) files are a Zip archives (Adobe calls them packages) storing
|
|
127
|
+
essentially XML files. Adobe made a descent job because those files can completely express the
|
|
128
|
+
content of the native (binary) documents.
|
|
129
|
+
This is a small revolution in the print world when it comes to automatically processing files both
|
|
130
|
+
from templates and database (Round-trip) without using the proprietary server-edition of
|
|
131
|
+
Publishing Software.
|
|
132
|
+
|
|
133
|
+
What does SimpleIDML do?
|
|
134
|
+
========================
|
|
135
|
+
|
|
136
|
+
Package exploration
|
|
137
|
+
-------------------
|
|
138
|
+
|
|
139
|
+
You can discover the structure of your IDML files:
|
|
140
|
+
|
|
141
|
+
.. code-block:: python
|
|
142
|
+
|
|
143
|
+
>>> from simple_idml import idml
|
|
144
|
+
>>> my_idml_package = idml.IDMLPackage("/path/to/my_main_document.idml")
|
|
145
|
+
>>> my_idml_package.spreads
|
|
146
|
+
[u'Spreads/Spread_ub6.xml', u'Spreads/Spread_ubc.xml', u'Spreads/Spread_uc3.xml']
|
|
147
|
+
>>> my_idml_package.stories
|
|
148
|
+
[u'Stories/Story_u139.xml', u'Stories/Story_u11b.xml',
|
|
149
|
+
u'Stories/Story_u102.xml', u'Stories/Story_ue4.xml']
|
|
150
|
+
|
|
151
|
+
Some attributes are *lxml.etree* Elements or Documents:
|
|
152
|
+
|
|
153
|
+
.. code-block:: python
|
|
154
|
+
|
|
155
|
+
>>> my_package.font_families
|
|
156
|
+
[<Element FontFamily at 0x1010048c0>,
|
|
157
|
+
<Element FontFamily at 0x101004a50>,
|
|
158
|
+
<Element FontFamily at 0x101004aa0>,
|
|
159
|
+
<Element FontFamily at 0x101004af0>]
|
|
160
|
+
>>> [e.get("Name") for e in my_package.font_families]
|
|
161
|
+
['Minion Pro', 'Myriad Pro', 'Kozuka Mincho Pro', 'Vollkorn']
|
|
162
|
+
|
|
163
|
+
>>> my_package.xml_structure
|
|
164
|
+
<Element Root at 0x101004910>
|
|
165
|
+
>>> from lxml import etree
|
|
166
|
+
>>> # print my_package.xml_structure_pretty() is a shortcut for:
|
|
167
|
+
>>> print etree.tostring(my_package.xml_structure, pretty_print=True)
|
|
168
|
+
<Root Self="di2">
|
|
169
|
+
<article XMLContent="u102" Self="di2i3">
|
|
170
|
+
<Story XMLContent="ue4" Self="di2i3i1">
|
|
171
|
+
<title Self="di2i3i1i1"/>
|
|
172
|
+
<subtitle Self="di2i3i1i2"/>
|
|
173
|
+
</Story>
|
|
174
|
+
<content XMLContent="u11b" Self="di2i3i2"/>
|
|
175
|
+
<illustration XMLContent="u135" Self="di2i3i3"/>
|
|
176
|
+
<description XMLContent="u139" Self="di2i3i4"/>
|
|
177
|
+
</article>
|
|
178
|
+
<article XMLContent="udb" Self="di2i4"/>
|
|
179
|
+
<article XMLContent="udd" Self="di2i5"/>
|
|
180
|
+
<advertise XMLContent="udf" Self="di2i6"/>
|
|
181
|
+
</Root>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
``xml_structure`` attribute is a representation of the XML Structure of your InDesign XML-ready
|
|
185
|
+
document (The one you want to use to populate the content with data from an external XML file
|
|
186
|
+
having the same structure).
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
Build package
|
|
190
|
+
-------------
|
|
191
|
+
|
|
192
|
+
There is a convenient script to create an IDML package from a flat directory called
|
|
193
|
+
*simpleidml_create_package_from_dir.py* which should be in your PATH.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
Compose document
|
|
197
|
+
----------------
|
|
198
|
+
|
|
199
|
+
**Important**: You should always use a ``with`` context when using side-effect methods on
|
|
200
|
+
``IDMLPackage`` instances returning new instances.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
For example, the following is bad because ``my_doc`` initial instance reference is lost and
|
|
204
|
+
the associated file cannot be properly closed. This may raise an exception on Windows platform
|
|
205
|
+
if you try to ``os.unlink()`` an unclosed file.
|
|
206
|
+
|
|
207
|
+
.. code-block:: python
|
|
208
|
+
|
|
209
|
+
from simple_idml import idml
|
|
210
|
+
my_doc = idml.IDMLPackage("/path/to/my_main_document.idml")
|
|
211
|
+
my_doc = my_doc.prefix("main")
|
|
212
|
+
|
|
213
|
+
Instead, use:
|
|
214
|
+
|
|
215
|
+
.. code-block:: python
|
|
216
|
+
|
|
217
|
+
from simple_idml import idml
|
|
218
|
+
my_doc = idml.IDMLPackage("/path/to/my_main_document.idml")
|
|
219
|
+
with my_doc.prefix("main") as f:
|
|
220
|
+
# some code.
|
|
221
|
+
|
|
222
|
+
Insert elements
|
|
223
|
+
'''''''''''''''
|
|
224
|
+
|
|
225
|
+
Using the XML Structure, SimpleIDML can insert the content of an XML tag from one document into an
|
|
226
|
+
XML tag of another document. The tag paths are expressed using XPath_ syntax.
|
|
227
|
+
Note that you should always make a copy of your idml files before altering them with
|
|
228
|
+
``shutil.copy2(src, dst)`` for instance and prefix your document before using ``insert_idml()``
|
|
229
|
+
to avoid reference collisions.
|
|
230
|
+
|
|
231
|
+
.. code-block:: python
|
|
232
|
+
|
|
233
|
+
>>> from simple_idml import idml
|
|
234
|
+
>>> idml_main = idml.IDMLPackage("/path/to/my_main_document.idml")
|
|
235
|
+
>>> idml_module = idml.IDMLPackage("/path/to/my_small_document.idml")
|
|
236
|
+
|
|
237
|
+
>>> with idml_main.prefix("main") as p_idml_main, \
|
|
238
|
+
>>> idml_module.prefix("article") as p_idml_article:
|
|
239
|
+
|
|
240
|
+
>>> with p_idml_main.insert_idml(p_idml_article, at="/Root/article[3]",
|
|
241
|
+
only="/Root/module[1]") as f:
|
|
242
|
+
>>> f.stories
|
|
243
|
+
['Stories/Story_article1u188.xml', 'Stories/Story_article1u19f.xml',
|
|
244
|
+
'Stories/Story_article1u1db.xml', 'Stories/Story_mainu102.xml',
|
|
245
|
+
'Stories/Story_mainu11b.xml', 'Stories/Story_mainu139.xml',
|
|
246
|
+
'Stories/Story_mainue4.xml']
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
>>> print f.xml_structure_pretty()
|
|
250
|
+
<Root Self="maindi2">
|
|
251
|
+
<article XMLContent="mainu102" Self="maindi2i3">
|
|
252
|
+
<Story XMLContent="mainue4" Self="maindi2i3i1">
|
|
253
|
+
<title Self="maindi2i3i1i1"/>
|
|
254
|
+
<subtitle Self="maindi2i3i1i2"/>
|
|
255
|
+
</Story>
|
|
256
|
+
<content XMLContent="mainu11b" Self="maindi2i3i2"/>
|
|
257
|
+
<illustration XMLContent="mainu135" Self="maindi2i3i3"/>
|
|
258
|
+
<description XMLContent="mainu139" Self="maindi2i3i4"/>
|
|
259
|
+
</article>
|
|
260
|
+
<article XMLContent="mainudb" Self="maindi2i4"/>
|
|
261
|
+
<article Self="maindi2i5">
|
|
262
|
+
<module XMLContent="article1u1db" Self="article1di3i12">
|
|
263
|
+
<main_picture XMLContent="article1u182" Self="article1di3i12i1"/>
|
|
264
|
+
<headline XMLContent="article1u188" Self="article1di3i12i2"/>
|
|
265
|
+
<Story XMLContent="article1u19f" Self="article1di3i12i3">
|
|
266
|
+
<article Self="article1di3i12i3i2"/>
|
|
267
|
+
<informations Self="article1di3i12i3i1"/>
|
|
268
|
+
</Story>
|
|
269
|
+
</module>
|
|
270
|
+
</article>
|
|
271
|
+
<advertise XMLContent="mainudf" Self="maindi2i6"/>
|
|
272
|
+
</Root>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
Combine pages
|
|
276
|
+
'''''''''''''
|
|
277
|
+
|
|
278
|
+
You may need to gather pages from severals documents into a single one:
|
|
279
|
+
|
|
280
|
+
.. code-block:: python
|
|
281
|
+
|
|
282
|
+
>>> edito_idml_file = IDMLPackage("magazineA-edito.idml")
|
|
283
|
+
>>> courrier_idml_file = IDMLPackage("magazineA-courrier-des-lecteurs.idml")
|
|
284
|
+
|
|
285
|
+
>>> # Always start by prefixing packages to avoid collision.
|
|
286
|
+
>>> with edito_idml_file.prefix("edito") as p_edito,\
|
|
287
|
+
>>> courrier_idml_file.prefix("courrier") as p_courrier:
|
|
288
|
+
>>> len(edito_idml_file.pages)
|
|
289
|
+
2
|
|
290
|
+
|
|
291
|
+
>>> new_idml = p_edito.add_page_from_idml(p_courrier,
|
|
292
|
+
... page_number=1,
|
|
293
|
+
... at="/Root",
|
|
294
|
+
... only="/Root/page[1]")
|
|
295
|
+
>>> len(new_idml.pages)
|
|
296
|
+
3
|
|
297
|
+
|
|
298
|
+
# The XML Structure has integrated the new file.
|
|
299
|
+
>>> print etree.tostring(new_idml.xml_structure, pretty_print=True)
|
|
300
|
+
<Root Self="editodi2">
|
|
301
|
+
<page Self="editodi2ib">
|
|
302
|
+
<article Self="editodi2ibif">
|
|
303
|
+
<Story XMLContent="editoue4" Self="editodi2ibifi1f">
|
|
304
|
+
<title Self="editodi2ibifi1fi1"/>
|
|
305
|
+
<subtitle Self="editodi2ibifi1fi2"/>
|
|
306
|
+
</Story>
|
|
307
|
+
<content XMLContent="editou11b" Self="editodi2ibifi1e"/>
|
|
308
|
+
</article>
|
|
309
|
+
</page>
|
|
310
|
+
<page Self="editodi2i10">
|
|
311
|
+
<advertise XMLContent="editou1de" Self="editodi2i10i23"/>
|
|
312
|
+
</page>
|
|
313
|
+
<page Self="courrierdi2ib">
|
|
314
|
+
<title XMLContent="courrieru1b2" Self="courrierdi2ibi34"/>
|
|
315
|
+
<article XMLContent="courrieru1c9" Self="courrierdi2ibi33"/>
|
|
316
|
+
<article XMLContent="courrieru1e0" Self="courrierdi2ibi32"/>
|
|
317
|
+
<article XMLContent="courrieru1fb" Self="courrierdi2ibi31"/>
|
|
318
|
+
<article XMLContent="courrieru212" Self="courrierdi2ibi30"/>
|
|
319
|
+
</page>
|
|
320
|
+
</Root>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
There is a convenient method to add several pages at once:
|
|
324
|
+
|
|
325
|
+
.. code-block:: python
|
|
326
|
+
|
|
327
|
+
>>> edito_idml_file = IDMLPackage("magazineA-edito.idml")
|
|
328
|
+
>>> courrier_idml_file = IDMLPackage("magazineA-courrier-des-lecteurs.idml")
|
|
329
|
+
>>> bloc_notes_idml_file = IDMLPackage("magazineA-bloc-notes.idml")
|
|
330
|
+
|
|
331
|
+
>>> with edito_idml_file.prefix("edito") as p_edito,\
|
|
332
|
+
>>> courrier_idml_file.prefix("courrier") as p_courrier,\
|
|
333
|
+
>>> bloc_notes_idml_file.prefix("blocnotes") as p_bloc_notes:
|
|
334
|
+
|
|
335
|
+
>>> packages_to_add = [
|
|
336
|
+
... (p_courrier, 1, "/Root", "/Root/page[1]"),
|
|
337
|
+
... (p_bloc_notes, 1, "/Root", "/Root/page[1]"),
|
|
338
|
+
... ]
|
|
339
|
+
|
|
340
|
+
>>> new_idml = p_edito.add_pages_from_idml(packages_to_add)
|
|
341
|
+
>>> len(new_idml.pages)
|
|
342
|
+
4
|
|
343
|
+
>>> new_idml.spreads
|
|
344
|
+
['Spreads/Spread_editoub6.xml',
|
|
345
|
+
'Spreads/Spread_editoubc.xml',
|
|
346
|
+
'Spreads/Spread_editoubd.xml']
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
Import/Export XML
|
|
350
|
+
-----------------
|
|
351
|
+
|
|
352
|
+
Exporting as XML:
|
|
353
|
+
|
|
354
|
+
.. code-block:: python
|
|
355
|
+
|
|
356
|
+
>>> idml_file = IDMLPackage("path/to/file.idml")
|
|
357
|
+
>>> print idml_file.export_xml()
|
|
358
|
+
<Root>
|
|
359
|
+
<module>
|
|
360
|
+
<main_picture/>
|
|
361
|
+
<headline>Hello world!</headline>
|
|
362
|
+
<Story>
|
|
363
|
+
<article>Lorem ipsum dolor sit amet, ...</article>
|
|
364
|
+
<informations>Lorem ipsum dolor sit amet,</informations>
|
|
365
|
+
</Story>
|
|
366
|
+
</module>
|
|
367
|
+
</Root>
|
|
368
|
+
|
|
369
|
+
You can also import XML files into your InDesign® documents. The following rules applies:
|
|
370
|
+
|
|
371
|
+
- A node having the attribute ``simpleidml-setcontent="false"`` will not update the content of the
|
|
372
|
+
corresponding element into the idml document (but its children will be updated).
|
|
373
|
+
- A node having the attribute ``simpleidml-ignorecontent="true"`` will not update the content of the
|
|
374
|
+
corresponding element into the idml document **and** its children.
|
|
375
|
+
- A node having the attribute ``simpleidml-setcontent="delete"`` will remove the corresponding
|
|
376
|
+
element into the idml document (Story and Spread elements).
|
|
377
|
+
- A node having the attribute ``simpleidml-setcontent="clear"`` will clear the text in the
|
|
378
|
+
element.
|
|
379
|
+
- A node having the attribute ``simpleidml-setcontent="remove-previous-br"`` will remove the new-line
|
|
380
|
+
characters before the element.
|
|
381
|
+
- You can mix several flags using a comma (i.e.: ``simpleidml-setcontent="delete,remove-previous-br"``)
|
|
382
|
+
- In a *ignorecontent* context the content of a child node can be turned on with the
|
|
383
|
+
``simpleidml-forcecontent="true"`` flag.
|
|
384
|
+
- Image references are passed by the *href* attribute. An empty value will remove the
|
|
385
|
+
corresponding page items into the document.
|
|
386
|
+
- A nested tag will be created if mapped with a *character-style*.
|
|
387
|
+
- The style applied to the newly created tag is a combination of the parent character-style and
|
|
388
|
+
the mapped one.
|
|
389
|
+
|
|
390
|
+
Please take a look into the tests for in-depth examples.
|
|
391
|
+
|
|
392
|
+
Import PDF
|
|
393
|
+
----------
|
|
394
|
+
|
|
395
|
+
A block can be used as a placeholder for a PDF file:
|
|
396
|
+
|
|
397
|
+
.. code-block:: python
|
|
398
|
+
|
|
399
|
+
>>> with IDMLPackage("my_package.idml") as idml_file:
|
|
400
|
+
>>> with idml_file.import_pdf("file:/path/to/file.pdf", at="/Root/modules/module[2]", crop="PDFCrop") as f:
|
|
401
|
+
>>> f.export_xml()
|
|
402
|
+
|
|
403
|
+
The ``crop`` parameter should be one of the ``PDFCrop_EnumValue`` from the IDML Specification
|
|
404
|
+
(``"CropArt"``, ``"CropPDF"``, ``"CropTrim"``, ``"CropBleed"``, ``"CropMedia"``,
|
|
405
|
+
``"CropContentVisibleLayers"``, ``"CropContentAllLayers"``, ``"CropContent"``).
|
|
406
|
+
It defaults to ``CropContentVisibleLayers````
|
|
407
|
+
|
|
408
|
+
Use InDesign server SOAP interface to convert a file
|
|
409
|
+
----------------------------------------------------
|
|
410
|
+
|
|
411
|
+
This require an *InDesign Server* and a readable/writable working directory.
|
|
412
|
+
The same directory must be accessible by the client either by the filesystem or
|
|
413
|
+
over FTP.
|
|
414
|
+
|
|
415
|
+
The ``formats`` parameter is a list (of dicts) of formats and parameters you want
|
|
416
|
+
your file to be exported into.
|
|
417
|
+
The supported output formats are ``jpeg``, ``idml``, ``pdf``, ``indd`` and
|
|
418
|
+
``zip`` (a zipped InDesign Package).
|
|
419
|
+
|
|
420
|
+
Export parameters are provided using the ``params`` key. Use
|
|
421
|
+
``simpleidml_indesign_save_as.py --help`` for a list of supported parameters.
|
|
422
|
+
|
|
423
|
+
The response is a list of binary strings matching ``formats`` provided:
|
|
424
|
+
|
|
425
|
+
.. code-block:: python
|
|
426
|
+
|
|
427
|
+
from simple_idml.indesign import indesign
|
|
428
|
+
|
|
429
|
+
response = indesign.save_as("/path_to_file.idml", [{"fmt": "indd"}],
|
|
430
|
+
"http://url-to-indesign-server:port",
|
|
431
|
+
"/path/to/client/workdir",
|
|
432
|
+
"/path/to/indesign-server/workdir")[0]
|
|
433
|
+
with open("my_file.indd", "wb+") as f:
|
|
434
|
+
f.write(response)
|
|
435
|
+
|
|
436
|
+
response = indesign.save_as("/path_to_file.indd", [{"fmt": "idml"}],
|
|
437
|
+
"http://url-to-indesign-server:port",
|
|
438
|
+
"/path/to/client/workdir",
|
|
439
|
+
"/path/to/indesign-server/workdir")[0]
|
|
440
|
+
with open("my_file.idml", "wb+") as f:
|
|
441
|
+
f.write(response)
|
|
442
|
+
|
|
443
|
+
response = indesign.save_as("/path_to_file.indd", [{
|
|
444
|
+
"fmt": "pdf",
|
|
445
|
+
"params": {"colorSpace": "CMYK"},
|
|
446
|
+
}],
|
|
447
|
+
"http://url-to-indesign-server:port",
|
|
448
|
+
"/path/to/client/workdir",
|
|
449
|
+
"/path/to/indesign-server/workdir")[0]
|
|
450
|
+
with open("my_file.pdf", "wb+") as f:
|
|
451
|
+
f.write(response)
|
|
452
|
+
|
|
453
|
+
pdf_response, jpeg_response, zip_response = indesign.save_as(
|
|
454
|
+
"/path_to_file.indd",
|
|
455
|
+
[{"fmt": "pdf"}, {"fmt": "jpeg"}, {"fmt": "zip"}],
|
|
456
|
+
"http://url-to-indesign-server:port",
|
|
457
|
+
"/path/to/client/workdir",
|
|
458
|
+
"/path/to/indesign-server/workdir")
|
|
459
|
+
|
|
460
|
+
To convert an InDesign Package, use ``indesign.export_package_as()`` instead.
|
|
461
|
+
|
|
462
|
+
If the InDesign Server instance is running on a Windows machine, set the
|
|
463
|
+
``indesign_server_path_style`` parameter to ``"windows"``.
|
|
464
|
+
|
|
465
|
+
If the client accesses the working directory *via* FTP, you must specify that
|
|
466
|
+
in the ``ftp_params`` parameter:
|
|
467
|
+
|
|
468
|
+
.. code-block:: python
|
|
469
|
+
|
|
470
|
+
{
|
|
471
|
+
'auth': ("ftp://ftp.foo.org", "user_account", "s3cret-pa55word"),
|
|
472
|
+
'passive': False,
|
|
473
|
+
'keepalive': True, # False by default (optional)
|
|
474
|
+
'keepalive_interval': 30, # set socket.TCP_KEEPINTVL (optional)
|
|
475
|
+
'keepalive_idle': 45, # set socket.TCP_KEEPIDLE (optional)
|
|
476
|
+
'polite': False, # Unilaterally close ftp connection (optional)
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
A script (``simpleidml_indesign_save_as.py``) that wraps these functions is
|
|
480
|
+
installed in your PATH.
|
|
481
|
+
|
|
482
|
+
Revisions
|
|
483
|
+
=========
|
|
484
|
+
|
|
485
|
+
1.2.0
|
|
486
|
+
-----
|
|
487
|
+
|
|
488
|
+
- Add flag ``simpleidml-setcontent="clear"`` to import XML.
|
|
489
|
+
|
|
490
|
+
1.1.8
|
|
491
|
+
-----
|
|
492
|
+
|
|
493
|
+
- Bugfix (issue #73).
|
|
494
|
+
|
|
495
|
+
1.1.7
|
|
496
|
+
-----
|
|
497
|
+
|
|
498
|
+
- Manage border color in styles when composing documents.
|
|
499
|
+
|
|
500
|
+
1.1.5
|
|
501
|
+
-----
|
|
502
|
+
|
|
503
|
+
- Add a ``page_number`` parameter to ``IDMLPackage.import_pdf()`` so that you
|
|
504
|
+
can choose which page from the PDF file to display.
|
|
505
|
+
|
|
506
|
+
1.1.4
|
|
507
|
+
-----
|
|
508
|
+
|
|
509
|
+
- PyLint refactorisation.
|
|
510
|
+
|
|
511
|
+
1.1.3
|
|
512
|
+
-----
|
|
513
|
+
|
|
514
|
+
- Catch and log exceptions to the InDesign Server when setting options in
|
|
515
|
+
export.jsx. Thanks to @kylehodgson for the contribution.
|
|
516
|
+
|
|
517
|
+
1.1.2
|
|
518
|
+
-----
|
|
519
|
+
|
|
520
|
+
New features
|
|
521
|
+
''''''''''''
|
|
522
|
+
|
|
523
|
+
- Add ``indesign.export_package_as()`` to convert an InDesign Package.
|
|
524
|
+
|
|
525
|
+
1.1.1
|
|
526
|
+
-----
|
|
527
|
+
|
|
528
|
+
New features
|
|
529
|
+
''''''''''''
|
|
530
|
+
|
|
531
|
+
- Add the possiblity to remove new-line characters when importing XML by using the flag
|
|
532
|
+
``simpleidml-setcontent="remove-previous-br"``.
|
|
533
|
+
|
|
534
|
+
1.1.0
|
|
535
|
+
-----
|
|
536
|
+
|
|
537
|
+
Removed Python 2 support.
|
|
538
|
+
|
|
539
|
+
New features
|
|
540
|
+
''''''''''''
|
|
541
|
+
|
|
542
|
+
- Add the possiblity to remove elements when importing XML by using the flag
|
|
543
|
+
``simpleidml-setcontent="delete"``.
|
|
544
|
+
- The ``PDFCrop`` attribute is now parametrable when using ``import_pdf()``.
|
|
545
|
+
- ``IDMLPackage.add_note(note, author, at=path)`` added.
|
|
546
|
+
|
|
547
|
+
1.0.5
|
|
548
|
+
-----
|
|
549
|
+
|
|
550
|
+
Bug fixes
|
|
551
|
+
'''''''''
|
|
552
|
+
|
|
553
|
+
- Fixed ``indesign.save_as()`` in Python 3 where the jsx file was opened
|
|
554
|
+
in text mode instead of binary.
|
|
555
|
+
|
|
556
|
+
1.0.3
|
|
557
|
+
-----
|
|
558
|
+
|
|
559
|
+
- Use setuptools instead of distutils for a better integration with Pypi.
|
|
560
|
+
|
|
561
|
+
1.0.0
|
|
562
|
+
-----
|
|
563
|
+
|
|
564
|
+
New features
|
|
565
|
+
''''''''''''
|
|
566
|
+
|
|
567
|
+
- Added support for Python 3
|
|
568
|
+
|
|
569
|
+
Backward incompatibilities
|
|
570
|
+
''''''''''''''''''''''''''
|
|
571
|
+
|
|
572
|
+
- Removed support for Python 2.6
|
|
573
|
+
|
|
574
|
+
0.92.9
|
|
575
|
+
------
|
|
576
|
+
|
|
577
|
+
New features
|
|
578
|
+
''''''''''''
|
|
579
|
+
|
|
580
|
+
- Added ``simpleidml_indesign_profiles.py`` script to list the available joboptions
|
|
581
|
+
files on the InDesign Server using the SOAP interface.
|
|
582
|
+
|
|
583
|
+
Bug fixes
|
|
584
|
+
'''''''''
|
|
585
|
+
|
|
586
|
+
- Fix working directory cleaning of the SOAP server when an exception is raised.
|
|
587
|
+
``indesign.save_as()`` may be backward incompatible since the returned list
|
|
588
|
+
may contains some ``None`` (instead of raising an exception before returning
|
|
589
|
+
anything).
|
|
590
|
+
- Give the list of available profiles (joboptions files) on the InDesign Server
|
|
591
|
+
if the given 'pdfExportPresetName' is not found.
|
|
592
|
+
|
|
593
|
+
Backward incompatibilities
|
|
594
|
+
''''''''''''''''''''''''''
|
|
595
|
+
|
|
596
|
+
- ``indesign.close_all_documents()`` has been replace the ``CloseAllDocuments`` class
|
|
597
|
+
and its ``.execute()`` method.
|
|
598
|
+
- Some util functions that wrap the basic file manipulations to manage the case of
|
|
599
|
+
a ftp access to those files have been moved from indesign.py to a new ftp.py module.
|
|
600
|
+
|
|
601
|
+
0.92.8
|
|
602
|
+
------
|
|
603
|
+
|
|
604
|
+
New features
|
|
605
|
+
''''''''''''
|
|
606
|
+
|
|
607
|
+
- Added ``IDMLPackage.import_pdf()`` method.
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
Bug fixes
|
|
611
|
+
'''''''''
|
|
612
|
+
|
|
613
|
+
- Fix ``bleedMarks`` in export.jsx.
|
|
614
|
+
|
|
615
|
+
0.92.7
|
|
616
|
+
------
|
|
617
|
+
|
|
618
|
+
Bug fixes
|
|
619
|
+
'''''''''
|
|
620
|
+
|
|
621
|
+
- FillTint wasn't managed.
|
|
622
|
+
- Force ``lxml < 4`` in dependencies.
|
|
623
|
+
|
|
624
|
+
0.92.6
|
|
625
|
+
------
|
|
626
|
+
|
|
627
|
+
Bug fixes
|
|
628
|
+
'''''''''
|
|
629
|
+
|
|
630
|
+
- Catch errors when InDesign SOAP server fails to complete a task and raise
|
|
631
|
+
an exception.
|
|
632
|
+
|
|
633
|
+
0.92.5
|
|
634
|
+
------
|
|
635
|
+
|
|
636
|
+
Bug fixes
|
|
637
|
+
'''''''''
|
|
638
|
+
|
|
639
|
+
- Handle <PDF> in `IDMLPackage._get_item_translation_for_insert()`
|
|
640
|
+
|
|
641
|
+
0.92.4
|
|
642
|
+
------
|
|
643
|
+
|
|
644
|
+
Bug fixes
|
|
645
|
+
'''''''''
|
|
646
|
+
|
|
647
|
+
- Fix issue #11: Parent CharacterStyle not applied in import_xml() in some cases.
|
|
648
|
+
|
|
649
|
+
0.92.2
|
|
650
|
+
------
|
|
651
|
+
|
|
652
|
+
New features
|
|
653
|
+
''''''''''''
|
|
654
|
+
|
|
655
|
+
- More ftp parameters for `indesign.save_as()` function. Hardcoded socket parameters are now
|
|
656
|
+
modifiable. And you can set the flag `polite` to `False` if you encounter hanging problem
|
|
657
|
+
on `ftp.quit()` as I do. Being unpolite calls an unilateral and rude `ftp.close()`.
|
|
658
|
+
Please upgrade your code with explicite values if you rely on the previous default
|
|
659
|
+
behavior.
|
|
660
|
+
|
|
661
|
+
0.92.1
|
|
662
|
+
------
|
|
663
|
+
|
|
664
|
+
Bug fixes
|
|
665
|
+
'''''''''
|
|
666
|
+
|
|
667
|
+
- ``indesign.save_as()`` uses a dedicated temporary working directory to avoid
|
|
668
|
+
concurrent access on files.
|
|
669
|
+
- Added a logger to ``indesign.save_as()`` ('simpleidml.indesign') and some debug messages.
|
|
670
|
+
- Fixed hanging ``ftp.retrbinary()`` in ``indesign.save_as()`` calls by tuning the socket.
|
|
671
|
+
|
|
672
|
+
0.91.8
|
|
673
|
+
------
|
|
674
|
+
|
|
675
|
+
New features
|
|
676
|
+
''''''''''''
|
|
677
|
+
|
|
678
|
+
- Added support for PDF export presets in ``indesign.save_as()``.
|
|
679
|
+
|
|
680
|
+
0.91.7
|
|
681
|
+
------
|
|
682
|
+
|
|
683
|
+
New features
|
|
684
|
+
''''''''''''
|
|
685
|
+
|
|
686
|
+
- Added ``IMDLPackage.merge_layers(with_name)`` (Refs#7).
|
|
687
|
+
- Added a new script ``simpleidml_indesign_close_all_documents.py``.
|
|
688
|
+
|
|
689
|
+
Bug fixes
|
|
690
|
+
'''''''''
|
|
691
|
+
|
|
692
|
+
- In ``IDMLPackage.insert_idml()``, Elements from the same layer (but not tagged in the structure)
|
|
693
|
+
are now added in the Spread of the document of destination.
|
|
694
|
+
- Better support for Windows platform.
|
|
695
|
+
- Fixed character style mapping with tag when using insert_idml.
|
|
696
|
+
- Fixed Export XML in some edge case.
|
|
697
|
+
- Added parameters to ``simpleidml_indesign_save_as`` when exporting to PDF.
|
|
698
|
+
|
|
699
|
+
Backward incompatibilities
|
|
700
|
+
''''''''''''''''''''''''''
|
|
701
|
+
|
|
702
|
+
- ``indesign.save_as()`` formats parameters is now a list of dictionaries.
|
|
703
|
+
|
|
704
|
+
0.91.6
|
|
705
|
+
------
|
|
706
|
+
|
|
707
|
+
New features
|
|
708
|
+
''''''''''''
|
|
709
|
+
|
|
710
|
+
- Add the ``simpleidml-ignorecontent`` and ``simpleidml-forcecontent`` tags (XML attributes)
|
|
711
|
+
allowing one to carefully exclude a node and its children during the import XML process.
|
|
712
|
+
- ``indesign.save_as()`` now works with a client working directory over a FTP.
|
|
713
|
+
This require ``wget`` to be on your system if you want to create zip packages.
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
Backward incompatibilities
|
|
717
|
+
''''''''''''''''''''''''''
|
|
718
|
+
|
|
719
|
+
- ``indesign.save_as()`` require both a client workdir and a server workdir parameter.
|
|
720
|
+
|
|
721
|
+
0.91.5.5
|
|
722
|
+
--------
|
|
723
|
+
|
|
724
|
+
Bugfixes
|
|
725
|
+
''''''''
|
|
726
|
+
|
|
727
|
+
- <EPS> elements in Spread weren't handled correctly.
|
|
728
|
+
- All spread elements were added in the destination package when using ``insert_idml()``.
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
0.91.3
|
|
732
|
+
------
|
|
733
|
+
|
|
734
|
+
New features
|
|
735
|
+
''''''''''''
|
|
736
|
+
|
|
737
|
+
Add a SOAP client to call a InDesign server to get INDD file and export in various
|
|
738
|
+
formats.
|
|
739
|
+
|
|
740
|
+
0.91.2
|
|
741
|
+
------
|
|
742
|
+
|
|
743
|
+
New features
|
|
744
|
+
''''''''''''
|
|
745
|
+
|
|
746
|
+
- Ticket #20 - Suffix layers.
|
|
747
|
+
|
|
748
|
+
Backward incompatibilities
|
|
749
|
+
''''''''''''''''''''''''''
|
|
750
|
+
|
|
751
|
+
- Ticket #22 - IDMLPackage.import_xml() parameter is a XML string and not a file object.
|
|
752
|
+
|
|
753
|
+
Bugfixes
|
|
754
|
+
''''''''
|
|
755
|
+
|
|
756
|
+
Tickets #19, #21 (orphan layers), #23 (AssertXMLEqual), #24 (import_xml() failure).
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
.. _XPath: http://en.wikipedia.org/wiki/XPath
|