Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

how to convert a remote office url file? #19

Open
nguyendatdh93 opened this issue Nov 24, 2020 · 2 comments
Open

how to convert a remote office url file? #19

nguyendatdh93 opened this issue Nov 24, 2020 · 2 comments

Comments

@nguyendatdh93
Copy link

Hi!.
I have used aws s3 to store uploaded file. There are doc & docx file. I can get url of file from s3.
How can i convert file with DocumentFactory?
Thanks!

@nguyendatdh93 nguyendatdh93 changed the title how to convert a remote office file? how to convert a remote office url file? Nov 24, 2020
@rodnaph
Copy link
Contributor

rodnaph commented Dec 29, 2020

The Document constructor accepts a StreamInterface - so I think you'll need to create a stream for these URLs (eg. Guzzle has an implementation which you might be able to use if you're using the AWS SDK and it's S3 stream wrapper - https://github.com/guzzle/streams/blob/master/src/Stream.php#L45)

@rodnaph
Copy link
Contributor

rodnaph commented Dec 29, 2020

Just noticed there's a method in the DocumentFactory called createFromPath that would probably work too - with the AWS stream wrapper.

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

No branches or pull requests

2 participants