Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract target_extname to allow 'html:HTML:EmbedImages' #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yhirano55
Copy link

fix #27

When the target format was 'html:HTML:EmbededImages', the current implementation of the extension extraction logic generated an incorrect file extension of 'html:HTML'.

To address this issue, we have revised the extension extraction logic to correctly identify and generate the appropriate file extension for the target format.

fix DocSpring#27

When the target format was 'html:HTML:EmbededImages', the current implementation of
the extension extraction logic generated an incorrect file extension of 'html:HTML'.

To address this issue, we have revised the extension extraction logic to correctly
identify and generate the appropriate file extension for the target format.
@yhirano55
Copy link
Author

✔️ All specs are passed:

$ bundle exec rspec

Randomized with seed 8690

Libreconv::Converter
  #convert
    converts a xlsx to pdf
    converts a xls to pdf
    converts a file to the specified target html
    converts a pptx to pdf
    converts a ppt to pdf
    converts a file to the specified target html with EmbedImages options
    converts a doc to pdf
    converts a docx to pdf

Libreconv::Converter
  #check_valid_url
    returns NIL for non-exists url
    returns URI for valid url
    raises HTTP error when requesting failed
    raises error for invalid URI
    returns false for non-HTTP url

Libreconv::Converter
  #build_file_uri
    converts a file path to file URI
    builds file URI from a path with special characters

Libreconv::Converter
  .new
    raises error if soffice command does not exists
    raises error if source does not exists
  :soffice_command
    returns the command found in path
    returns the user specified command path

Libreconv::Converter
  #convert
    raises error when URL cannot be loaded
    converts a source URL to pdf

Libreconv
  has a version number
  .convert
    converts an office file to the specified target pdf

Finished in 49.46 seconds (files took 0.56574 seconds to load)
23 examples, 0 failures

Randomized with seed 8690

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.

Fail convert if "convert_to" consists of three parts
1 participant