convert ( '', '/Users/ricn/pdf_documents/doc.pdf' ) # Converts document.docx to document.pdf # If you for some reason can't have soffice in your PATH you can specify the file path to the soffice binary Libreconv. convert ( '', '/Users/ricn/pdf_documents/doc.pdf' ) # You cal pass a URL with GET params like this S3 example Libreconv. convert ( 'document.docx', '/Users/ricn/pdf_documents' ) # You can also convert a source file directly from an URL Libreconv. ![]() convert ( 'document.docx', '/Users/ricn/pdf_documents/my_document_as.pdf' ) # Converts document.docx to pdf and writes the output to the specified path # This requires that the soffice binary is present in your PATH. ![]() ![]() Require 'libreconv' # Converts document.docx to my_document_as.pdf # This requires that the soffice binary is present in your PATH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |