简体   繁体   English

Libreoffice - 将 Excel 转换为 PDF:受保护的视图

[英]Libreoffice - Convert Excel to PDF : Protected View

I am using the Windows LibreOffice install and the command line "soffice.exe" to perform a Excel to PDF conversion via shell_exec in PHP. I am using the Windows LibreOffice install and the command line "soffice.exe" to perform a Excel to PDF conversion via shell_exec in PHP. The conversion works fine, however the cells that are "calculated" are not being converted properly.转换工作正常,但是“计算”的单元格没有被正确转换。 The result PDF has them as all zeros.结果 PDF 将它们全为零。 It looks the same as when I open the Excel file directly, before I click the "Enable Editing" on the protected view action bar.在我单击受保护视图操作栏上的“启用编辑”之前,它看起来与我直接打开 Excel 文件时相同。 After I do this in Excel, the values change from zeros to the calculated values.在 Excel 中执行此操作后,值从零变为计算值。

My question is, how can I force LibreOffice to convert this Excel file WITH the calculated cells?我的问题是,如何强制 LibreOffice 将这个 Excel 文件与计算出的单元格一起转换? I've looked here ( https://help.libreoffice.org/latest/en-US/text/shared/guide/start_parameters.html ) for any arguments I can pass to tell is to disable protected view, but I'm not seeing anything.我看过这里( https://help.libreoffice.org/latest/en-US/text/shared/guide/start_parameters.html )的任何 ZDBC11CAA5BDA99F77E6FB4DAD82E什么都没看到。

Any ideas??有任何想法吗??

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM