You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My best guess is that this is a CORS issue, check your developer console. Its most likely the problem, make sure you have this on the header from where the image is being served --Access-Control-Allow-Origin: * , Access-Control-Allow-Methods: GET,OPTIONS.
Hi, @kempsteven, Im having trouble with the generated pdf, for some reason i am not able to get the image rendered. Kindly assist.
Here is my code:
` <vue-html2pdf :show-layout="false" :float-layout="true" :enable-download="true" :preview-modal="true"
:paginate-elements-by-height="1400" :filename=event.event_name :pdf-quality="2"
:manual-pagination="false" pdf-format="a4" :pdf-margin="10" pdf-orientation="portrait" :html-to-pdf-options="htmlToPdfOptions"
pdf-content-width="800px" @progress="onProgress($event)" @beforeDownload="beforeDownload($event)"
@hasStartedGeneration="hasStartedGeneration()" @hasGenerated="hasGenerated($event)" ref="html2Pdf">
(event.start_date).toLocaleDateString('en-us', {
day: '2-digit',
month: 'short',
year: 'numeric',})
}}
{{
new Date(event.start_date).toLocaleTimeString('en-us', { hour:
'2-digit',
minute: '2-digit' })
}}
KES {{ticket.ticket_price}}
//this image is not rendered in the pdf generated//
//this renders as its static//
`
here is my preview
Here is the generated pdf
The text was updated successfully, but these errors were encountered: