Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from w3nl/feature/optimize
Feature/optimize
- Loading branch information
Showing
8 changed files
with
60 additions
and
1,985 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Pdf2PngConverter from '@hckrnews/pdf2png'; | ||
|
||
export default ({ | ||
file, output | ||
}) => { | ||
const pdfConverter = Pdf2PngConverter.create({ | ||
file, | ||
output | ||
}); | ||
|
||
return pdfConverter.convert(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import PptToPdfConverter from '@hckrnews/ppt2pdf'; | ||
|
||
export default ({ | ||
file, output | ||
}) => { | ||
const pptConverter = PptToPdfConverter.create({ | ||
file: file.path, | ||
output | ||
}); | ||
|
||
pptConverter.convert(); | ||
|
||
return pptConverter.pdf; | ||
}; |
This file was deleted.
Oops, something went wrong.