Last active
April 6, 2019 19:22
-
-
Save aspose-cloud/32942c7d5b53387d6c2397b2c8da0c28 to your computer and use it in GitHub Desktop.
aspsoe-pdf-cloud-node
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.deleteDocumentAnnotations(name, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/linkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.deleteDocumentLinkAnnotations("PdfWithLinks.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/lineAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getPageLinkAnnotations("PdfWithLinks.pdf", 1, null, null); | |
linkId = result.body.links.list[0].id; | |
pdfApi.deleteLinkAnnotation("PdfWithLinks.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.deletePage("4pages.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.deletePageAnnotations("4pages.pdf", pageNumber, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/linkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.deletePageLinkAnnotations("PdfWithLinks.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentCaretAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getCaretAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
console.log('running example'); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
pdfApi.getDocument("mpdf.pdf", null, "").then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentAnnotations(name, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentAttachmentByIndex("PdfWithEmbeddedFiles.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentAttachments("PdfWithEmbeddedFiles.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentBookmarks("PdfWithBookmarks", null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentCaretAnnotations( "PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentCircleAnnotations("PdfWithAnnotations.pdf", null, BaseTest.remoteTempFolder) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await BaseTest.getPdfApi().getDocumentCircleAnnotations(name, null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getCircleAnnotation(name, annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentFileAttachmentAnnotations("4pages.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentFreeTextAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentHighlightAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentInkAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/inkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentLineAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentMovieAnnotations("PdfWithAnnotations1.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolyLineAnnotation } = require("asposepdfcloud/src/models/polyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentPolygonAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentPolyLineAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentProperties("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentRedactionAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { RedactionAnnotation } = require("asposepdfcloud/src/models/redactionAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentScreenAnnotations("PdfWithScreenAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentSoundAnnotations( "PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SoundAnnotation } = require("asposepdfcloud/src/models/soundAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentSquareAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquareAnnotation } = require("asposepdfcloud/src/models/squareAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentSquigglyAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquigglyAnnotation } = require("asposepdfcloud/src/models/squigglyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentStampAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDocumentStrikeOutAnnotations("PdfWithAnnotations.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { Paragraph } = require("asposepdfcloud/src/models/paragraph"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const name = "4pages.pdf"; | |
pdfApi.getDocumentTextAnnotations(name, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getDownloadDocumentAttachmentByIndex("PdfWithEmbeddedFiles.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getField("PdfWithAcroForm.pdf", "textField", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getFields("PdfWithAcroForm.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentFreeTextAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getFreeTextAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getHtmlInStorageToPdf("HtmlWithImage.zip", "HtmlWithImage.html", 650, 250) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getImages("PdfWithImages2.pdf", 1, null, null); | |
imageId = result.body.images.list[0].id; | |
pdfApi.putImageExtractAsJpeg("PdfWithImages2.pdf", imageId, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getImages("PdfWithImages2.pdf", 1, null, null); | |
const imageId = result.body.images.list[0].id; | |
pdfApi.getImage("PdfWithImages2.pdf", imageId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentInkAnnotations(name, null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getInkAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getLaTeXInStorageToPdf("TexExample.tex") | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/inkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = awaitpdfApi.getDocumentLineAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getLineAnnotation(name, annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getMhtInStorageToPdf("MhtExample.mht") | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPage("4pages.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageAnnotations("4pages.pdf", "1", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageCaretAnnotations("PdfWithAnnotations.pdf", 2, null, BaseTest.remoteTempFolder) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageCircleAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageConvertToBmp("4pages.pdf", 1, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageConvertToEmf("4pages.pdf", 1, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageConvertToGif("4pages.pdf", 1, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
PdfApi.getPageConvertToJpeg("4pages.pdf", 1, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi("app sid", "app key") | |
console.log('running example'); | |
pdfApi.getPageConvertToPng("4pages.pdf", 1, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageFileAttachmentAnnotations("4pages.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageFreeTextAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageHighlightAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageInkAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/inkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageLineAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/lineAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getPageLinkAnnotations("PdfWithLinks.pdf", 1, null, null); | |
linkId = result.body.links.list[0].id; | |
pdfApi.getPageLinkAnnotation("PdfWithLinks.pdf", 1, linkId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageMovieAnnotations("PdfWithAnnotations1.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPagePolyLineAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolygonAnnotation } = require("asposepdfcloud/src/models/polygonAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPagePopupAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageRedactionAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPages("4pages.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { RedactionAnnotation } = require("asposepdfcloud/src/models/redactionAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageScreenAnnotations("PdfWithScreenAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageSoundAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SoundAnnotation } = require("asposepdfcloud/src/models/soundAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageSquareAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquareAnnotation } = require("asposepdfcloud/src/models/squareAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageSquigglyAnnotations("PdfWithAnnotations.pdf", 2, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquigglyAnnotation } = require("asposepdfcloud/src/models/squigglyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageStampAnnotations("PdfWithAnnotations.pdf", 2, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPageStrikeOutAnnotations("PdfWithAnnotations.pdf", 1, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const name = "4pages.pdf"; | |
const x = 0; | |
const y = 0; | |
const width = 0; | |
const height = 0; | |
const pageNumber = 1; | |
const format = ["First Page", "Second Page"]; | |
pdfApi.getPageText(name, pageNumber, x, y, width, height, format, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { Paragraph } = require("asposepdfcloud/src/models/paragraph"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const pageNumber = 2; | |
const name = "4pages.pdf"; | |
pdfApi.getPageTextAnnotations(name, pageNumber, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPdfInStorageToDoc(simplePdf, null, null, null, null, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getPdfInStorageToPdfA("4pages.pdf", PdfAType.PDFA1A, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolyLineAnnotation } = require("asposepdfcloud/src/models/polyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentPolygonAnnotations(name, null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getPolygonAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentPolyLineAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getPolyLineAnnotation(name, annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolygonAnnotation } = require("asposepdfcloud/src/models/polygonAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentPopupAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getPopupAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentRedactionAnnotations(name, null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getRedactionAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { RedactionAnnotation } = require("asposepdfcloud/src/models/redactionAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = awaitpdfApi.getDocumentScreenAnnotations("PdfWithScreenAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getScreenAnnotation("PdfWithScreenAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SoundAnnotation } = require("asposepdfcloud/src/models/soundAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await BaseTest.getPdfApi().getDocumentSquareAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getSquareAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquareAnnotation } = require("asposepdfcloud/src/models/squareAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await pdfApi.getDocumentSquigglyAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getSquigglyAnnotation("PdfWithAnnotations.pdf", annotationId, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const name = "4pages.pdf"; | |
const x = 0; | |
const y = 0; | |
const width = 0; | |
const height = 0; | |
pdfApi.getText(name, x, y, width, height, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getWebInStorageToPdf("http://google.com") | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getWordsPerPage(name, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getXpsInStorageToPdf("Simple.xps") | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.getXslFoInStorageToPdf("XslfoExample.xslfo") | |
.then((result) => { | |
assert.equal(result.response.statusCode, 200); | |
}); |
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
{ | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"@types/bluebird": { | |
"version": "3.5.26", | |
"resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.26.tgz", | |
"integrity": "sha512-aj2mrBLn5ky0GmAg6IPXrQjnN0iB/ulozuJ+oZdrHRAzRbXjGmu4UXsNCjFvPbSaaPZmniocdOzsM392qLOlmQ==" | |
}, | |
"@types/caseless": { | |
"version": "0.12.2", | |
"resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", | |
"integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==" | |
}, | |
"@types/form-data": { | |
"version": "2.2.1", | |
"resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz", | |
"integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==", | |
"requires": { | |
"@types/node": "11.12.0" | |
} | |
}, | |
"@types/node": { | |
"version": "11.12.0", | |
"resolved": "https://registry.npmjs.org/@types/node/-/node-11.12.0.tgz", | |
"integrity": "sha512-Lg00egj78gM+4aE0Erw05cuDbvX9sLJbaaPwwRtdCdAMnIudqrQZ0oZX98Ek0yiSK/A2nubHgJfvII/rTT2Dwg==" | |
}, | |
"@types/request": { | |
"version": "2.48.1", | |
"resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.1.tgz", | |
"integrity": "sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg==", | |
"requires": { | |
"@types/caseless": "0.12.2", | |
"@types/form-data": "2.2.1", | |
"@types/node": "11.12.0", | |
"@types/tough-cookie": "2.3.5" | |
} | |
}, | |
"@types/tough-cookie": { | |
"version": "2.3.5", | |
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.5.tgz", | |
"integrity": "sha512-SCcK7mvGi3+ZNz833RRjFIxrn4gI1PPR3NtuIS+6vMkvmsGjosqTJwRt5bAEFLRz+wtJMWv8+uOnZf2hi2QXTg==" | |
}, | |
"ajv": { | |
"version": "6.10.0", | |
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", | |
"integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", | |
"requires": { | |
"fast-deep-equal": "2.0.1", | |
"fast-json-stable-stringify": "2.0.0", | |
"json-schema-traverse": "0.4.1", | |
"uri-js": "4.2.2" | |
} | |
}, | |
"asn1": { | |
"version": "0.2.4", | |
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", | |
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", | |
"requires": { | |
"safer-buffer": "2.1.2" | |
} | |
}, | |
"asposepdfcloud": { | |
"version": "19.2.0", | |
"resolved": "https://registry.npmjs.org/asposepdfcloud/-/asposepdfcloud-19.2.0.tgz", | |
"integrity": "sha512-7ZIYLH+d1ZN4xxK09tWZ55lB38vvNiWvjbKYZLuJ67LKBxnD/fY9h4SIHqBwzhiCrZ5D62oswwE57F5xntQ/TA==", | |
"requires": { | |
"@types/bluebird": "3.5.26", | |
"@types/request": "2.48.1", | |
"bluebird": "3.5.3", | |
"request": "2.88.0", | |
"request-debug": "0.2.0", | |
"superagent": "3.8.3" | |
} | |
}, | |
"assert-plus": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", | |
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" | |
}, | |
"asynckit": { | |
"version": "0.4.0", | |
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", | |
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" | |
}, | |
"aws-sign2": { | |
"version": "0.7.0", | |
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", | |
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" | |
}, | |
"aws4": { | |
"version": "1.8.0", | |
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", | |
"integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" | |
}, | |
"bcrypt-pbkdf": { | |
"version": "1.0.2", | |
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", | |
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", | |
"requires": { | |
"tweetnacl": "0.14.5" | |
} | |
}, | |
"bluebird": { | |
"version": "3.5.3", | |
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", | |
"integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==" | |
}, | |
"caseless": { | |
"version": "0.12.0", | |
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", | |
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" | |
}, | |
"combined-stream": { | |
"version": "1.0.7", | |
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", | |
"integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", | |
"requires": { | |
"delayed-stream": "1.0.0" | |
} | |
}, | |
"component-emitter": { | |
"version": "1.2.1", | |
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", | |
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" | |
}, | |
"cookiejar": { | |
"version": "2.1.2", | |
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", | |
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" | |
}, | |
"core-util-is": { | |
"version": "1.0.2", | |
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", | |
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" | |
}, | |
"dashdash": { | |
"version": "1.14.1", | |
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", | |
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", | |
"requires": { | |
"assert-plus": "1.0.0" | |
} | |
}, | |
"debug": { | |
"version": "3.2.6", | |
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", | |
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", | |
"requires": { | |
"ms": "2.1.1" | |
} | |
}, | |
"delayed-stream": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", | |
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" | |
}, | |
"ecc-jsbn": { | |
"version": "0.1.2", | |
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", | |
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", | |
"requires": { | |
"jsbn": "0.1.1", | |
"safer-buffer": "2.1.2" | |
} | |
}, | |
"extend": { | |
"version": "3.0.2", | |
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", | |
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" | |
}, | |
"extsprintf": { | |
"version": "1.3.0", | |
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", | |
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" | |
}, | |
"fast-deep-equal": { | |
"version": "2.0.1", | |
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", | |
"integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" | |
}, | |
"fast-json-stable-stringify": { | |
"version": "2.0.0", | |
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", | |
"integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" | |
}, | |
"forever-agent": { | |
"version": "0.6.1", | |
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", | |
"integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" | |
}, | |
"form-data": { | |
"version": "2.3.3", | |
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", | |
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", | |
"requires": { | |
"asynckit": "0.4.0", | |
"combined-stream": "1.0.7", | |
"mime-types": "2.1.22" | |
} | |
}, | |
"formidable": { | |
"version": "1.2.1", | |
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", | |
"integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==" | |
}, | |
"getpass": { | |
"version": "0.1.7", | |
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", | |
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", | |
"requires": { | |
"assert-plus": "1.0.0" | |
} | |
}, | |
"har-schema": { | |
"version": "2.0.0", | |
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", | |
"integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" | |
}, | |
"har-validator": { | |
"version": "5.1.3", | |
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", | |
"integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", | |
"requires": { | |
"ajv": "6.10.0", | |
"har-schema": "2.0.0" | |
} | |
}, | |
"http-signature": { | |
"version": "1.2.0", | |
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", | |
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", | |
"requires": { | |
"assert-plus": "1.0.0", | |
"jsprim": "1.4.1", | |
"sshpk": "1.16.1" | |
} | |
}, | |
"inherits": { | |
"version": "2.0.3", | |
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", | |
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" | |
}, | |
"is-typedarray": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", | |
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" | |
}, | |
"isarray": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", | |
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" | |
}, | |
"isstream": { | |
"version": "0.1.2", | |
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", | |
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" | |
}, | |
"jsbn": { | |
"version": "0.1.1", | |
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", | |
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" | |
}, | |
"json-schema": { | |
"version": "0.2.3", | |
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", | |
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" | |
}, | |
"json-schema-traverse": { | |
"version": "0.4.1", | |
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", | |
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" | |
}, | |
"json-stringify-safe": { | |
"version": "5.0.1", | |
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", | |
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" | |
}, | |
"jsprim": { | |
"version": "1.4.1", | |
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", | |
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", | |
"requires": { | |
"assert-plus": "1.0.0", | |
"extsprintf": "1.3.0", | |
"json-schema": "0.2.3", | |
"verror": "1.10.0" | |
} | |
}, | |
"methods": { | |
"version": "1.1.2", | |
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", | |
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" | |
}, | |
"mime": { | |
"version": "1.6.0", | |
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", | |
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" | |
}, | |
"mime-db": { | |
"version": "1.38.0", | |
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", | |
"integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==" | |
}, | |
"mime-types": { | |
"version": "2.1.22", | |
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", | |
"integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", | |
"requires": { | |
"mime-db": "1.38.0" | |
} | |
}, | |
"ms": { | |
"version": "2.1.1", | |
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", | |
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" | |
}, | |
"oauth-sign": { | |
"version": "0.9.0", | |
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", | |
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" | |
}, | |
"performance-now": { | |
"version": "2.1.0", | |
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", | |
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" | |
}, | |
"process-nextick-args": { | |
"version": "2.0.0", | |
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", | |
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" | |
}, | |
"psl": { | |
"version": "1.1.31", | |
"resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", | |
"integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==" | |
}, | |
"punycode": { | |
"version": "2.1.1", | |
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", | |
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" | |
}, | |
"qs": { | |
"version": "6.5.2", | |
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", | |
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" | |
}, | |
"readable-stream": { | |
"version": "2.3.6", | |
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", | |
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", | |
"requires": { | |
"core-util-is": "1.0.2", | |
"inherits": "2.0.3", | |
"isarray": "1.0.0", | |
"process-nextick-args": "2.0.0", | |
"safe-buffer": "5.1.2", | |
"string_decoder": "1.1.1", | |
"util-deprecate": "1.0.2" | |
} | |
}, | |
"request": { | |
"version": "2.88.0", | |
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", | |
"integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", | |
"requires": { | |
"aws-sign2": "0.7.0", | |
"aws4": "1.8.0", | |
"caseless": "0.12.0", | |
"combined-stream": "1.0.7", | |
"extend": "3.0.2", | |
"forever-agent": "0.6.1", | |
"form-data": "2.3.3", | |
"har-validator": "5.1.3", | |
"http-signature": "1.2.0", | |
"is-typedarray": "1.0.0", | |
"isstream": "0.1.2", | |
"json-stringify-safe": "5.0.1", | |
"mime-types": "2.1.22", | |
"oauth-sign": "0.9.0", | |
"performance-now": "2.1.0", | |
"qs": "6.5.2", | |
"safe-buffer": "5.1.2", | |
"tough-cookie": "2.4.3", | |
"tunnel-agent": "0.6.0", | |
"uuid": "3.3.2" | |
} | |
}, | |
"request-debug": { | |
"version": "0.2.0", | |
"resolved": "https://registry.npmjs.org/request-debug/-/request-debug-0.2.0.tgz", | |
"integrity": "sha1-/AVOyBcYGwTKQaBSwTb2HEirr3g=", | |
"requires": { | |
"stringify-clone": "1.1.1" | |
} | |
}, | |
"safe-buffer": { | |
"version": "5.1.2", | |
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", | |
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" | |
}, | |
"safer-buffer": { | |
"version": "2.1.2", | |
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", | |
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" | |
}, | |
"sshpk": { | |
"version": "1.16.1", | |
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", | |
"integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", | |
"requires": { | |
"asn1": "0.2.4", | |
"assert-plus": "1.0.0", | |
"bcrypt-pbkdf": "1.0.2", | |
"dashdash": "1.14.1", | |
"ecc-jsbn": "0.1.2", | |
"getpass": "0.1.7", | |
"jsbn": "0.1.1", | |
"safer-buffer": "2.1.2", | |
"tweetnacl": "0.14.5" | |
} | |
}, | |
"string_decoder": { | |
"version": "1.1.1", | |
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", | |
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", | |
"requires": { | |
"safe-buffer": "5.1.2" | |
} | |
}, | |
"stringify-clone": { | |
"version": "1.1.1", | |
"resolved": "https://registry.npmjs.org/stringify-clone/-/stringify-clone-1.1.1.tgz", | |
"integrity": "sha1-MJojX7Ts/M19OI2+GLqQT6yvQzs=" | |
}, | |
"superagent": { | |
"version": "3.8.3", | |
"resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz", | |
"integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==", | |
"requires": { | |
"component-emitter": "1.2.1", | |
"cookiejar": "2.1.2", | |
"debug": "3.2.6", | |
"extend": "3.0.2", | |
"form-data": "2.3.3", | |
"formidable": "1.2.1", | |
"methods": "1.1.2", | |
"mime": "1.6.0", | |
"qs": "6.5.2", | |
"readable-stream": "2.3.6" | |
} | |
}, | |
"tough-cookie": { | |
"version": "2.4.3", | |
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", | |
"integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", | |
"requires": { | |
"psl": "1.1.31", | |
"punycode": "1.4.1" | |
}, | |
"dependencies": { | |
"punycode": { | |
"version": "1.4.1", | |
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", | |
"integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" | |
} | |
} | |
}, | |
"tunnel-agent": { | |
"version": "0.6.0", | |
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", | |
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", | |
"requires": { | |
"safe-buffer": "5.1.2" | |
} | |
}, | |
"tweetnacl": { | |
"version": "0.14.5", | |
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", | |
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" | |
}, | |
"uri-js": { | |
"version": "4.2.2", | |
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", | |
"integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", | |
"requires": { | |
"punycode": "2.1.1" | |
} | |
}, | |
"util-deprecate": { | |
"version": "1.0.2", | |
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", | |
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" | |
}, | |
"uuid": { | |
"version": "3.3.2", | |
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", | |
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" | |
}, | |
"verror": { | |
"version": "1.10.0", | |
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", | |
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", | |
"requires": { | |
"assert-plus": "1.0.0", | |
"core-util-is": "1.0.2", | |
"extsprintf": "1.3.0" | |
} | |
} | |
} | |
} |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.postAppendDocument("4pages.pdf", null, "4pages.pdf", 1, 2, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
return BaseTest.getPdfApi().postAppendDocument("4pages.pdf", null, "4pages.pdf", 1, 2, null,null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.postCreateField("PdfWithAcroForm.pdf", 1, field, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { TextReplaceListRequest } = require("asposepdfcloud/src/models/textReplace"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const name = "4pages.pdf"; | |
const trr = new TextReplaceListRequest(); | |
trr.textReplaces = [textReplace]; | |
trr.startIndex = 0; | |
trr.countReplace = 0; | |
pdfApi.postDocumentTextReplace(name, trr, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.postFlattenDocument("PdfWithAcroForm.pdf", true, null, false, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi("app sid", "app secret key") | |
console.log('running example'); | |
const imageName = "Koala.jpg"; | |
pdfApi.postInsertImage("4pages.pdf", 2, 10, 10, 100, 100, imageName, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.postMovePage("4pages.pdf", 1, 3, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const {OptimizeOptions} =require("asposepdfcloud/src/models/optimizeOptions") | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
let optimizeOptions = new OptimizeOptions(); | |
optimizeOptions.allowReusePageContent = false; | |
optimizeOptions.compressImages = true; | |
optimizeOptions.imageQuality = 100; | |
optimizeOptions.linkDuplcateStreams = true; | |
optimizeOptions.removeUnusedObjects = true; | |
optimizeOptions.removeUnusedStreams = true; | |
optimizeOptions.unembedFonts = true; | |
pdfApi.postOptimizeDocument("4pages.pdf", optimizeOptions, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new CircleAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
pdfApi.postPageCircleAnnotations(name, pageNumber, [annotation], null, BaseTest.remoteTempFolder) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new FileAttachmentAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title"; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
annotation.fileName = "4pages.pdf"; | |
const result = await pdfApi.getDocumentFileAttachmentAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putFileAttachmentAnnotationDataExtract("PdfWithAnnotations.pdf", annotationId, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const freeTextAnnotation = new FreeTextAnnotation(); | |
freeTextAnnotation.name = "Test Free Text"; | |
freeTextAnnotation.textStyle = textStyle; | |
freeTextAnnotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
freeTextAnnotation.flags = [AnnotationFlags.Default]; | |
freeTextAnnotation.horizontalAlignment = HorizontalAlignment.Center; | |
freeTextAnnotation.intent = FreeTextIntent.FreeTextTypeWriter; | |
freeTextAnnotation.richText = "Rich Text"; | |
freeTextAnnotation.subject = "Text Box Subj"; | |
freeTextAnnotation.zIndex = 1; | |
freeTextAnnotation.justification = Justification.Center; | |
freeTextAnnotation.title = "Title" | |
pdfApi.postPageFreeTextAnnotations("PdfWithAnnotations.pdf", 1, [freeTextAnnotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new HighlightAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.quadPoints = [ | |
{ x: 10, y: 10 }, | |
{ x: 20, y: 10 }, | |
{ x: 10, y: 20 }, | |
{ x: 10, y: 10 } | |
]; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
return BaseTest.getPdfApi().postPageHighlightAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/inkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new InkAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.inkList = [ | |
[ | |
{ x: 10, y: 40 }, | |
{ x: 30, y: 40 } | |
], | |
[ | |
{ x: 10, y: 20 }, | |
{ x: 20, y: 20 }, | |
{ x: 30, y: 20 } | |
] | |
]; | |
annotation.capStyle = CapStyle.Rounded; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
pdfApi.postPageInkAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/lineAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new LineAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.starting = { x: 10, y: 10 } | |
annotation.ending = { x: 100, y: 100 } | |
pdfApi.postPageLineAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/linkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const linkAnnotation = new LinkAnnotation(); | |
linkAnnotation.actionType = LinkActionType.GoToURIAction; | |
linkAnnotation.action = "https://products.aspose.cloud/pdf"; | |
linkAnnotation.rect = { lLX: 100, lLY: 100, uRX: 500, uRY: 500 }; | |
pdfApi.postPageLinkAnnotations("PdfWithLinks.pdf", 1, [linkAnnotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new MovieAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.filePath = attachmentFile; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
pdfApi.postPageMovieAnnotations("PdfWithAnnotations1.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolygonAnnotation } = require("asposepdfcloud/src/models/polygonAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new PolygonAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.vertices = [ | |
{ x: 10, y: 10 }, | |
{ x: 20, y: 10 }, | |
{ x: 10, y: 20 }, | |
{ x: 10, y: 10 } | |
] | |
pdfApi.postPagePolygonAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolyLineAnnotation } = require("asposepdfcloud/src/models/polyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new PolyLineAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.vertices = [ | |
{ x: 10, y: 10 }, | |
{ x: 20, y: 10 }, | |
{ x: 10, y: 20 }, | |
{ x: 10, y: 10 } | |
] | |
pdfApi.postPagePolyLineAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new RedactionAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200}; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.quadPoint = [ | |
{x: 10, y: 40}, | |
{x: 30, y: 40} | |
]; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
pdfApi.postPageRedactionAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new ScreenAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200}; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.title = "Title"; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
annotation.filePath = "4pages.pdf"; | |
pdfApi.postPageScreenAnnotations("PdfWithScreenAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquareAnnotation } = require("asposepdfcloud/src/models/squareAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new SquareAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
pdfApi.postPageSquareAnnotations("PdfWithAnnotations.pdf", 1, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquigglyAnnotation } = require("asposepdfcloud/src/models/squigglyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new SquigglyAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text"; | |
annotation.subject = "Text Box Subj"; | |
annotation.zIndex = 1; | |
annotation.title = "Title" | |
annotation.quadPoints = [ | |
{ x: 10, y: 10 }, | |
{ x: 20, y: 10 }, | |
{ x: 10, y: 20 }, | |
{ x: 10, y: 10 } | |
]; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
pdfApi.postPageSquigglyAnnotations("PdfWithAnnotations.pdf", 2, [annotation], null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolygonAnnotation } = require("asposepdfcloud/src/models/polygonAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
let parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV"; | |
const annotation = new PopupAnnotation(); | |
annotation.name = "Name"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
pdfApi.postPopupAnnotation(name, parentId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const signature = new Signature(); | |
signature.authority = "Sergey Smal"; | |
signature.contact = "test@mail.ru" | |
signature.date = "08/01/2012 12:15:00.000 PM"; | |
signature.formFieldName = "Signature1"; | |
signature.location = "Ukraine"; | |
signature.password = "test1234"; | |
signature.rectangle = { lLX: 100, lLY: 100, uRX: 500, uRY: 500 }; | |
signature.signaturePath = "test1234.pfx"; | |
signature.signatureType = SignatureType.PKCS7; | |
signature.visible = true; | |
signature.showProperties = false; | |
pdfApi.postSignDocument("BlankWithSignature.pdf", signature, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const signature = new Signature(); | |
signature.authority = "Sergey Smal"; | |
signature.contact = "test@mail.ru" | |
signature.date = "08/01/2012 12:15:00.000 PM"; | |
signature.formFieldName = "Signature1"; | |
signature.location = "Ukraine"; | |
signature.password = "test1234"; | |
signature.rectangle = { lLX: 100, lLY: 100, uRX: 500, uRY: 500 }; | |
signature.signaturePath = "test1234.pfx"; | |
signature.signatureType = SignatureType.PKCS7; | |
signature.visible = true; | |
signature.showProperties = false; | |
pdfApi.postSignPage("BlankWithSignature.pdf", 1, signature, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.postSplitDocument("4pages.pdf", null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putAddNewPage("4pages.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { Paragraph } = require("asposepdfcloud/src/models/paragraph"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const paragraph = new Paragraph(); | |
paragraph.rectangle = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
paragraph.leftMargin = 10; | |
paragraph.rightMargin = 10; | |
paragraph.topMargin = 20; | |
paragraph.bottomMargin = 20; | |
paragraph.horizontalAlignment = TextHorizontalAlignment.FullJustify; | |
paragraph.lineSpacing = LineSpacing.FontSize; | |
paragraph.rotation = 10; | |
paragraph.subsequentLinesIndent = 20; | |
paragraph.verticalAlignment = VerticalAlignment.Center; | |
paragraph.wrapMode = WrapMode.ByWords; | |
paragraph.lines = [ | |
{ | |
horizontalAlignment: TextHorizontalAlignment.Right, | |
segments: [ | |
{ | |
value: "segment 1", | |
textState: { | |
font: "Arial", | |
fontSize: 10, | |
foregroundColor: { a: 0x00, r: 0x00, g: 0xFF, b: 0x00 }, | |
backgroundColor: { a: 0x00, r: 0xFF, g: 0x00, b: 0x00 }, | |
fontStyle: FontStyles.Bold | |
} | |
} | |
] | |
} | |
]; | |
const pageNumber = 3; | |
const name = "4pages.pdf"; | |
pdfApi.putAddText(name, pageNumber, paragraph, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putAnnotationsFlatten("4pages.pdf", null, endPage, annotationTypes, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
console.log('running example'); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
const name = "empty_node.pdf"; | |
pdfApi.putCreateDocument(name, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putFieldsFlatten("PdfWithAcroForm.pdf", null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putHtmlInStorageToPdf("fromHtml.pdf", "HtmlWithImage.zip", "HtmlWithImage.html", 650, 250, null, null, | |
null, null, null,null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const result = await BaseTest.getPdfApi().getImages("PdfWithImages2.pdf", 1, null, null); | |
imageId = result.body.images.list[0].id; | |
pdfApi.putImageExtractAsJpeg("PdfWithImages2.pdf", imageId, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putImagesExtractAsGif("PdfWithImages2.pdf", 1, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/freeTextAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putImagesExtractAsJpeg("PdfWithImages2.pdf", 1, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putImagesExtractAsPng("PdfWithImages2.pdf", 1, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putImagesExtractAsTiff("PdfWithImages2.pdf", 1, null, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/inkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new InkAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text Updated"; | |
annotation.subject = "Subj Updated"; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated" | |
annotation.inkList = [ | |
[ | |
{ x: 10, y: 40 }, | |
{ x: 30, y: 40 } | |
], | |
[ | |
{ x: 10, y: 20 }, | |
{ x: 20, y: 20 }, | |
{ x: 30, y: 20 } | |
] | |
]; | |
annotation.capStyle = CapStyle.Rounded; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
const result = await pdfApi.getDocumentInkAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putInkAnnotation("PdfWithAnnotations.pdf", annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/linkAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const linkAnnotation = new LinkAnnotation(); | |
linkAnnotation.actionType = LinkActionType.GoToURIAction; | |
linkAnnotation.action = "https://products.aspose.cloud/pdf"; | |
linkAnnotation.rect = { lLX: 100, lLY: 100, uRX: 500, uRY: 500 }; | |
pdfApi.putLinkAnnotation("PdfWithLinks.pdf", linkId, linkAnnotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/mergeDocuments"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const names = ["4pages.pdf", "4pages.pdf", "4pages.pdf"]; | |
const resultName = "MergingResult.pdf"; | |
const mergeDocuments = new MergeDocuments(); | |
mergeDocuments.list = []; | |
names.forEach((file) => { | |
mergeDocuments.list.push(file); | |
}); | |
pdfApi.putMergeDocuments(resultName, mergeDocuments, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putMhtInStorageToPdf("result.pdf", "MhtExample.mht", BaseTest.remoteTempFolder) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/stamp"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const pageNumber = 1; | |
const stamp = new Stamp(); | |
stamp.type = StampType.Image; | |
stamp.fileName = "penguins.jpg"; | |
stamp.background = true; | |
stamp.width = 200; | |
stamp.height = 200; | |
stamp.xIndent = 100; | |
stamp.yIndent = 100; | |
pdfApi.putPageAddStamp("4pages.pdf", 2, stamp, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putPageConvertToBmp("4pages.pdf", 1, "page.bmp", null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putPageConvertToGif("4pages.pdf", 1, "test.gif", null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const outPath = "page.jpg"; | |
pdfApi.putPageConvertToJpeg("4pages.pdf", 1, outPath, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putPageConvertToPng("4pages.pdf", 1, "page.png", null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putPageConvertToTiff("4pages.pdf", 1, null, null, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PolyLineAnnotation } = require("asposepdfcloud/src/models/polyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new PolyLineAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text Updated"; | |
annotation.subject = "Subj Updated"; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated" | |
annotation.vertices = [ | |
{ x: 10, y: 10 }, | |
{ x: 20, y: 10 }, | |
{ x: 10, y: 20 }, | |
{ x: 10, y: 10 } | |
] | |
const result = await pdfApi.getDocumentPolyLineAnnotations(name, null,null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putPolyLineAnnotation(name, annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentPrivilege } = require("asposepdfcloud/src/models/documentPrivilege"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const documentPrivilege = new DocumentPrivilege(); | |
documentPrivilege.allowCopy = false; | |
documentPrivilege.allowPrint = false; | |
pdfApi.putPrivileges("4pages.pdf", documentPrivilege, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { RedactionAnnotation } = require("asposepdfcloud/src/models/redactionAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new RedactionAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.quadPoint = [ | |
{ x: 10, y: 40 }, | |
{ x: 30, y: 40 } | |
]; | |
annotation.modified = "01/01/2018 12:01:02.000 AM"; | |
const result = await pdfApi.getDocumentRedactionAnnotations(name, null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putRedactionAnnotation("PdfWithAnnotations.pdf", annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { ScreenAnnotation } = require("asposepdfcloud/src/models/screenAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new ScreenAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated"; | |
annotation.modified = "01/01/2018 12:01:02.000 AM"; | |
annotation.filePath = "4pages.pdf"; | |
const result = await pdfApi.getDocumentScreenAnnotations("PdfWithScreenAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putScreenAnnotation(name, annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/movieAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const lang = "rus,eng"; | |
pdfApi.putSearchableDocument("rusdoc.pdf", null, null, lang) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { DocumentProperty } = require("asposepdfcloud/src/models/DocumentProperty"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const propertyNames = ["prop1", "prop2"]; | |
const propertyValues = ["val1", "val2"]; | |
const property1 = new DocumentProperty(); | |
property1.name = propertyNames[0]; | |
property1.value = propertyValues[0]; | |
const property2 = new DocumentProperty(); | |
property2.name = propertyNames[1]; | |
property2.value = propertyValues[1]; | |
pdfApi. | |
putSetProperty("4apges.pdf", property1.name, property1.value, null, null).then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SoundAnnotation } = require("asposepdfcloud/src/models/soundAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new SoundAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text Updated"; | |
annotation.subject = "Text Box Subj Updated"; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated"; | |
annotation.modified = "01/01/2018 12:01:02.000 AM"; | |
annotation.filePath = BaseTest.remoteTempFolder + "/" + attachmentFile; | |
const result = await pdfApi.getDocumentSoundAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putSoundAnnotation("PdfWithAnnotations.pdf", annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquareAnnotation } = require("asposepdfcloud/src/models/squareAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new SquareAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200 }; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text Updated"; | |
annotation.subject = "Subj Updated"; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated" | |
const result = await pdfApi.getDocumentSquareAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.getPdfApi().putSquareAnnotation(name, annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { SquigglyAnnotation } = require("asposepdfcloud/src/models/squigglyAnnotation"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const annotation = new SquigglyAnnotation(); | |
annotation.name = "Name Updated"; | |
annotation.rect = { lLX: 100, lLY: 100, uRX: 200, uRY: 200}; | |
annotation.flags = [AnnotationFlags.Default]; | |
annotation.horizontalAlignment = HorizontalAlignment.Center; | |
annotation.richText = "Rich Text Updated"; | |
annotation.subject = "Subj Updated"; | |
annotation.zIndex = 1; | |
annotation.title = "Title Updated" | |
annotation.quadPoints = [ | |
{x: 10, y: 10}, | |
{x: 20, y: 10}, | |
{x: 10, y: 20}, | |
{x: 10, y: 10} | |
]; | |
annotation.modified = "01/01/2018 00:00:00.000 AM"; | |
const result = await pdfApi.getDocumentSquigglyAnnotations("PdfWithAnnotations.pdf", null, null) | |
const annotationId = result.body.annotations.list[0].id; | |
pdfApi.putSquigglyAnnotation("PdfWithAnnotations.pdf", annotationId, annotation, null, null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/fieldType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
const field = { | |
name: fieldName, | |
type: FieldType.Text, | |
values: ["Text field updated value."], | |
selectedItems: null, | |
rect: null, | |
links: null | |
} | |
pdfApi.putUpdateField( "PdfWithAcroForm.pdf", fieldName, field, null, BaseTest.remoteTempFolder) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putXpsInStorageToPdf("result.pdf", "Simple.xps", null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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
const { PdfApi } = require("asposepdfcloud"); | |
const { PdfAType } = require("asposepdfcloud/src/models/pdfAType"); | |
pdfApi = new PdfApi( | |
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195") | |
console.log('running example'); | |
pdfApi.putXslFoInStorageToPdf("result.pdf", "XslfoExample.xslfo", null) | |
.then((result) => { | |
console.log(result.response); | |
}); |
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 is a test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment