I am using asposewordscloud in my django python web
When I convert and map data from word to pdf, I get an error. This is my issue:
'InnerError': {'Message': 'Cannot load an image using the provided '
'string value: '
"'https://staging.tiikr.com/media/instances/53273eb46be5f2aacbc7c548d1189573599a7891/bd3bfcc99312e0597674b0fa3b71914c7141e1a1/24.png'. "
'A string expression providing image data '
'should return a file path, an URI, or '
'Base64-encoded image bytes.'},
'Message': 'Error while build report'},
This is my code (Issue appear in "words_api.build_report(build_report_request)":
build_report_request = asposewordscloud.models.requests.BuildReportRequest(
name=f"{instance.workflow.id}.docx",
storage=settings.ASPOSE_STORAGE_NAME,
folder="static/company_pdf_template",
dest_file_name="pdf_reports/instances/"
+ instance_hash
+ "/"
+ instance_key
+ ".docx",
data=json.dumps(prefill_json),
report_engine_settings=request_report_engine_settings,
)
words_api.build_report(build_report_request)
Thank this help !!!