Просмотр исходного кода

Reduced sample file size.

tags/v1.0.0
Kalimuthu Selvaraj 5 лет назад
Родитель
Сommit
784d843dd7
6 измененных файлов: 3 добавлений и 3 удалений
  1. 0
    0
      index.js
  2. Двоичные данные
      test/source/file_example.pdf
  3. Двоичные данные
      test/source/file_example.pptx
  4. Двоичные данные
      test/source/file_example_PPT_250kB.pdf
  5. Двоичные данные
      test/source/file_example_PPT_250kB.ppt
  6. 3
    3
      test/test.js

convert.js → index.js Просмотреть файл


Двоичные данные
test/source/file_example.pdf Просмотреть файл


Двоичные данные
test/source/file_example.pptx Просмотреть файл


Двоичные данные
test/source/file_example_PPT_250kB.pdf Просмотреть файл


Двоичные данные
test/source/file_example_PPT_250kB.ppt Просмотреть файл


+ 3
- 3
test/test.js Просмотреть файл

@@ -8,7 +8,7 @@ global.appRoot = path.resolve(__dirname);
describe("Convert files to pdf or/and image", function () {
const options = {
libreofficeBin: "C:\\Program Files\\LibreOffice\\program\\sooffice.exe",
sourceFile: `${global.appRoot}/source/file_example_PPT_250kB.ppt`,
sourceFile: `${global.appRoot}/source/file_example.pptx`,
outputDir: `${global.appRoot}/files/`,
img: true,
};
@@ -29,7 +29,7 @@ describe("Convert files to pdf or/and image", function () {
});

it("should convert pdf to image", function () {
options.sourceFile = `${global.appRoot}/source/file_example_PPT_250kB.pdf`;
options.sourceFile = `${global.appRoot}/source/file_example.pdf`;
options.outputDir = `${global.appRoot}/files/`;
options.reSize = 800;
document.convert(options).then((res) => {
@@ -38,7 +38,7 @@ describe("Convert files to pdf or/and image", function () {
});

it("should convert pdf only", function (done) {
options.sourceFile = `${global.appRoot}/source/file_example_PPT_250kB.ppt`;
options.sourceFile = `${global.appRoot}/source/file_example.pptx`;
options.img = false;
document.convert(options).then((res) => {
expect(res).to.equal("Success");

Загрузка…
Отмена
Сохранить