Bug 154438

Summary: Libreoffice headless exporting html to pdf or docx ignore canvas html element
Product: LibreOffice Reporter: dspandian
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan
Priority: medium Keywords: filter:html
Version: 7.0.4.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108799    
Attachments: attached sample html docs
output generated by libre as docs
output generated by libre as pdf

Description dspandian 2023-03-29 03:51:04 UTC
Description:
I am trying to convert a html file into a pdf using below headless mode command
TO PDF:
soffice --headless --infilter=writerglobal8_HTML  --convert-to pdf:"writer_pdf_Export" --outdir /Users/dspandian-rc/Downloads /Users/dspandian-rc/Downloads/sample1.html


TO WORD:
soffice --headless --infilter=writerglobal8_HTML  --convert-to pdf:"writer_pdf_Export" --outdir /Users/dsp/Downloads /Users/dsp/Downloads/sample1.html

Files used are in my one drive. I attached out put files as well.

https://1drv.ms/f/s!As1jbBIP1BYU3ncBTfhSzVcbyVb6?e=0Cm88c 

Steps to Reproduce:
1. put sample1.html file in downloads folder
2. run the above command from desc 
3. open the generated output file. 

Actual Results:
Canvas not displayed

Expected Results:
Canvas should be displayed below the table. open the html in browser and you will see canvas with border and a line drawn in web page


Reproducible: Always


User Profile Reset: Yes

Additional Info:
it ignored the canvas element. it should have rendered and created a drawing in docx or pdf too
Comment 1 dspandian 2023-03-29 03:52:43 UTC
Created attachment 186274 [details]
attached sample html docs
Comment 2 dspandian 2023-03-29 03:53:19 UTC
Created attachment 186275 [details]
output generated by libre as docs
Comment 3 dspandian 2023-03-29 03:53:50 UTC
Created attachment 186276 [details]
output generated by libre as pdf
Comment 4 eisa01 2023-03-31 19:31:38 UTC
You can not confirm your own bugs, but I just did and this is not macOS specific

Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Debian package version: 1:7.0.4-4+deb11u4
Calc: threaded