Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Add unoconv-based script to normalize office docs #6

Open
wants to merge 1 commit into
base: qa/1.x
Choose a base branch
from

Conversation

mistydemeo
Copy link
Contributor

No description provided.

# SelectPdfVersion=1 converts to PDF/A-1a, instead of
# the default PDF 1.4
subprocess.check_call(['unoconv', '-eSelectPdfVersion=1',
'--output={}'.format(target), document])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be ['unoconv', '-eSelectPdfVersion=1', '--output', target, document] and leave out the .format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice - the docs only listed it working with =. I'll change this.

@qubot qubot force-pushed the dev/issue-9312-office_normalization branch from 113a1c1 to 0dc4743 Compare January 20, 2016 22:55
@Hwesta
Copy link

Hwesta commented Jan 20, 2016

👍

@qubot qubot force-pushed the dev/issue-9312-office_normalization branch from 0dc4743 to 7374083 Compare January 22, 2016 19:07
@mistydemeo
Copy link
Contributor Author

Updated to bump the number of attempts from 2 to 15. In uncommon circumstances, I found that two attempts wasn't enough. So far I haven't needed more than three, but bumping to 15 seems reasonable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants