Bug 154438 - Libreoffice headless exporting html to pdf or docx ignore canvas html element
Summary: Libreoffice headless exporting html to pdf or docx ignore canvas html element
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2023-03-29 03:51 UTC by dspandian
Modified: 2023-05-11 15:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
attached sample html docs (6.69 KB, text/html)
2023-03-29 03:52 UTC, dspandian
Details
output generated by libre as docs (4.87 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-03-29 03:53 UTC, dspandian
Details
output generated by libre as pdf (12.97 KB, application/pdf)
2023-03-29 03:53 UTC, dspandian
Details

Note You need to log in before you can comment on or make changes to this bug.
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