Skip to content

allow PDF export options - #36

Closed
ogura wants to merge 2 commits into
DocSpring:masterfrom
ogura:use-pdf-export-options
Closed

allow PDF export options#36
ogura wants to merge 2 commits into
DocSpring:masterfrom
ogura:use-pdf-export-options

Conversation

@ogura

@oguraogura commented May 30, 2023

Copy link
Copy Markdown

Fixed an error when calling the Libreconv.convert method with a pdf export option.

execute with pdf export option example:

Libreconv.convert(input_path, output_path, nil, 'pdf:calc_pdf_Export:{"SelectPdfVersion" {"type":"long","value":"15"}}')

The current version gives an error message:

Libreconv::ConversionFailedError (Conversion failed! Output: "convert /tmp/xxxx.xlsx -> /tmp/d20230530-1-a3mspb/xxxx.pdf using filter : calc_pdf_Export:{\"SelectPdfVersion\":{\"type\":\"long\",\"value\":\"1\"}}", Error: ""):

PDF export options is a feature added in the LibreOffice 7.4.
references:

@ogura
oguraforce-pushed the use-pdf-export-options branch 2 times, most recently from 1def716 to 1cc19faCompareMay 30, 2023 14:06
@oguraogura changed the title Fixed error when PDF Text Options were included in @convert_toFixed error when PDF export options were included in @convert_toMay 30, 2023
@ogura
oguraforce-pushed the use-pdf-export-options branch from 1cc19fa to b59d92aCompareMay 31, 2023 02:23
@oguraogura changed the title Fixed error when PDF export options were included in @convert_toallow PDF export optionsMay 31, 2023
@ogura

ogura commented Jun 6, 2023

Copy link
Copy Markdown
Author

duplicate PR #35

@oguraogura closed this Jun 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ogura