This file contains hidden or 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
| import com.aspose.pdf.Document; | |
| import com.aspose.pdf.JavascriptAction; | |
| public class AddJsToPdf | |
| { | |
| public static void main(String[] args) throws Exception | |
| { | |
| // Load Aspose license | |
| com.aspose.pdf.License license = new com.aspose.pdf.License(); | |
| license.setLicense("license.lic"); |
This file contains hidden or 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
| import com.aspose.words.*; | |
| public class AddSections { | |
| public static void main(String[] args) throws Exception { | |
| // Load license | |
| License lic = new License(); | |
| lic.setLicense("license.lic"); | |
| // Create document + builder | |
| Document doc = new Document(); |
This file contains hidden or 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
| using Aspose.Pdf; | |
| using Aspose.Pdf.Annotations; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| new License().SetLicense("license.lic"); | |
| // Load an existing PDF |
This file contains hidden or 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
| import aspose.words as aw | |
| def main(): | |
| license = aw.License() | |
| license.set_license("license.lic") | |
| signatures = aw.digitalsignatures.DigitalSignatureUtil.load_signatures("SignedFile.docx") | |
| print(f"Signatures count before removing signatures = {signatures.count}") | |
| aw.digitalsignatures.DigitalSignatureUtil.remove_all_signatures( |
This file contains hidden or 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
| import com.aspose.words.DigitalSignatureCollection; | |
| import com.aspose.words.DigitalSignatureUtil; | |
| import com.aspose.words.License; | |
| public class RemoveSignatures { | |
| public static void main(String[] args) throws Exception { | |
| License lic = new License(); | |
| lic.setLicense("license.lic"); | |
| DigitalSignatureCollection signatures = DigitalSignatureUtil.loadSignatures("SignedFile.docx"); |
This file contains hidden or 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
| using System.IO; | |
| using Aspose.Words; | |
| using Aspose.Words.DigitalSignatures; | |
| namespace SignaturesRemovalDemo | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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
| import aspose.words as aw | |
| def main(): | |
| lic = aw.License() | |
| lic.set_license("license.lic") | |
| doc = aw.Document() | |
| builder = aw.DocumentBuilder(doc) | |
| # Write some content |
This file contains hidden or 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
| using Aspose.Words; | |
| namespace AsposeWordsMdToDocxDemo | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| License lic = new License(); | |
| lic.SetLicense("license.lic"); |
This file contains hidden or 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
| import base64 | |
| import aspose.words as aw | |
| def main(): | |
| lic = aw.License() | |
| lic.set_license("license.lic") | |
| # Path to a signed Word file | |
| file_path = "SignedOutput.docx" | |
| # Check signature presence |
This file contains hidden or 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
| import com.aspose.words.*; | |
| public class WordFileSignatureDemo { | |
| public static void main(String[] args) throws Exception { | |
| License lic = new License(); | |
| lic.setLicense("license.lic"); | |
| // Path to a signed Word file | |
| String filePath = "SignedOutput.docx"; |
NewerOlder