From fb554975208a2ba43dd668cf55e3f161b7e595ba Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 7 Apr 2026 21:21:38 +0200 Subject: [PATCH 1/7] Aspose.PDF for Go via C++: IsEncrypted, SignPKCS7, SignPKCS7Detached, IsSigned, RemoveSigns --- english/go-cpp/_index.md | 5 ++ english/go-cpp/security/_index.md | 5 ++ english/go-cpp/security/isencrypted/_index.md | 44 ++++++++++++++ english/go-cpp/security/issigned/_index.md | 44 ++++++++++++++ english/go-cpp/security/removesigns/_index.md | 43 +++++++++++++ english/go-cpp/security/signpkcs7/_index.md | 60 +++++++++++++++++++ .../security/signpkcs7detached/_index.md | 60 +++++++++++++++++++ 7 files changed, 261 insertions(+) create mode 100644 english/go-cpp/security/isencrypted/_index.md create mode 100644 english/go-cpp/security/issigned/_index.md create mode 100644 english/go-cpp/security/removesigns/_index.md create mode 100644 english/go-cpp/security/signpkcs7/_index.md create mode 100644 english/go-cpp/security/signpkcs7detached/_index.md diff --git a/english/go-cpp/_index.md b/english/go-cpp/_index.md index 2e35205791..65e2ec557a 100644 --- a/english/go-cpp/_index.md +++ b/english/go-cpp/_index.md @@ -144,6 +144,11 @@ type Document struct { | [Decrypt](./security/decrypt/) | Decrypt PDF-document. | | [SetPermissions](./security/setpermissions/) | Set permissions for PDF-document. | | [GetPermissions](./security/getpermissions/) | Get current permissions of PDF-document. | +| [IsEncrypted](./security/isencrypted/) | Get encrypted status of PDF-document. | +| [SignPKCS7](./security/signpkcs7/) | Sign a PDF-document using PKCS#7 digital signatures. | +| [SignPKCS7Detached](./security/signpkcs7detached/) | Sign a PDF-document using PKCS#7 Detached digital signatures. | +| [IsSigned](./security/issigned/) | Get signed status of PDF-document. | +| [RemoveSigns](./security/removesigns/) | Remove signs from PDF-document. | ## Miscellaneous diff --git a/english/go-cpp/security/_index.md b/english/go-cpp/security/_index.md index 109c9330cd..48d007312c 100644 --- a/english/go-cpp/security/_index.md +++ b/english/go-cpp/security/_index.md @@ -15,6 +15,11 @@ url: /go-cpp/security/ | [Decrypt](./decrypt/) | Decrypt PDF-document. | | [SetPermissions](./setpermissions/) | Set permissions for PDF-document. | | [GetPermissions](./getpermissions/) | Get current permissions of PDF-document. | +| [IsEncrypted](./isencrypted/) | Get encrypted status of PDF-document. | +| [SignPKCS7](./signpkcs7/) | Sign a PDF-document using PKCS#7 digital signatures. | +| [SignPKCS7Detached](./signpkcs7detached/) | Sign a PDF-document using PKCS#7 Detached digital signatures. | +| [IsSigned](./issigned/) | Get signed status of PDF-document. | +| [RemoveSigns](./removesigns/) | Remove signs from PDF-document. | ## Detailed Description diff --git a/english/go-cpp/security/isencrypted/_index.md b/english/go-cpp/security/isencrypted/_index.md new file mode 100644 index 0000000000..9fc9c1eb8c --- /dev/null +++ b/english/go-cpp/security/isencrypted/_index.md @@ -0,0 +1,44 @@ +--- +title: "IsEncrypted" +second_title: Aspose.PDF for Go via C++ +description: "Get encrypted status of PDF-document." +type: docs +url: /go-cpp/security/isencrypted/ +--- + +_Get encrypted status of PDF-document._ + +```go +func (document *Document) IsEncrypted() (bool, error) +``` + +**Parameters**: + +**Return**: + * **bool** - the document is encrypted + * **error** - contains an error or nil if absent + + +**Example**: +```go +package main + +import "github.com/aspose-pdf/aspose-pdf-go-cpp" +import "log" +import "fmt" + +func main() { + // OpenWithPassword(filename string, password string) opens a password-protected PDF-document + pdf, err := asposepdf.OpenWithPassword("sample_with_password.pdf", "ownerpass") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + // IsEncrypted() gets encrypted status of PDF-document + isEnc, _ := pdf.IsEncrypted() + if isEnc { + fmt.Println("IsEncrypted() is true") + } +} +``` diff --git a/english/go-cpp/security/issigned/_index.md b/english/go-cpp/security/issigned/_index.md new file mode 100644 index 0000000000..9430c0d897 --- /dev/null +++ b/english/go-cpp/security/issigned/_index.md @@ -0,0 +1,44 @@ +--- +title: "IsSigned" +second_title: Aspose.PDF for Go via C++ +description: "Get signed status of PDF-document." +type: docs +url: /go-cpp/security/issigned/ +--- + +_Get signed status of PDF-document._ + +```go +func (document *Document) IsSigned() (bool, error) +``` + +**Parameters**: + +**Return**: + * **bool** - the document is signed + * **error** - contains an error or nil if absent + + +**Example**: +```go +package main + +import "github.com/aspose-pdf/aspose-pdf-go-cpp" +import "log" +import "fmt" + +func main() { + // Open(filename string) opens a PDF-document with filename + pdf, err := asposepdf.Open("sample_with_sign.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + // IsSigned() gets signed status of PDF-document + isSig, _ := pdf.IsSigned() + if isSig { + fmt.Println("IsSigned() is true") + } +} +``` diff --git a/english/go-cpp/security/removesigns/_index.md b/english/go-cpp/security/removesigns/_index.md new file mode 100644 index 0000000000..5d09fa938a --- /dev/null +++ b/english/go-cpp/security/removesigns/_index.md @@ -0,0 +1,43 @@ +--- +title: "RemoveSigns" +second_title: Aspose.PDF for Go via C++ +description: "Remove signs from PDF-document." +type: docs +url: /go-cpp/organize/removesigns/ +--- + +_Remove signs from PDF-document._ + +```go +func (document *Document) RemoveSigns(filename string) error +``` + +**Parameters**: + * **filename** - new filename, without signs + +**Return**: + * **error** - contains an error or nil if absent + + +**Example**: +```go +package main + +import "github.com/aspose-pdf/aspose-pdf-go-cpp" +import "log" + +func main() { + // Open(filename string) opens a PDF-document with filename + pdf, err := asposepdf.Open("sample_with_sign.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + // RemoveSigns(filename string) removes signs from PDF-document + err = pdf.RemoveSigns("sample_RemoveSigns.pdf") + if err != nil { + log.Fatal(err) + } +} +``` diff --git a/english/go-cpp/security/signpkcs7/_index.md b/english/go-cpp/security/signpkcs7/_index.md new file mode 100644 index 0000000000..3188956960 --- /dev/null +++ b/english/go-cpp/security/signpkcs7/_index.md @@ -0,0 +1,60 @@ +--- +title: "SignPKCS7" +second_title: Aspose.PDF for Go via C++ +description: "Sign a PDF-document using PKCS#7 digital signatures." +type: docs +url: /go-cpp/security/signpkcs7/ +--- + +_Sign a PDF-document using PKCS#7 digital signatures._ + +```go +func (document *Document) SignPKCS7(num int32, signData []byte, pswSign string, setXIndent, setYIndent, setHeight, setWidth int32, reason, contact, location string, isVisible bool, appearanceData []byte, filename string) error +``` + +**Parameters**: + * **num** - the page number of the PDF-document + * **signData** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **pswSign** - the password of the signature + * **setXIndent** - the x indent of the signature + * **setYIndent** - the y indent of the signature + * **setHeight** - the height of the signature + * **setWidth** - the width of the signature + * **reason** - the location of a signature + * **contact** - the reason of a signature + * **location** - the location of a signature + * **isVisible** - the visiblity of signature + * **appearanceData** - the raw bytes of the graphic appearance for the signature + * **filename** - the new filename, with signature + +**Return**: + * **error** - contains an error or nil if absent + + +**Example**: +```go +package main + +import "github.com/aspose-pdf/aspose-pdf-go-cpp" +import "log" +import "os" + +func main() { + cert, _ := os.ReadFile("sign.pfx") + img, _ := os.ReadFile("sign.png") + + // Open(filename string) opens a PDF-document with filename + pdf, err := asposepdf.Open("sample.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + + // SignPKCS7 signs a PDF-document using PKCS#7 digital signatures + err = pdf.SignPKCS7(1, cert, "Pa$$w0rd2023", 100, 100, 70, 100, "Reason", "Contact", "Location", true, img, "sample_SignPKCS7.pdf") + if err != nil { + log.Fatal(err) + } +} +``` diff --git a/english/go-cpp/security/signpkcs7detached/_index.md b/english/go-cpp/security/signpkcs7detached/_index.md new file mode 100644 index 0000000000..03400569cb --- /dev/null +++ b/english/go-cpp/security/signpkcs7detached/_index.md @@ -0,0 +1,60 @@ +--- +title: "SignPKCS7Detached" +second_title: Aspose.PDF for Go via C++ +description: "Sign a PDF-document using PKCS#7 Detached digital signatures." +type: docs +url: /go-cpp/security/signpkcs7detached/ +--- + +_Sign a PDF-document using PKCS#7 Detached digital signatures._ + +```go +func (document *Document) SignPKCS7Detached(num int32, signData []byte, pswSign string, setXIndent, setYIndent, setHeight, setWidth int32, reason, contact, location string, isVisible bool, appearanceData []byte, filename string) error +``` + +**Parameters**: + * **num** - the page number of the PDF-document + * **signData** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **pswSign** - the password of the signature + * **setXIndent** - the x indent of the signature + * **setYIndent** - the y indent of the signature + * **setHeight** - the height of the signature + * **setWidth** - the width of the signature + * **reason** - the location of a signature + * **contact** - the reason of a signature + * **location** - the location of a signature + * **isVisible** - the visiblity of signature + * **appearanceData** - the raw bytes of the graphic appearance for the signature + * **filename** - the new filename, with signature + +**Return**: + * **error** - contains an error or nil if absent + + +**Example**: +```go +package main + +import "github.com/aspose-pdf/aspose-pdf-go-cpp" +import "log" +import "os" + +func main() { + cert, _ := os.ReadFile("sign.pfx") + img, _ := os.ReadFile("sign.png") + + // Open(filename string) opens a PDF-document with filename + pdf, err := asposepdf.Open("sample.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + + // SignPKCS7Detached signs a PDF-document using PKCS#7 Detached digital signatures + err = pdf.SignPKCS7Detached(1, cert, "Pa$$w0rd2023", 100, 100, 70, 100, "Reason", "Contact", "Location", true, img, "sample_SignPKCS7Detached.pdf") + if err != nil { + log.Fatal(err) + } +} +``` From 63759928c15b848593ee81b621ee62971c81ba5f Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 7 Apr 2026 22:09:10 +0200 Subject: [PATCH 2/7] Aspose.PDF for Go via C++: upd RemoveSigns --- english/go-cpp/security/removesigns/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/english/go-cpp/security/removesigns/_index.md b/english/go-cpp/security/removesigns/_index.md index 5d09fa938a..3e092e1f31 100644 --- a/english/go-cpp/security/removesigns/_index.md +++ b/english/go-cpp/security/removesigns/_index.md @@ -3,7 +3,7 @@ title: "RemoveSigns" second_title: Aspose.PDF for Go via C++ description: "Remove signs from PDF-document." type: docs -url: /go-cpp/organize/removesigns/ +url: /go-cpp/security/removesigns/ --- _Remove signs from PDF-document._ From 43c4a7e7df6211ea0b351cc52cdc148fde7f361c Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Wed, 8 Apr 2026 19:43:44 +0200 Subject: [PATCH 3/7] Aspose.PDF for Go via C++: upd SignPKCS7, SignPKCS7Detached --- english/go-cpp/security/signpkcs7/_index.md | 4 ++-- english/go-cpp/security/signpkcs7detached/_index.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/english/go-cpp/security/signpkcs7/_index.md b/english/go-cpp/security/signpkcs7/_index.md index 3188956960..dca5418b21 100644 --- a/english/go-cpp/security/signpkcs7/_index.md +++ b/english/go-cpp/security/signpkcs7/_index.md @@ -20,8 +20,8 @@ func (document *Document) SignPKCS7(num int32, signData []byte, pswSign string, * **setYIndent** - the y indent of the signature * **setHeight** - the height of the signature * **setWidth** - the width of the signature - * **reason** - the location of a signature - * **contact** - the reason of a signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature * **location** - the location of a signature * **isVisible** - the visiblity of signature * **appearanceData** - the raw bytes of the graphic appearance for the signature diff --git a/english/go-cpp/security/signpkcs7detached/_index.md b/english/go-cpp/security/signpkcs7detached/_index.md index 03400569cb..297485ffe8 100644 --- a/english/go-cpp/security/signpkcs7detached/_index.md +++ b/english/go-cpp/security/signpkcs7detached/_index.md @@ -20,8 +20,8 @@ func (document *Document) SignPKCS7Detached(num int32, signData []byte, pswSign * **setYIndent** - the y indent of the signature * **setHeight** - the height of the signature * **setWidth** - the width of the signature - * **reason** - the location of a signature - * **contact** - the reason of a signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature * **location** - the location of a signature * **isVisible** - the visiblity of signature * **appearanceData** - the raw bytes of the graphic appearance for the signature From 0f17bcc6ca71f281b19439d557089d6a0db06575 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Thu, 9 Apr 2026 08:52:39 +0200 Subject: [PATCH 4/7] Aspose.PDF for Rust via C++: is_encrypted, sign_pkcs7, sign_pkcs7_detached, is_signed, remove_signs --- english/rust-cpp/_index.md | 5 ++ english/rust-cpp/core/page_is_blank/_index.md | 6 +- english/rust-cpp/security/_index.md | 5 ++ .../rust-cpp/security/is_encrypted/_index.md | 39 +++++++++ english/rust-cpp/security/is_signed/_index.md | 39 +++++++++ .../rust-cpp/security/remove_signs/_index.md | 38 +++++++++ .../rust-cpp/security/sign_pkcs7/_index.md | 84 +++++++++++++++++++ .../security/sign_pkcs7_detached/_index.md | 84 +++++++++++++++++++ 8 files changed, 297 insertions(+), 3 deletions(-) create mode 100644 english/rust-cpp/security/is_encrypted/_index.md create mode 100644 english/rust-cpp/security/is_signed/_index.md create mode 100644 english/rust-cpp/security/remove_signs/_index.md create mode 100644 english/rust-cpp/security/sign_pkcs7/_index.md create mode 100644 english/rust-cpp/security/sign_pkcs7_detached/_index.md diff --git a/english/rust-cpp/_index.md b/english/rust-cpp/_index.md index e85d5be1f2..4dde32e874 100644 --- a/english/rust-cpp/_index.md +++ b/english/rust-cpp/_index.md @@ -141,6 +141,11 @@ pub struct Document { /* private fields */ } | [decrypt](./security/decrypt/) | Decrypt PDF-document. | | [set_permissions](./security/set_permissions/) | Set permissions for PDF-document. | | [get_permissions](./security/get_permissions/) | Get current permissions of PDF-document. | +| [is_encrypted](./security/is_encrypted/) | Get encrypted status of PDF-document. | +| [sign_pkcs7](./security/sign_pkcs7/) | Sign a PDF-document using PKCS#7 digital signatures. | +| [sign_pkcs7_detached](./security/sign_pkcs7_detached/) | Sign a PDF-document using PKCS#7 Detached digital signatures. | +| [is_signed](./security/is_signed/) | Get signed status of PDF-document. | +| [remove_signs](./security/remove_signs/) | Remove signs from PDF-document. | ## Miscellaneous diff --git a/english/rust-cpp/core/page_is_blank/_index.md b/english/rust-cpp/core/page_is_blank/_index.md index b9f8421f1b..d39b8a0ac0 100644 --- a/english/rust-cpp/core/page_is_blank/_index.md +++ b/english/rust-cpp/core/page_is_blank/_index.md @@ -1,15 +1,15 @@ --- title: "page_is_blank" second_title: Aspose.PDF for Rust via C++ -description: "Returns page is blank in PDF-document." +description: "Return page is blank in PDF-document." type: docs url: /rust-cpp/core/page_is_blank/ --- -_Returns page is blank in PDF-document._ +_Return page is blank in PDF-document._ ```rust -pub fn page_is_blank(&self) -> Result +pub fn page_is_blank(&self, num: i32) -> Result ``` **Arguments** diff --git a/english/rust-cpp/security/_index.md b/english/rust-cpp/security/_index.md index ee9c3e497f..c4edb2dc47 100644 --- a/english/rust-cpp/security/_index.md +++ b/english/rust-cpp/security/_index.md @@ -15,6 +15,11 @@ url: /rust-cpp/security/ | [decrypt](./decrypt/) | Decrypt PDF-document. | | [set_permissions](./set_permissions/) | Set permissions for PDF-document. | | [get_permissions](./get_permissions/) | Get current permissions of PDF-document. | +| [is_encrypted](./is_encrypted/) | Get encrypted status of PDF-document. | +| [sign_pkcs7](./sign_pkcs7/) | Sign a PDF-document using PKCS#7 digital signatures. | +| [sign_pkcs7_detached](./sign_pkcs7_detached/) | Sign a PDF-document using PKCS#7 Detached digital signatures. | +| [is_signed](./is_signed/) | Get signed status of PDF-document. | +| [remove_signs](./remove_signs/) | Remove signs from PDF-document. | ## Detailed Description diff --git a/english/rust-cpp/security/is_encrypted/_index.md b/english/rust-cpp/security/is_encrypted/_index.md new file mode 100644 index 0000000000..400ce465c5 --- /dev/null +++ b/english/rust-cpp/security/is_encrypted/_index.md @@ -0,0 +1,39 @@ +--- +title: "is_encrypted" +second_title: Aspose.PDF for Rust via C++ +description: "Get encrypted status of PDF-document." +type: docs +url: /rust-cpp/security/is_encrypted/ +--- + +_Get encrypted status of PDF-document._ + +```rust +pub fn is_encrypted(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Open a password-protected PDF-document + let pdf = Document::open_with_password("sample_with_password.pdf", "ownerpass")?; + + // Get encrypted status of PDF-document + if pdf.is_encrypted()? { + println!("The document is encrypted."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/english/rust-cpp/security/is_signed/_index.md b/english/rust-cpp/security/is_signed/_index.md new file mode 100644 index 0000000000..d9caf3561e --- /dev/null +++ b/english/rust-cpp/security/is_signed/_index.md @@ -0,0 +1,39 @@ +--- +title: "is_signed" +second_title: Aspose.PDF for Rust via C++ +description: "Get signed status of PDF-document." +type: docs +url: /rust-cpp/security/is_signed/ +--- + +_Get signed status of PDF-document._ + +```rust +pub fn is_signed(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Open a PDF-document named "sample_with_sign.pdf" + let pdf = Document::open("sample_with_sign.pdf")?; + + // Get signed status of PDF-document + if pdf.is_signed()? { + println!("The document is signed."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/english/rust-cpp/security/remove_signs/_index.md b/english/rust-cpp/security/remove_signs/_index.md new file mode 100644 index 0000000000..79f4859703 --- /dev/null +++ b/english/rust-cpp/security/remove_signs/_index.md @@ -0,0 +1,38 @@ +--- +title: "remove_signs" +second_title: Aspose.PDF for Rust via C++ +description: "Remove signs from PDF-document." +type: docs +url: /rust-cpp/security/remove_signs/ +--- + +_Remove signs from PDF-document._ + +```rust +pub fn remove_signs(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the resulting PDF-document without signatures + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Open a PDF-document named "sample_with_sign.pdf" + let pdf = Document::open("sample_with_sign.pdf")?; + + // Remove signs from PDF-document + pdf.remove_signs("sample_remove_signs.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/english/rust-cpp/security/sign_pkcs7/_index.md b/english/rust-cpp/security/sign_pkcs7/_index.md new file mode 100644 index 0000000000..9fa3141595 --- /dev/null +++ b/english/rust-cpp/security/sign_pkcs7/_index.md @@ -0,0 +1,84 @@ +--- +title: "sign_pkcs7" +second_title: Aspose.PDF for Rust via C++ +description: "Sign a PDF-document using PKCS#7 digital signatures." +type: docs +url: /rust-cpp/security/sign_pkcs7/ +--- + +_Sign a PDF-document using PKCS#7 digital signatures._ + +```rust + pub fn sign_pkcs7( + &self, + num: i32, + sign_data: &[u8], + psw_sign: &str, + set_x_indent: i32, + set_y_indent: i32, + set_height: i32, + set_width: i32, + reason: &str, + contact: &str, + location: &str, + is_visible: bool, + appearance_data: &[u8], + filename: &str, + ) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **sign_data** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **psw_sign** - the password of the signature + * **set_x_indent** - the x indent of the signature + * **set_y_indent** - the y indent of the signature + * **set_height** - the height of the signature + * **set_width** - the width of the signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature + * **location** - the location of a signature + * **is_visible** - the visiblity of signature + * **appearance_data** - the raw bytes of the graphic appearance for the signature + * **filename** - the path to the resulting PDF-document with signature + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; +use std::fs; + +fn main() -> Result<(), Box> { + // Read certificate and image files into byte vectors + let cert = fs::read("sign.pfx")?; + let img = fs::read("sign.png")?; + + // Open a PDF-document with filename + let pdf = Document::open("sample.pdf")?; + + // Sign a PDF-document using PKCS#7 digital signatures + pdf.sign_pkcs7( + 1, + &cert, + "Pa$$w0rd2023", + 100, + 100, + 70, + 100, + "Reason", + "Contact", + "Location", + true, + &img, + "sample_sign_pkcs7.pdf", + )?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/english/rust-cpp/security/sign_pkcs7_detached/_index.md b/english/rust-cpp/security/sign_pkcs7_detached/_index.md new file mode 100644 index 0000000000..9adfb0489c --- /dev/null +++ b/english/rust-cpp/security/sign_pkcs7_detached/_index.md @@ -0,0 +1,84 @@ +--- +title: "sign_pkcs7_detached" +second_title: Aspose.PDF for Rust via C++ +description: "Sign a PDF-document using PKCS#7 Detached digital signatures." +type: docs +url: /rust-cpp/security/sign_pkcs7_detached/ +--- + +_Sign a PDF-document using PKCS#7 Detached digital signatures._ + +```rust + pub fn sign_pkcs7_detached( + &self, + num: i32, + sign_data: &[u8], + psw_sign: &str, + set_x_indent: i32, + set_y_indent: i32, + set_height: i32, + set_width: i32, + reason: &str, + contact: &str, + location: &str, + is_visible: bool, + appearance_data: &[u8], + filename: &str, + ) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **sign_data** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **psw_sign** - the password of the signature + * **set_x_indent** - the x indent of the signature + * **set_y_indent** - the y indent of the signature + * **set_height** - the height of the signature + * **set_width** - the width of the signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature + * **location** - the location of a signature + * **is_visible** - the visiblity of signature + * **appearance_data** - the raw bytes of the graphic appearance for the signature + * **filename** - the path to the resulting PDF-document with signature + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; +use std::fs; + +fn main() -> Result<(), Box> { + // Read certificate and image files into byte vectors + let cert = fs::read("sign.pfx")?; + let img = fs::read("sign.png")?; + + // Open a PDF-document with filename + let pdf = Document::open("sample.pdf")?; + + // Sign a PDF-document using PKCS#7 Detached digital signatures + pdf.sign_pkcs7_detached( + 1, + &cert, + "Pa$$w0rd2023", + 100, + 100, + 70, + 100, + "Reason", + "Contact", + "Location", + true, + &img, + "sample_sign_pkcs7_detached.pdf", + )?; + + Ok(()) +} + +``` \ No newline at end of file From 58e34462f14438f9bab749ef5033c17e991b1dce Mon Sep 17 00:00:00 2001 From: adil-aspose <83574456+adil-aspose@users.noreply.github.com> Date: Mon, 20 Apr 2026 17:27:06 +0500 Subject: [PATCH 5/7] Add per-language stage trigger workflows and sitemap --- .github/workflows/trigger-pdf-arabic-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-chinese-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-english-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-french-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-german-stage.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-indonesian-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-italian-stage.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-japanese-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-korean-stage.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-portuguese-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-russian-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-spanish-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-swedish-stage.yml | 17 +++++++++++++++++ .github/workflows/trigger-pdf-turkish-stage.yml | 17 +++++++++++++++++ static/sitemap.xml | 17 +++++++++++++++++ 15 files changed, 255 insertions(+) create mode 100644 .github/workflows/trigger-pdf-arabic-stage.yml create mode 100644 .github/workflows/trigger-pdf-chinese-stage.yml create mode 100644 .github/workflows/trigger-pdf-english-stage.yml create mode 100644 .github/workflows/trigger-pdf-french-stage.yml create mode 100644 .github/workflows/trigger-pdf-german-stage.yml create mode 100644 .github/workflows/trigger-pdf-indonesian-stage.yml create mode 100644 .github/workflows/trigger-pdf-italian-stage.yml create mode 100644 .github/workflows/trigger-pdf-japanese-stage.yml create mode 100644 .github/workflows/trigger-pdf-korean-stage.yml create mode 100644 .github/workflows/trigger-pdf-portuguese-stage.yml create mode 100644 .github/workflows/trigger-pdf-russian-stage.yml create mode 100644 .github/workflows/trigger-pdf-spanish-stage.yml create mode 100644 .github/workflows/trigger-pdf-swedish-stage.yml create mode 100644 .github/workflows/trigger-pdf-turkish-stage.yml create mode 100644 static/sitemap.xml diff --git a/.github/workflows/trigger-pdf-arabic-stage.yml b/.github/workflows/trigger-pdf-arabic-stage.yml new file mode 100644 index 0000000000..acae23d254 --- /dev/null +++ b/.github/workflows/trigger-pdf-arabic-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Arabic Stage Build + +on: + push: + branches: [ main ] + paths: [ 'arabic/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-arabic-stage diff --git a/.github/workflows/trigger-pdf-chinese-stage.yml b/.github/workflows/trigger-pdf-chinese-stage.yml new file mode 100644 index 0000000000..f979bef30b --- /dev/null +++ b/.github/workflows/trigger-pdf-chinese-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Chinese Stage Build + +on: + push: + branches: [ main ] + paths: [ 'chinese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-chinese-stage diff --git a/.github/workflows/trigger-pdf-english-stage.yml b/.github/workflows/trigger-pdf-english-stage.yml new file mode 100644 index 0000000000..ed9da6ad52 --- /dev/null +++ b/.github/workflows/trigger-pdf-english-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF English Stage Build + +on: + push: + branches: [ main ] + paths: [ 'english/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-english-stage diff --git a/.github/workflows/trigger-pdf-french-stage.yml b/.github/workflows/trigger-pdf-french-stage.yml new file mode 100644 index 0000000000..5648c28ea1 --- /dev/null +++ b/.github/workflows/trigger-pdf-french-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF French Stage Build + +on: + push: + branches: [ main ] + paths: [ 'french/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-french-stage diff --git a/.github/workflows/trigger-pdf-german-stage.yml b/.github/workflows/trigger-pdf-german-stage.yml new file mode 100644 index 0000000000..ae16eea6a0 --- /dev/null +++ b/.github/workflows/trigger-pdf-german-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF German Stage Build + +on: + push: + branches: [ main ] + paths: [ 'german/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-german-stage diff --git a/.github/workflows/trigger-pdf-indonesian-stage.yml b/.github/workflows/trigger-pdf-indonesian-stage.yml new file mode 100644 index 0000000000..869d8f2d1b --- /dev/null +++ b/.github/workflows/trigger-pdf-indonesian-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Indonesian Stage Build + +on: + push: + branches: [ main ] + paths: [ 'indonesian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-indonesian-stage diff --git a/.github/workflows/trigger-pdf-italian-stage.yml b/.github/workflows/trigger-pdf-italian-stage.yml new file mode 100644 index 0000000000..560303d0f9 --- /dev/null +++ b/.github/workflows/trigger-pdf-italian-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Italian Stage Build + +on: + push: + branches: [ main ] + paths: [ 'italian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-italian-stage diff --git a/.github/workflows/trigger-pdf-japanese-stage.yml b/.github/workflows/trigger-pdf-japanese-stage.yml new file mode 100644 index 0000000000..4bd850270f --- /dev/null +++ b/.github/workflows/trigger-pdf-japanese-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Japanese Stage Build + +on: + push: + branches: [ main ] + paths: [ 'japanese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-japanese-stage diff --git a/.github/workflows/trigger-pdf-korean-stage.yml b/.github/workflows/trigger-pdf-korean-stage.yml new file mode 100644 index 0000000000..0c9f5bfaaa --- /dev/null +++ b/.github/workflows/trigger-pdf-korean-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Korean Stage Build + +on: + push: + branches: [ main ] + paths: [ 'korean/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-korean-stage diff --git a/.github/workflows/trigger-pdf-portuguese-stage.yml b/.github/workflows/trigger-pdf-portuguese-stage.yml new file mode 100644 index 0000000000..86040a40be --- /dev/null +++ b/.github/workflows/trigger-pdf-portuguese-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Portuguese Stage Build + +on: + push: + branches: [ main ] + paths: [ 'portuguese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-portuguese-stage diff --git a/.github/workflows/trigger-pdf-russian-stage.yml b/.github/workflows/trigger-pdf-russian-stage.yml new file mode 100644 index 0000000000..30b30021b3 --- /dev/null +++ b/.github/workflows/trigger-pdf-russian-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Russian Stage Build + +on: + push: + branches: [ main ] + paths: [ 'russian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-russian-stage diff --git a/.github/workflows/trigger-pdf-spanish-stage.yml b/.github/workflows/trigger-pdf-spanish-stage.yml new file mode 100644 index 0000000000..0b30ddba19 --- /dev/null +++ b/.github/workflows/trigger-pdf-spanish-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Spanish Stage Build + +on: + push: + branches: [ main ] + paths: [ 'spanish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-spanish-stage diff --git a/.github/workflows/trigger-pdf-swedish-stage.yml b/.github/workflows/trigger-pdf-swedish-stage.yml new file mode 100644 index 0000000000..da23f184ce --- /dev/null +++ b/.github/workflows/trigger-pdf-swedish-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Swedish Stage Build + +on: + push: + branches: [ main ] + paths: [ 'swedish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-swedish-stage diff --git a/.github/workflows/trigger-pdf-turkish-stage.yml b/.github/workflows/trigger-pdf-turkish-stage.yml new file mode 100644 index 0000000000..02f63e35a8 --- /dev/null +++ b/.github/workflows/trigger-pdf-turkish-stage.yml @@ -0,0 +1,17 @@ +name: Trigger PDF Turkish Stage Build + +on: + push: + branches: [ main ] + paths: [ 'turkish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-turkish-stage diff --git a/static/sitemap.xml b/static/sitemap.xml new file mode 100644 index 0000000000..c094749968 --- /dev/null +++ b/static/sitemap.xml @@ -0,0 +1,17 @@ + + + https://reference.aspose.com/pdf/sitemap.xml + https://reference.aspose.com/pdf/ru/sitemap.xml + https://reference.aspose.com/pdf/zh/sitemap.xml + https://reference.aspose.com/pdf/ar/sitemap.xml + https://reference.aspose.com/pdf/fr/sitemap.xml + https://reference.aspose.com/pdf/de/sitemap.xml + https://reference.aspose.com/pdf/id/sitemap.xml + https://reference.aspose.com/pdf/it/sitemap.xml + https://reference.aspose.com/pdf/ja/sitemap.xml + https://reference.aspose.com/pdf/ko/sitemap.xml + https://reference.aspose.com/pdf/pt/sitemap.xml + https://reference.aspose.com/pdf/es/sitemap.xml + https://reference.aspose.com/pdf/sv/sitemap.xml + https://reference.aspose.com/pdf/tr/sitemap.xml + From bb5996a719d9c2fe2243162f1843ecb6fb905908 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Mon, 20 Apr 2026 20:39:56 +0200 Subject: [PATCH 6/7] Aspose.PDF for JavaScript via C++: upd AsposePdfReplaceTextEx 26.4 --- .../javascript-cpp/organize/asposepdfreplacetextex/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/english/javascript-cpp/organize/asposepdfreplacetextex/_index.md b/english/javascript-cpp/organize/asposepdfreplacetextex/_index.md index aececc9fa2..32d3b3f5e0 100644 --- a/english/javascript-cpp/organize/asposepdfreplacetextex/_index.md +++ b/english/javascript-cpp/organize/asposepdfreplacetextex/_index.md @@ -104,7 +104,7 @@ JSON object var ffileReplaceTextEx = function (e) { const file_reader = new FileReader(); file_reader.onload = (event) => { - /*RReplace multiple text fragments in a PDF-file with alignment control and save the "ResultReplaceTextEx.pdf"*/ + /*Replace multiple text fragments in a PDF-file with alignment control and save the "ResultReplaceTextEx.pdf"*/ const json = AsposePdfReplaceTextEx(event.target.result, e.target.files[0].name, [{findText: 'Aspose',replaceText: 'ASPOSE'}], {alignment: "left"}, "ResultReplaceTextEx.pdf"); if (json.errorCode == 0) document.getElementById('output').textContent = json.fileNameResult else document.getElementById('output').textContent = json.errorText; From f15684ac964ff2b57aedbfda1d94f4436055dd52 Mon Sep 17 00:00:00 2001 From: adil-aspose <83574456+adil-aspose@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:44:28 +0500 Subject: [PATCH 7/7] Add per-language production trigger workflows --- .../workflows/trigger-pdf-arabic-production.yml | 17 +++++++++++++++++ .../trigger-pdf-chinese-production.yml | 17 +++++++++++++++++ .../trigger-pdf-english-production.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-french-production.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-german-production.yml | 17 +++++++++++++++++ .../trigger-pdf-indonesian-production.yml | 17 +++++++++++++++++ .../trigger-pdf-italian-production.yml | 17 +++++++++++++++++ .../trigger-pdf-japanese-production.yml | 17 +++++++++++++++++ .../workflows/trigger-pdf-korean-production.yml | 17 +++++++++++++++++ .../trigger-pdf-portuguese-production.yml | 17 +++++++++++++++++ .../trigger-pdf-russian-production.yml | 17 +++++++++++++++++ .../trigger-pdf-spanish-production.yml | 17 +++++++++++++++++ .../trigger-pdf-swedish-production.yml | 17 +++++++++++++++++ .../trigger-pdf-turkish-production.yml | 17 +++++++++++++++++ 14 files changed, 238 insertions(+) create mode 100644 .github/workflows/trigger-pdf-arabic-production.yml create mode 100644 .github/workflows/trigger-pdf-chinese-production.yml create mode 100644 .github/workflows/trigger-pdf-english-production.yml create mode 100644 .github/workflows/trigger-pdf-french-production.yml create mode 100644 .github/workflows/trigger-pdf-german-production.yml create mode 100644 .github/workflows/trigger-pdf-indonesian-production.yml create mode 100644 .github/workflows/trigger-pdf-italian-production.yml create mode 100644 .github/workflows/trigger-pdf-japanese-production.yml create mode 100644 .github/workflows/trigger-pdf-korean-production.yml create mode 100644 .github/workflows/trigger-pdf-portuguese-production.yml create mode 100644 .github/workflows/trigger-pdf-russian-production.yml create mode 100644 .github/workflows/trigger-pdf-spanish-production.yml create mode 100644 .github/workflows/trigger-pdf-swedish-production.yml create mode 100644 .github/workflows/trigger-pdf-turkish-production.yml diff --git a/.github/workflows/trigger-pdf-arabic-production.yml b/.github/workflows/trigger-pdf-arabic-production.yml new file mode 100644 index 0000000000..2fa2875e3c --- /dev/null +++ b/.github/workflows/trigger-pdf-arabic-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Arabic Production Build + +on: + push: + branches: [ production ] + paths: [ 'arabic/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-arabic-production diff --git a/.github/workflows/trigger-pdf-chinese-production.yml b/.github/workflows/trigger-pdf-chinese-production.yml new file mode 100644 index 0000000000..4fac7fec74 --- /dev/null +++ b/.github/workflows/trigger-pdf-chinese-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Chinese Production Build + +on: + push: + branches: [ production ] + paths: [ 'chinese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-chinese-production diff --git a/.github/workflows/trigger-pdf-english-production.yml b/.github/workflows/trigger-pdf-english-production.yml new file mode 100644 index 0000000000..0c68153e8c --- /dev/null +++ b/.github/workflows/trigger-pdf-english-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf English Production Build + +on: + push: + branches: [ production ] + paths: [ 'english/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-english-production diff --git a/.github/workflows/trigger-pdf-french-production.yml b/.github/workflows/trigger-pdf-french-production.yml new file mode 100644 index 0000000000..5d630776bd --- /dev/null +++ b/.github/workflows/trigger-pdf-french-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf French Production Build + +on: + push: + branches: [ production ] + paths: [ 'french/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-french-production diff --git a/.github/workflows/trigger-pdf-german-production.yml b/.github/workflows/trigger-pdf-german-production.yml new file mode 100644 index 0000000000..3ca0ab5bdc --- /dev/null +++ b/.github/workflows/trigger-pdf-german-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf German Production Build + +on: + push: + branches: [ production ] + paths: [ 'german/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-german-production diff --git a/.github/workflows/trigger-pdf-indonesian-production.yml b/.github/workflows/trigger-pdf-indonesian-production.yml new file mode 100644 index 0000000000..f4d8a98815 --- /dev/null +++ b/.github/workflows/trigger-pdf-indonesian-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Indonesian Production Build + +on: + push: + branches: [ production ] + paths: [ 'indonesian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-indonesian-production diff --git a/.github/workflows/trigger-pdf-italian-production.yml b/.github/workflows/trigger-pdf-italian-production.yml new file mode 100644 index 0000000000..2d010b2491 --- /dev/null +++ b/.github/workflows/trigger-pdf-italian-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Italian Production Build + +on: + push: + branches: [ production ] + paths: [ 'italian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-italian-production diff --git a/.github/workflows/trigger-pdf-japanese-production.yml b/.github/workflows/trigger-pdf-japanese-production.yml new file mode 100644 index 0000000000..1e87dead7a --- /dev/null +++ b/.github/workflows/trigger-pdf-japanese-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Japanese Production Build + +on: + push: + branches: [ production ] + paths: [ 'japanese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-japanese-production diff --git a/.github/workflows/trigger-pdf-korean-production.yml b/.github/workflows/trigger-pdf-korean-production.yml new file mode 100644 index 0000000000..a273188902 --- /dev/null +++ b/.github/workflows/trigger-pdf-korean-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Korean Production Build + +on: + push: + branches: [ production ] + paths: [ 'korean/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-korean-production diff --git a/.github/workflows/trigger-pdf-portuguese-production.yml b/.github/workflows/trigger-pdf-portuguese-production.yml new file mode 100644 index 0000000000..6bf8fb9ab4 --- /dev/null +++ b/.github/workflows/trigger-pdf-portuguese-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Portuguese Production Build + +on: + push: + branches: [ production ] + paths: [ 'portuguese/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-portuguese-production diff --git a/.github/workflows/trigger-pdf-russian-production.yml b/.github/workflows/trigger-pdf-russian-production.yml new file mode 100644 index 0000000000..783039d7a5 --- /dev/null +++ b/.github/workflows/trigger-pdf-russian-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Russian Production Build + +on: + push: + branches: [ production ] + paths: [ 'russian/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-russian-production diff --git a/.github/workflows/trigger-pdf-spanish-production.yml b/.github/workflows/trigger-pdf-spanish-production.yml new file mode 100644 index 0000000000..e4a278e882 --- /dev/null +++ b/.github/workflows/trigger-pdf-spanish-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Spanish Production Build + +on: + push: + branches: [ production ] + paths: [ 'spanish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-spanish-production diff --git a/.github/workflows/trigger-pdf-swedish-production.yml b/.github/workflows/trigger-pdf-swedish-production.yml new file mode 100644 index 0000000000..b7e5244d17 --- /dev/null +++ b/.github/workflows/trigger-pdf-swedish-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Swedish Production Build + +on: + push: + branches: [ production ] + paths: [ 'swedish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-swedish-production diff --git a/.github/workflows/trigger-pdf-turkish-production.yml b/.github/workflows/trigger-pdf-turkish-production.yml new file mode 100644 index 0000000000..eeaa8548bd --- /dev/null +++ b/.github/workflows/trigger-pdf-turkish-production.yml @@ -0,0 +1,17 @@ +name: Trigger Pdf Turkish Production Build + +on: + push: + branches: [ production ] + paths: [ 'turkish/**' ] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + repository: Aspose/apireference.aspose.com + event-type: build-pdf-turkish-production