Add a PyDocX mixin that uploads images to S3 instead of returning them as a DataURI

The PyDocX python module converts docx files to HTML files. Currently, it handles images by returning them as Data URIs embedded in the HTML. This causes some issues when a file has large images or many images.

I need a mixin that intercepts the images, uploads them to S3 and replaces the Data URI with the URL to the file on S3 so that the resulting HTML loads the images remotely.

The tricky part is that the S3 signature and upload destination need to be provided on a per-document basis with the request. They can't be part of the ENV or hardcoded in the library.

The reason for this is that each document that gets processed will be coming from a different customer, and the customer's S3 information should be used so that the information is stored in their bucket.

Maybe something like:

exporter = CustomHTMLExporter('[url removed, login to view]', s3_options)

[url removed, login to view]

Where s3_options is:

policy: s3_upload_policy_document,

signature: s3_upload_signature,

key: '/uploads/${filename}',

Habilidades: Servicios web de Amazon, Python

Ver más: uploads images progress bar, uploads images update php database, multiple images uploads mysql php, php images s, mysql php html images uploads, swap flash instead images, flash animation images coming different directions, php automatic crop resize images, thumbnails images oscommerce, uploading bulk images

Información del empleador:
( 39 comentarios ) Vancouver, United States

Nº del proyecto: #8024736

Adjudicado a:


Hi. Ok, I just saw that you posted the project. So, basically each doc needs to be uploaded to the customer S3? Maybe we can also have this configured so that we can use some custom S3, a global one so that we c Más

$22 USD / hora
(52 comentarios)

3 freelancers están ofertando el promedio de $24/hora para este trabajo


Hi, I have read your post and understood your requirement. I have great experience in handling Amazon Web Services/Python/Django/PHP/MySQL/Wordpress/Magento/Joomla/Drupal/AngularJS/node.js/HTML5/CSS3/Java/Javascr Más

$25 USD / hora
(3 comentarios)

Hello, We can help you to add PyDocx mixin tool. Just ping me in chat and lets get started right away. About Bacancy Technology Pvt Ltd. : => 1000+ Satisfied clients world wide => 2500+ Successful proje Más

$25 USD / hora
(1 comentario)