Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handled several issues here: 1. The environment variables are wrongly hardcoded, and you can't use the alternative of providing your own API Keys from elsewhere. See cloudconvert/cloudconvert-python#13 and cloudconvert/cloudconvert-python#24. Will need to fix this to be able to run in docassemble. 2. Imports/uploading files: you need to follow this example: https://github.com/cloudconvert/cloudconvert-python#uploading-files 3. The output document somehow has more validation errors, but still opens fine in office.com. For some reason, the office converter doesn't convert from RTF to DOCX, so it uses the libreoffice converter instead, which generates all of those validation errors. Will just have to go with it, as long as some more obscure choices work in all of the testing files (drive, office 365, desktop office, and libreoffice). Details: combining from GDocs: 9 errors: * ExceptionError: Inner exception: 'a' is an undeclared prefix. * several Sch_AttributeValueDataTypeDetaileds, with in:w and in:hanging with invalid values (0.0 or 115.0 not valid Int16) from combining from cloudconvertAPI: 635 errors * mostly Sch_UnexpectedElementContentExpectingComplex: has unexpecetd child element 'main:b' * Sch_MissRequiredAttribute: the required attribute 'val' is missing * Sch_AttributeValueDataTypeDetailed: the attribute main:val has invalid value 'end' (sometimes 'start') Resources to use when picking back up: * https://sandbox.cloudconvert.com/dashboard/jobs# * https://cloudconvert.com/api/v2/jobs/builder# * https://cloudconvert.com/api/v2/import#import-url-tasks
- Loading branch information