Active
Project:
Cloudconvert
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2019 at 13:43 UTC
Updated:
22 Apr 2020 at 20:41 UTC
Jump to comment: Most recent
I'm working on a module to convert Drupal pages in PDF files via cloudconvert.
In this use case no files need to be uploaded to cloudconvert - instead an URL is provided in the convert task.
Currently the CloudConvertTaskInterface suggests that there will be a "original_file_id" tough it's not required.
So I think I can maneuver around this.
But CloudConvertProcessor::startProcess() requires to upload a file. Here my journey finds a stop.
Any chance to modify this module's structure to have CloudConvertTask more generic?
Comments
Comment #2
jefuri commentedMaybe a (sub)module to convert pages. Like cloudconvert_webpage. Which acts based on url to file in chosen file type. Could be pdf, image, etc.
I could make the base manager and services more generic for reusability.
Sounds like a good suggestion.
Comment #3
guedressel commented@jefuri sound good!
You might take a look into our current pet module
cloudconvert_pdf. There you'll find - besides a very minimalistic but runable implementation of the whole workflow - the classDrupal\cloudconvert_pdf\CloudConvertProcessorwhich was the solution we came up with to overcome this very issue's limitation.Comment #4
jefuri commented@guedressel, is it an idea to merge this? Though I would suggest to make it broader than just conversion to pdf.
https://cloudconvert.com/website-png-screenshot
https://cloudconvert.com/website-jpg-screenshot
https://cloudconvert.com/save-website-pdf