Description: When using the following command to convert to a pdf file, the contents of the checkbox and drop-down selection are lost. soffice --headless --convert-to pdf:writer_pdf_Export --outdir xx\office xx\aa.docx Do I need to provide the original documents? There are no pictures to upload, and the description may not be clear. https://github.com/pac-madarame/Public_file Steps to Reproduce: 1.soffice --headless --convert-to pdf:writer_pdf_Export --outdir xx\office xx\origin_document.docx 2.open the pdf file 3. Actual Results: The contents of the checkbox and drop-down selection are lost. Expected Results: I hope that the exported pdf will be the same as the one opened with libreoffice. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice 7.5.9.2 cdeefe45c17511d326101eed8008ac4092f278a9
Test with this option to enable form fields. https://help.libreoffice.org/latest/he/text/shared/guide/pdf_params.html?&DbPAR=SHARED&System=WIN#:~:text=specifies%20whether%20form%20fields%20are%20exported%20as%20widgets%20or%20only%20their%20fixed%20print%20representation%20is%20exported.
(In reply to m_a_riosv from comment #1) > Test with this option to enable form fields. > > https://help.libreoffice.org/latest/he/text/shared/guide/pdf_params. > html?&DbPAR=SHARED&System=WIN#:~: > text=specifies%20whether%20form%20fields%20are%20exported%20as%20widgets%20or > %20only%20their%20fixed%20print%20representation%20is%20exported. Sorry, there are still problems when using the following command to convert. Please see the pictures in the link below https://github.com/pac-madarame/Public_file/blob/main/question_describe.png Is there something wrong with the command used? soffice --convert-to pdf:writer_pdf_Export:{"ExportFormFields":{"type":"boolean","value":"false"}} --outdir xx\office xx\origin_document.docx soffice --convert-to pdf:writer_pdf_Export:{"ExportFormFields":{"type":"boolean","value":"true"}} --outdir xx\office xx\origin_document.docx soffice --convert-to pdf:draw_pdf_Export:{"ExportFormFields":{"type":"boolean","value":"true"}} --outdir xx\office xx\origin_document.docx soffice --convert-to pdf:draw_pdf_Export:{"ExportFormFields":{"type":"boolean","value":"false"}} --outdir xx\office xx\origin_document.docx
[Automated Action] NeedInfo-To-Unconfirmed
Sorry, I'm used to working with CLI. Have you tried opening with LO and export to PDF, to see if it works as expected?, to know with what options it works fine. There is another one that can affect: https://help.libreoffice.org/latest/he/text/shared/guide/pdf_params.html?&DbPAR=SHARED&System=WIN#:~:text=specifies%20whether%20multiple%20form%20fields%20exported%20are%20allowed%20to%20have%20the%20same%20field%20name.
(In reply to m_a_riosv from comment #4) > Sorry, I'm used to working with CLI. > > Have you tried opening with LO and export to PDF, to see if it works as > expected?, to know with what options it works fine. > Thank you,I have tried using libreoffice to open the word document and the preview is normal, but exporting it directly to PDF, no matter what options are used, it seems that the export cannot be displayed normally. There is still a problem when exporting pdf using the following parameters. Is it possible that this is a bug? When exporting pdf using version 7.3.2, the display is normal, but the checkbox is invalid. > There is another one that can affect: > https://help.libreoffice.org/latest/he/text/shared/guide/pdf_params. > html?&DbPAR=SHARED&System=WIN#:~: > text=specifies%20whether%20multiple%20form%20fields%20exported%20are%20allowe > d%20to%20have%20the%20same%20field%20name.
Don't export directly, instead use Menu/File/Export as/Export as PDF, when you can modify the options to test.
3 issues here: - headless export form: given advice (does not belong here, but thanks Miguel) - export checkboxes was just fixed in bug 159452, so I duplicate - export dropdown, if still NOK, please search and if does not exist report separately - but attach here minimal sample (not on external page), just with English and Asian dropdowns (no other text) *** This bug has been marked as a duplicate of bug 159452 ***