Skip to content

Conversation

@ogura-nacl
Copy link

@ogura-nacl ogura-nacl commented May 30, 2023

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-nacl ogura-nacl force-pushed the use-pdf-export-options branch 2 times, most recently from 1def716 to 1cc19fa Compare May 30, 2023 14:06
@ogura-nacl ogura-nacl changed the title Fixed error when PDF Text Options were included in @convert_to Fixed error when PDF export options were included in @convert_to May 30, 2023
@ogura-nacl ogura-nacl force-pushed the use-pdf-export-options branch from 1cc19fa to b59d92a Compare May 31, 2023 02:23
@ogura-nacl ogura-nacl changed the title Fixed error when PDF export options were included in @convert_to allow PDF export options May 31, 2023
@ogura-nacl
Copy link
Author

duplicate PR #35

@ogura-nacl ogura-nacl closed this Jun 6, 2023
Sign up for free to 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