From edf441b465985e66f5edf5734199ee3b6d9b1f72 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 3 Mar 2026 10:30:50 +0100 Subject: [PATCH 1/5] Aspose.PDF for Go via C++: ReplaceFont, PageReplaceFont --- english/go-cpp/_index.md | 2 + english/go-cpp/organize/_index.md | 2 + .../go-cpp/organize/pagereplacefont/_index.md | 50 +++++++++++++++++++ english/go-cpp/organize/replacefont/_index.md | 49 ++++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 english/go-cpp/organize/pagereplacefont/_index.md create mode 100644 english/go-cpp/organize/replacefont/_index.md diff --git a/english/go-cpp/_index.md b/english/go-cpp/_index.md index df5d740994..2e35205791 100644 --- a/english/go-cpp/_index.md +++ b/english/go-cpp/_index.md @@ -84,6 +84,7 @@ type Document struct { | [RemoveTextHeaders](./organize/removetextheaders/) | Remove text headers from PDF-document. | | [RemoveTextFooters](./organize/removetextfooters/) | Remove text footers from PDF-document. | | [Crop](./organize/crop/) | Crop pages of a PDF-document. | +| [ReplaceFont](./organize/replacefont/) | Replace font in a PDF-document. | | [PageRotate](./organize/pagerotate/) | Rotate page. | | [PageSetSize](./organize/pagesetsize/) | Set size of page. | | [PageGrayscale](./organize/pagegrayscale/) | Convert page to black and white. | @@ -101,6 +102,7 @@ type Document struct { | [PageRemoveTextHeaders](./organize/pageremovetextheaders/) | Remove text headers in page. | | [PageRemoveTextFooters](./organize/pageremovetextfooters/) | Remove text footers in page. | | [PageCrop](./organize/pagecrop/) | Crop page. | +| [PageReplaceFont](./organize/pagereplacefont/) | Replace font in page. | ## Core PDF functions diff --git a/english/go-cpp/organize/_index.md b/english/go-cpp/organize/_index.md index 6347f9a707..366e77fef1 100644 --- a/english/go-cpp/organize/_index.md +++ b/english/go-cpp/organize/_index.md @@ -37,6 +37,7 @@ url: /go-cpp/organize/ | [RemoveTextHeaders](./removetextheaders/) | Remove text headers from PDF-document. | | [RemoveTextFooters](./removetextfooters/) | Remove text footers from PDF-document. | | [Crop](./crop/) | Crop pages of a PDF-document. | +| [ReplaceFont](./replacefont/) | Replace font in a PDF-document. | | [PageRotate](./pagerotate/) | Rotate page. | | [PageSetSize](./pagesetsize/) | Set size of page. | | [PageGrayscale](./pagegrayscale/) | Convert page to black and white. | @@ -54,6 +55,7 @@ url: /go-cpp/organize/ | [PageRemoveTextHeaders](./pageremovetextheaders/) | Remove text headers in page. | | [PageRemoveTextFooters](./pageremovetextfooters/) | Remove text footers in page. | | [PageCrop](./pagecrop/) | Crop page. | +| [PageReplaceFont](./pagereplacefont/) | Replace font in page. | ## Detailed Description diff --git a/english/go-cpp/organize/pagereplacefont/_index.md b/english/go-cpp/organize/pagereplacefont/_index.md new file mode 100644 index 0000000000..3c9ceb918e --- /dev/null +++ b/english/go-cpp/organize/pagereplacefont/_index.md @@ -0,0 +1,50 @@ +--- +title: "PageReplaceFont" +second_title: Aspose.PDF for Go via C++ +description: "Replace font in page." +type: docs +url: /go-cpp/organize/pagereplacefont/ +--- + +_Replace font in page._ + +```go +func (document *Document) PageReplaceFont(num int32, findFontName, replaceFontName string) error +``` + +**Parameters**: + * **num** - page number of the PDF-document + * **findFontName** - font name to search + * **replaceFontName** - font name to replace + +**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.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + // PageReplaceFont(num int32, findFontName, replaceFontName string) replaces font in page + err = pdf.PageReplaceFont(1, "Times-BoldItalic", "Helvetica-Bold") + if err != nil { + log.Fatal(err) + } + // SaveAs(filename string) saves previously opened PDF-document with new filename + err = pdf.SaveAs("sample_page1_ReplaceFont.pdf") + if err != nil { + log.Fatal(err) + } +} +``` diff --git a/english/go-cpp/organize/replacefont/_index.md b/english/go-cpp/organize/replacefont/_index.md new file mode 100644 index 0000000000..75064a411d --- /dev/null +++ b/english/go-cpp/organize/replacefont/_index.md @@ -0,0 +1,49 @@ +--- +title: "ReplaceFont" +second_title: Aspose.PDF for Go via C++ +description: "Replace font in a PDF-document." +type: docs +url: /go-cpp/organize/replacefont/ +--- + +_Replace font in a PDF-document._ + +```go +func (document *Document) ReplaceFont(findFontName, replaceFontName string) error +``` + +**Parameters**: + * **findFontName** - font name to search + * **replaceFontName** - font name to replace + +**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.pdf") + if err != nil { + log.Fatal(err) + } + // Close() releases allocated resources for PDF-document + defer pdf.Close() + // ReplaceFont(findFontName, replaceFontName string) replaces font in a PDF-document + err = pdf.ReplaceFont("Helvetica", "Courier") + if err != nil { + log.Fatal(err) + } + // SaveAs(filename string) saves previously opened PDF-document with new filename + err = pdf.SaveAs("sample_ReplaceFont.pdf") + if err != nil { + log.Fatal(err) + } +} +``` From 60e555737037873f0ed7d534e11bc4be2cc5574f Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Thu, 5 Mar 2026 11:47:09 +0100 Subject: [PATCH 2/5] Aspose.PDF for Rust via C++: replace_font, page_replace_font --- english/rust-cpp/_index.md | 2 + english/rust-cpp/organize/_index.md | 2 + .../organize/page_replace_font/_index.md | 42 +++++++++++++++++++ .../rust-cpp/organize/replace_font/_index.md | 41 ++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 english/rust-cpp/organize/page_replace_font/_index.md create mode 100644 english/rust-cpp/organize/replace_font/_index.md diff --git a/english/rust-cpp/_index.md b/english/rust-cpp/_index.md index 46077ba145..e85d5be1f2 100644 --- a/english/rust-cpp/_index.md +++ b/english/rust-cpp/_index.md @@ -83,6 +83,7 @@ pub struct Document { /* private fields */ } | [remove_text_headers](./organize/remove_text_headers/) | Remove text headers from PDF-document. | | [remove_text_footers](./organize/remove_text_footers/) | Remove text footers from PDF-document. | | [crop](./organize/crop/) | Crop pages of a PDF-document. | +| [replace_font](./organize/replace_font/) | Replace font in a PDF-document. | | [page_rotate](./organize/page_rotate/) | Rotate a page in the PDF-document. | | [page_set_size](./organize/page_set_size/) | Set the size of a page in the PDF-document. | | [page_grayscale](./organize/page_grayscale/) | Convert page to black and white. | @@ -100,6 +101,7 @@ pub struct Document { /* private fields */ } | [page_remove_text_headers](./organize/page_remove_text_headers/) | Remove text headers in page. | | [page_remove_text_footers](./organize/page_remove_text_footers/) | Remove text footers in page. | | [page_crop](./organize/page_crop/) | Crop a page. | +| [page_replace_font](./organize/page_replace_font/) | Replace font in page. | ## Core PDF functions diff --git a/english/rust-cpp/organize/_index.md b/english/rust-cpp/organize/_index.md index 639af06b78..99c28ba3e6 100644 --- a/english/rust-cpp/organize/_index.md +++ b/english/rust-cpp/organize/_index.md @@ -37,6 +37,7 @@ url: /rust-cpp/organize/ | [remove_text_headers](./remove_text_headers/) | Remove text headers from PDF-document. | | [remove_text_footers](./remove_text_footers/) | Remove text footers from PDF-document. | | [crop](./crop/) | Crop pages of a PDF-document. | +| [replace_font](./replace_font/) | Replace font in a PDF-document. | | [page_rotate](./page_rotate/) | Rotate a page in the PDF-document. | | [page_set_size](./page_set_size/) | Set the size of a page in the PDF-document. | | [page_grayscale](./page_grayscale/) | Convert page to black and white. | @@ -54,6 +55,7 @@ url: /rust-cpp/organize/ | [page_remove_text_headers](./page_remove_text_headers/) | Remove text headers in page. | | [page_remove_text_footers](./page_remove_text_footers/) | Remove text footers in page. | | [page_crop](./page_crop/) | Crop a page. | +| [page_replace_font](./page_replace_font/) | Replace font in page. | ## Detailed Description diff --git a/english/rust-cpp/organize/page_replace_font/_index.md b/english/rust-cpp/organize/page_replace_font/_index.md new file mode 100644 index 0000000000..5a1c7b25cc --- /dev/null +++ b/english/rust-cpp/organize/page_replace_font/_index.md @@ -0,0 +1,42 @@ +--- +title: "page_replace_font" +second_title: Aspose.PDF for Rust via C++ +description: "Replaces font in page." +type: docs +url: /rust-cpp/organize/page_replace_font/ +--- + +_Replaces font in page._ + +```rust +pub fn page_replace_font(&self, num: i32, find_font_name: &str, replace_font_name: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **find_font_name** - the font name to search + * **replace_font_name** - the font name to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Open a PDF-document with filename + let pdf = Document::open("sample.pdf")?; + + // Replace font in page + pdf.page_replace_font(1, "Times-BoldItalic", "Helvetica-Bold")?; + + // Save the previously opened PDF-document with new filename + pdf.save_as("sample_page1_replace_font.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/english/rust-cpp/organize/replace_font/_index.md b/english/rust-cpp/organize/replace_font/_index.md new file mode 100644 index 0000000000..9aaee91664 --- /dev/null +++ b/english/rust-cpp/organize/replace_font/_index.md @@ -0,0 +1,41 @@ +--- +title: "replace_font" +second_title: Aspose.PDF for Rust via C++ +description: "Replaces font in a PDF-document." +type: docs +url: /rust-cpp/organize/replace_font/ +--- + +_Replaces font in a PDF-document._ + +```rust +pub fn replace_font(&self, find_font_name: &str, replace_font_name: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **find_font_name** - the font name to search + * **replace_font_name** - the font name to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Open a PDF-document with filename + let pdf = Document::open("sample.pdf")?; + + // Replace font in a PDF-document. + pdf.replace_font("Helvetica", "Courier")?; + + // Save the previously opened PDF-document with new filename + pdf.save_as("sample_replace_font.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file From 35ff3fe4ababf6f260fc7bb6f29a0cd02b5675a5 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Wed, 11 Mar 2026 09:20:49 +0100 Subject: [PATCH 3/5] Aspose.PDF for JavaScript via C++: AsposePdfRecover --- english/javascript-cpp/_index.md | 1 + english/javascript-cpp/organize/_index.md | 1 + .../organize/asposepdfrecover/_index.md | 77 +++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 english/javascript-cpp/organize/asposepdfrecover/_index.md diff --git a/english/javascript-cpp/_index.md b/english/javascript-cpp/_index.md index 68c6e6086c..471883be1b 100644 --- a/english/javascript-cpp/_index.md +++ b/english/javascript-cpp/_index.md @@ -101,6 +101,7 @@ Such operations are very time consuming, so we recommend using Web Worker. | [AsposePdfDeleteTextHeaders](./organize/asposepdfdeletetextheaders/) | Delete text headers from a PDF-file. | | [AsposePdfDeleteTextFooters](./organize/asposepdfdeletetextfooters/) | Delete text footers from a PDF-file. | | [AsposePdfReplaceTextEx](./organize/asposepdfreplacetextex/) | Replace multiple text fragments in a PDF-file with alignment control. | +| [AsposePdfRecover](./organize/asposepdfrecover/) | Recover a PDF-file structure and trims invalid data. | ## Metadata PDF functions diff --git a/english/javascript-cpp/organize/_index.md b/english/javascript-cpp/organize/_index.md index 7afdd3d719..e699ce0ab2 100644 --- a/english/javascript-cpp/organize/_index.md +++ b/english/javascript-cpp/organize/_index.md @@ -53,6 +53,7 @@ url: /javascript-cpp/organize/ | [AsposePdfDeleteTextHeaders](./asposepdfdeletetextheaders/) | Delete text headers from a PDF-file. | | [AsposePdfDeleteTextFooters](./asposepdfdeletetextfooters/) | Delete text footers from a PDF-file. | | [AsposePdfReplaceTextEx](./asposepdfreplacetextex/) | Replace multiple text fragments in a PDF-file with alignment control. | +| [AsposePdfRecover](./asposepdfrecover/) | Recover a PDF-file structure and trims invalid data. | ## Detailed Description diff --git a/english/javascript-cpp/organize/asposepdfrecover/_index.md b/english/javascript-cpp/organize/asposepdfrecover/_index.md new file mode 100644 index 0000000000..7b00a36341 --- /dev/null +++ b/english/javascript-cpp/organize/asposepdfrecover/_index.md @@ -0,0 +1,77 @@ +--- +title: "AsposePdfRecover" +second_title: Aspose.PDF for JavaScript via C++ +description: "Recover a PDF-file structure and trims invalid data." +type: docs +url: /javascript-cpp/organize/asposepdfrecover/ +--- + +_Recover a PDF-file structure and trims invalid data._ + +```js +function AsposePdfRecover( + fileBlob, + fileName, + fileNameResult +) +``` + +**Parameters**: + +* **fileBlob** Blob object +* **fileName** file name +* **fileNameResult** result file name + +**Return**: +JSON object + * **errorCode** - code error (0 no error) + * **errorText** - text error ("" no error) + * **fileNameResult** - result file name + + +**Web Worker example**: +```js + /*Create Web Worker*/ + const AsposePDFWebWorker = new Worker("AsposePDFforJS.js"); + AsposePDFWebWorker.onerror = evt => console.log(`Error from Web Worker: ${evt.message}`); + AsposePDFWebWorker.onmessage = evt => document.getElementById('output').textContent = + (evt.data == 'ready') ? 'loaded!' : + (evt.data.json.errorCode == 0) ? `Result:\n${DownloadFile(evt.data.json.fileNameResult, "application/pdf", evt.data.params[0])}` : `Error: ${evt.data.json.errorText}`; + + /*Event handler*/ + const ffileRecover = e => { + const file_reader = new FileReader(); + file_reader.onload = event => { + /*Recover a PDF-file structure and trims invalid data and save the "ResultRecover.pdf" - Ask Web Worker*/ + AsposePDFWebWorker.postMessage({ "operation": 'AsposePdfRecover', "params": [event.target.result, e.target.files[0].name, "ResultRecover.pdf"] }, [event.target.result]); + }; + file_reader.readAsArrayBuffer(e.target.files[0]); + }; + + /*Make a link to download the result file*/ + const DownloadFile = (filename, mime, content) => { + mime = mime || "application/octet-stream"; + var link = document.createElement("a"); + link.href = URL.createObjectURL(new Blob([content], {type: mime})); + link.download = filename; + link.innerHTML = "Click here to download the file " + filename; + document.body.appendChild(link); + document.body.appendChild(document.createElement("br")); + return filename; + } +``` +**Simple example**: +```js + var ffileRecover = function (e) { + const file_reader = new FileReader(); + file_reader.onload = (event) => { + /*Recover a PDF-file structure and trims invalid data and save the "ResultRecover.pdf"*/ + const json = AsposePdfRecover(event.target.result, e.target.files[0].name, "ResultRecover.pdf"); + if (json.errorCode == 0) document.getElementById('output').textContent = json.fileNameResult + else document.getElementById('output').textContent = json.errorText; + /*Make a link to download the result file*/ + DownloadFile(json.fileNameResult, "application/pdf"); + }; + file_reader.readAsArrayBuffer(e.target.files[0]); + }; +``` From 79e7cdeea5cf3d42aab0f205de25fb2f3db741d6 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Wed, 11 Mar 2026 10:16:56 +0100 Subject: [PATCH 4/5] Aspose.PDF for Node.js via C++: AsposePdfRecover --- english/nodejs-cpp/_index.md | 1 + english/nodejs-cpp/organize/_index.md | 1 + .../organize/asposepdfrecover/_index.md | 51 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 english/nodejs-cpp/organize/asposepdfrecover/_index.md diff --git a/english/nodejs-cpp/_index.md b/english/nodejs-cpp/_index.md index 01ecd3b8a6..a77a0629b5 100644 --- a/english/nodejs-cpp/_index.md +++ b/english/nodejs-cpp/_index.md @@ -100,6 +100,7 @@ is_root: true | [AsposePdfDeleteTextHeaders](./organize/asposepdfdeletetextheaders/) | Delete text headers from a PDF-file. | | [AsposePdfDeleteTextFooters](./organize/asposepdfdeletetextfooters/) | Delete text footers from a PDF-file. | | [AsposePdfReplaceTextEx](./organize/asposepdfreplacetextex/) | Replace multiple text fragments in a PDF-file with alignment control. | +| [AsposePdfRecover](./organize/asposepdfrecover/) | Recover a PDF-file structure and trims invalid data. | ## Metadata PDF functions diff --git a/english/nodejs-cpp/organize/_index.md b/english/nodejs-cpp/organize/_index.md index c0479a2d9d..7c998c371a 100644 --- a/english/nodejs-cpp/organize/_index.md +++ b/english/nodejs-cpp/organize/_index.md @@ -53,6 +53,7 @@ url: /nodejs-cpp/organize/ | [AsposePdfDeleteTextHeaders](./asposepdfdeletetextheaders/) | Delete text headers from a PDF-file. | | [AsposePdfDeleteTextFooters](./asposepdfdeletetextfooters/) | Delete text footers from a PDF-file. | | [AsposePdfReplaceTextEx](./asposepdfreplacetextex/) | Replace multiple text fragments in a PDF-file with alignment control. | +| [AsposePdfRecover](./asposepdfrecover/) | Recover a PDF-file structure and trims invalid data. | ## Detailed Description diff --git a/english/nodejs-cpp/organize/asposepdfrecover/_index.md b/english/nodejs-cpp/organize/asposepdfrecover/_index.md new file mode 100644 index 0000000000..96360b0c93 --- /dev/null +++ b/english/nodejs-cpp/organize/asposepdfrecover/_index.md @@ -0,0 +1,51 @@ +--- +title: "AsposePdfRecover" +second_title: Aspose.PDF for Node.js via C++ +description: "Recover a PDF-file structure and trims invalid data." +type: docs +url: /nodejs-cpp/organize/asposepdfrecover/ +--- + +_Recover a PDF-file structure and trims invalid data._ + +```js +function AsposePdfRecover( + fileName, + fileNameResult +) +``` + +**Parameters**: + +* **fileName** file name +* **fileNameResult** result file name + +**Return**: +JSON object + * **errorCode** - code error (0 no error) + * **errorText** - text error ("" no error) + * **fileNameResult** - result file name + + +**CommonJS**: + +```js +const AsposePdf = require('asposepdfnodejs'); +const pdf_file = 'Aspose.pdf'; +AsposePdf().then(AsposePdfModule => { + /*Recover a PDF-file structure and trims invalid data and save the "ResultPdfRecover.pdf"*/ + const json = AsposePdfModule.AsposePdfRecover(pdf_file, "ResultPdfRecover.pdf"); + console.log("AsposePdfRecover => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText); +}); +``` + +**ECMAScript/ES6**: + +```js +import AsposePdf from 'asposepdfnodejs'; +const AsposePdfModule = await AsposePdf(); +const pdf_file = 'Aspose.pdf'; +/*Recover a PDF-file structure and trims invalid data and save the "ResultPdfRecover.pdf"*/ +const json = AsposePdfModule.AsposePdfRecover(pdf_file, "ResultPdfRecover.pdf"); +console.log("AsposePdfRecover => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText); +``` \ No newline at end of file From c60424a5d4f3cf862248c84871f3d42772fad780 Mon Sep 17 00:00:00 2001 From: Alexander Malokhovetskiy Date: Tue, 17 Mar 2026 19:22:56 +0200 Subject: [PATCH 5/5] Aspose.PDF for C++ 26.3 --- .../aspose.pdf.text/fontrepository/_index.md | 14 +++++------ .../fontrepository/findfont/_index.md | 24 +++++++++---------- .../fontrepository/openfont/_index.md | 22 ++++++++--------- .../aspose.pdf.text/textfragment/_index.md | 6 ++--- .../textfragment/textfragment/_index.md | 20 ++++++++-------- english/cpp/aspose.pdf/cell/_index.md | 2 +- english/cpp/aspose.pdf/cell/cell/_index.md | 6 ++--- .../cpp/aspose.pdf/pagecollection/_index.md | 2 ++ .../pagecollection/beginupdate/_index.md | 23 ++++++++++++++++++ .../aspose.pdf/pagecollection/clear/_index.md | 2 +- .../pagecollection/contains/_index.md | 2 +- .../pagecollection/copypage/_index.md | 2 +- .../pagecollection/copyto/_index.md | 2 +- .../pagecollection/delete/_index.md | 2 +- .../pagecollection/endupdate/_index.md | 23 ++++++++++++++++++ .../pagecollection/flatten/_index.md | 2 +- .../pagecollection/freememory/_index.md | 2 +- .../pagecollection/get_count/_index.md | 2 +- .../pagecollection/get_isreadonly/_index.md | 2 +- .../get_issynchronized/_index.md | 2 +- .../pagecollection/get_syncroot/_index.md | 2 +- .../pagecollection/getenumerator/_index.md | 2 +- .../pagecollection/idx_get/_index.md | 2 +- .../pagecollection/indexof/_index.md | 2 +- .../pagecollection/insert/_index.md | 2 +- .../pagecollection/remove/_index.md | 2 +- .../cpp/system.threading.tasks/task/_index.md | 1 + .../task/deactivate/_index.md | 23 ++++++++++++++++++ .../task/dispose/_index.md | 2 +- .../task/execute/_index.md | 2 +- .../task/functiont/_index.md | 2 +- .../task/get_asyncstate/_index.md | 2 +- .../task/get_completedtask/_index.md | 2 +- .../task/get_currentid/_index.md | 2 +- .../task/get_exception/_index.md | 2 +- .../task/get_id/_index.md | 2 +- .../task/get_iscanceled/_index.md | 2 +- .../task/get_iscompleted/_index.md | 2 +- .../task/get_isfaulted/_index.md | 2 +- .../task/get_scheduler/_index.md | 2 +- .../task/get_status/_index.md | 2 +- .../task/getawaiter/_index.md | 2 +- .../task/runsynchronously/_index.md | 2 +- .../task/set_function/_index.md | 2 +- .../task/set_scheduler/_index.md | 2 +- .../task/set_status/_index.md | 2 +- .../task/start/_index.md | 2 +- .../task/wait/_index.md | 2 +- 48 files changed, 155 insertions(+), 83 deletions(-) create mode 100644 english/cpp/aspose.pdf/pagecollection/beginupdate/_index.md create mode 100644 english/cpp/aspose.pdf/pagecollection/endupdate/_index.md create mode 100644 english/cpp/system.threading.tasks/task/deactivate/_index.md diff --git a/english/cpp/aspose.pdf.text/fontrepository/_index.md b/english/cpp/aspose.pdf.text/fontrepository/_index.md index 769f533dfd..9c7ea2ced4 100644 --- a/english/cpp/aspose.pdf.text/fontrepository/_index.md +++ b/english/cpp/aspose.pdf.text/fontrepository/_index.md @@ -20,16 +20,16 @@ class FontRepository : public System::Object | Method | Description | | --- | --- | -| static [FindFont](./findfont/)(System::String) | Searches and returns font with specified font name. | -| static [FindFont](./findfont/)(System::String, bool) | Searches and returns font with specified font name ignoring or honoring case sensitivity. | -| static [FindFont](./findfont/)(System::String, FontStyles) | Searches and returns font with specified font name and font style. | -| static [FindFont](./findfont/)(System::String, FontStyles, bool) | Searches and returns font with specified font name and font style ignoring or honoring case sensitivity. | +| static [FindFont](./findfont/)(const System::String\&) | Searches and returns font with specified font name. | +| static [FindFont](./findfont/)(const System::String\&, bool) | Searches and returns font with specified font name ignoring or honoring case sensitivity. | +| static [FindFont](./findfont/)(const System::String\&, FontStyles) | Searches and returns font with specified font name and font style. | +| static [FindFont](./findfont/)(const System::String\&, FontStyles, bool) | Searches and returns font with specified font name and font style ignoring or honoring case sensitivity. | | static [get_Sources](./get_sources/)() | Gets font sources collection. | | static [get_Substitutions](./get_substitutions/)() | Gets font substitution strategies collection. | | static [LoadFonts](./loadfonts/)() | Loads system installed fonts and standard [Pdf](../../aspose.pdf/) fonts. This method was designed to speed up font loading process. By default fonts are loaded on first request for any font. Use of this method loads system and standard [Pdf](../../aspose.pdf/) fonts immediately before any [Pdf](../../aspose.pdf/) document was open. | -| static [OpenFont](./openfont/)(System::SharedPtr\, FontTypes) | Opens font with specified font stream. | -| static [OpenFont](./openfont/)(System::String) | Opens font with specified font file path. | -| static [OpenFont](./openfont/)(System::String, System::String) | Opens font with specified font file path and metrics file path. | +| static [OpenFont](./openfont/)(const System::SharedPtr\\&, const FontTypes\&) | Opens font with specified font stream. | +| static [OpenFont](./openfont/)(const System::String\&) | Opens font with specified font file path. | +| static [OpenFont](./openfont/)(const System::String\&, const System::String\&) | Opens font with specified font file path and metrics file path. | | static [ReloadFonts](./reloadfonts/)() | Reloads all fonts specified by property [Sources](../) | diff --git a/english/cpp/aspose.pdf.text/fontrepository/findfont/_index.md b/english/cpp/aspose.pdf.text/fontrepository/findfont/_index.md index ef6c6ceb49..e23017bf49 100644 --- a/english/cpp/aspose.pdf.text/fontrepository/findfont/_index.md +++ b/english/cpp/aspose.pdf.text/fontrepository/findfont/_index.md @@ -7,19 +7,19 @@ type: docs weight: 100 url: /cpp/aspose.pdf.text/fontrepository/findfont/ --- -## FontRepository::FindFont(System::String, FontStyles) method +## FontRepository::FindFont(const System::String\&, FontStyles) method Searches and returns font with specified font name and font style. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(System::String fontFamilyName, FontStyles stl) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontFamilyName, FontStyles stl) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontFamilyName | System::String | [Font](../../font/) family name. | +| fontFamilyName | const System::String\& | [Font](../../font/) family name. | | stl | FontStyles | [Font](../../font/) style value. | ### ReturnValue @@ -35,19 +35,19 @@ static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(Syste * Class [FontRepository](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## FontRepository::FindFont(System::String, FontStyles, bool) method +## FontRepository::FindFont(const System::String\&, FontStyles, bool) method Searches and returns font with specified font name and font style ignoring or honoring case sensitivity. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(System::String fontFamilyName, FontStyles stl, bool ignoreCase) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontFamilyName, FontStyles stl, bool ignoreCase) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontFamilyName | System::String | [Font](../../font/) family name. | +| fontFamilyName | const System::String\& | [Font](../../font/) family name. | | stl | FontStyles | [Font](../../font/) style value. | | ignoreCase | bool | case sensitivity | @@ -64,19 +64,19 @@ static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(Syste * Class [FontRepository](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## FontRepository::FindFont(System::String) method +## FontRepository::FindFont(const System::String\&) method Searches and returns font with specified font name. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(System::String fontName) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontName) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontName | System::String | [Font](../../font/) name. | +| fontName | const System::String\& | [Font](../../font/) name. | ### ReturnValue @@ -90,19 +90,19 @@ static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(Syste * Class [FontRepository](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## FontRepository::FindFont(System::String, bool) method +## FontRepository::FindFont(const System::String\&, bool) method Searches and returns font with specified font name ignoring or honoring case sensitivity. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(System::String fontName, bool ignoreCase) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontName, bool ignoreCase) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontName | System::String | [Font](../../font/) name. | +| fontName | const System::String\& | [Font](../../font/) name. | | ignoreCase | bool | case sensitivity | ### ReturnValue diff --git a/english/cpp/aspose.pdf.text/fontrepository/openfont/_index.md b/english/cpp/aspose.pdf.text/fontrepository/openfont/_index.md index ccd424f297..54e193f7b0 100644 --- a/english/cpp/aspose.pdf.text/fontrepository/openfont/_index.md +++ b/english/cpp/aspose.pdf.text/fontrepository/openfont/_index.md @@ -7,20 +7,20 @@ type: docs weight: 500 url: /cpp/aspose.pdf.text/fontrepository/openfont/ --- -## FontRepository::OpenFont(System::SharedPtr\, FontTypes) method +## FontRepository::OpenFont(const System::SharedPtr\\&, const FontTypes\&) method Opens font with specified font stream. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(System::SharedPtr fontStream, FontTypes fontType) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(const System::SharedPtr &fontStream, const FontTypes &fontType) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontStream | System::SharedPtr\ | [Font](../../font/) stream. | -| fontType | FontTypes | [Font](../../font/) type value. | +| fontStream | const System::SharedPtr\\& | [Font](../../font/) stream. | +| fontType | const FontTypes\& | [Font](../../font/) type value. | ### ReturnValue @@ -35,19 +35,19 @@ static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(Syste * Class [FontRepository](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## FontRepository::OpenFont(System::String) method +## FontRepository::OpenFont(const System::String\&) method Opens font with specified font file path. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(System::String fontFilePath) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(const System::String &fontFilePath) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontFilePath | System::String | [Font](../../font/) file path. | +| fontFilePath | const System::String\& | [Font](../../font/) file path. | ### ReturnValue @@ -61,20 +61,20 @@ static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(Syste * Class [FontRepository](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## FontRepository::OpenFont(System::String, System::String) method +## FontRepository::OpenFont(const System::String\&, const System::String\&) method Opens font with specified font file path and metrics file path. ```cpp -static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(System::String fontFilePath, System::String metricsFilePath) +static System::SharedPtr Aspose::Pdf::Text::FontRepository::OpenFont(const System::String &fontFilePath, const System::String &metricsFilePath) ``` | Parameter | Type | Description | | --- | --- | --- | -| fontFilePath | System::String | [Font](../../font/) file path. | -| metricsFilePath | System::String | [Font](../../font/) metrics file patrh. | +| fontFilePath | const System::String\& | [Font](../../font/) file path. | +| metricsFilePath | const System::String\& | [Font](../../font/) metrics file patrh. | ### ReturnValue diff --git a/english/cpp/aspose.pdf.text/textfragment/_index.md b/english/cpp/aspose.pdf.text/textfragment/_index.md index f815e378d1..67d80b0a5f 100644 --- a/english/cpp/aspose.pdf.text/textfragment/_index.md +++ b/english/cpp/aspose.pdf.text/textfragment/_index.md @@ -50,9 +50,9 @@ class TextFragment : public Aspose::Pdf::BaseParagraph | [set_VerticalAlignment](./set_verticalalignment/)(Aspose::Pdf::VerticalAlignment) override | Sets a vertical alignment of text fragment. | | [set_WrapLinesCount](./set_wraplinescount/)(int32_t) | Sets wrap lines count for this paragraph(for pdf generation only) | | [TextFragment](./textfragment/)() | Initializes new instance of the [TextFragment](./) object. | -| [TextFragment](./textfragment/)(System::SharedPtr\) | Initializes new instance of the [TextFragment](./) object with predefined [TabStops](../tabstops/) positions. | -| [TextFragment](./textfragment/)(System::String) | Creates [TextFragment](./) object with single [TextSegment](../textsegment/) object inside. Specifies text string inside the segment. | -| [TextFragment](./textfragment/)(System::String, System::SharedPtr\) | Creates [TextFragment](./) object with single [TextSegment](../textsegment/) object inside and predefined [TabStops](../tabstops/) positions. | +| [TextFragment](./textfragment/)(const System::SharedPtr\\&) | Initializes new instance of the [TextFragment](./) object with predefined [TabStops](../tabstops/) positions. | +| [TextFragment](./textfragment/)(const System::String\&) | Creates [TextFragment](./) object with single [TextSegment](../textsegment/) object inside. Specifies text string inside the segment. | +| [TextFragment](./textfragment/)(const System::String\&, const System::SharedPtr\\&) | Creates [TextFragment](./) object with single [TextSegment](../textsegment/) object inside and predefined [TabStops](../tabstops/) positions. | ## Remarks diff --git a/english/cpp/aspose.pdf.text/textfragment/textfragment/_index.md b/english/cpp/aspose.pdf.text/textfragment/textfragment/_index.md index 553ba82e28..1899d3c6ee 100644 --- a/english/cpp/aspose.pdf.text/textfragment/textfragment/_index.md +++ b/english/cpp/aspose.pdf.text/textfragment/textfragment/_index.md @@ -21,19 +21,19 @@ Aspose::Pdf::Text::TextFragment::TextFragment() * Class [TextFragment](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## TextFragment::TextFragment(System::SharedPtr\) constructor +## TextFragment::TextFragment(const System::SharedPtr\\&) constructor Initializes new instance of the [TextFragment](../) object with predefined [TabStops](../../tabstops/) positions. ```cpp -Aspose::Pdf::Text::TextFragment::TextFragment(System::SharedPtr tabStops) +Aspose::Pdf::Text::TextFragment::TextFragment(const System::SharedPtr &tabStops) ``` | Parameter | Type | Description | | --- | --- | --- | -| tabStops | System::SharedPtr\ | Tabulation positions | +| tabStops | const System::SharedPtr\\& | Tabulation positions | ## See Also @@ -42,19 +42,19 @@ Aspose::Pdf::Text::TextFragment::TextFragment(System::SharedPtr tabSto * Class [TextFragment](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## TextFragment::TextFragment(System::String) constructor +## TextFragment::TextFragment(const System::String\&) constructor Creates [TextFragment](../) object with single [TextSegment](../../textsegment/) object inside. Specifies text string inside the segment. ```cpp -Aspose::Pdf::Text::TextFragment::TextFragment(System::String text) +Aspose::Pdf::Text::TextFragment::TextFragment(const System::String &text) ``` | Parameter | Type | Description | | --- | --- | --- | -| text | System::String | [Text](../../) fragment's text. | +| text | const System::String\& | [Text](../../) fragment's text. | ## See Also @@ -62,20 +62,20 @@ Aspose::Pdf::Text::TextFragment::TextFragment(System::String text) * Class [TextFragment](../) * Namespace [Aspose::Pdf::Text](../../) * Library [Aspose.PDF for C++](../../../) -## TextFragment::TextFragment(System::String, System::SharedPtr\) constructor +## TextFragment::TextFragment(const System::String\&, const System::SharedPtr\\&) constructor Creates [TextFragment](../) object with single [TextSegment](../../textsegment/) object inside and predefined [TabStops](../../tabstops/) positions. ```cpp -Aspose::Pdf::Text::TextFragment::TextFragment(System::String text, System::SharedPtr tabStops) +Aspose::Pdf::Text::TextFragment::TextFragment(const System::String &text, const System::SharedPtr &tabStops) ``` | Parameter | Type | Description | | --- | --- | --- | -| text | System::String | [Text](../../) fragment's text. | -| tabStops | System::SharedPtr\ | Tabulation positions | +| text | const System::String\& | [Text](../../) fragment's text. | +| tabStops | const System::SharedPtr\\& | Tabulation positions | ## See Also diff --git a/english/cpp/aspose.pdf/cell/_index.md b/english/cpp/aspose.pdf/cell/_index.md index 86219029b8..dd3c1161c7 100644 --- a/english/cpp/aspose.pdf/cell/_index.md +++ b/english/cpp/aspose.pdf/cell/_index.md @@ -20,7 +20,7 @@ class Cell : public System::ICloneable | Method | Description | | --- | --- | -| [Cell](./cell/)(System::SharedPtr\) | Initializes a new instance of the [Cell](./) class. | +| [Cell](./cell/)(const System::SharedPtr\\&) | Initializes a new instance of the [Cell](./) class. | | [Cell](./cell/)() | Initializes a new instance of the [Cell](./) class. | | [Clone](./clone/)() override | Clone the cell. | | [get_Alignment](./get_alignment/)() const | Gets the alignment. | diff --git a/english/cpp/aspose.pdf/cell/cell/_index.md b/english/cpp/aspose.pdf/cell/cell/_index.md index cc7516da19..edb4b955e4 100644 --- a/english/cpp/aspose.pdf/cell/cell/_index.md +++ b/english/cpp/aspose.pdf/cell/cell/_index.md @@ -21,19 +21,19 @@ Aspose::Pdf::Cell::Cell() * Class [Cell](../) * Namespace [Aspose::Pdf](../../) * Library [Aspose.PDF for C++](../../../) -## Cell::Cell(System::SharedPtr\) constructor +## Cell::Cell(const System::SharedPtr\\&) constructor Initializes a new instance of the [Cell](../) class. ```cpp -Aspose::Pdf::Cell::Cell(System::SharedPtr rect) +Aspose::Pdf::Cell::Cell(const System::SharedPtr &rect) ``` | Parameter | Type | Description | | --- | --- | --- | -| rect | System::SharedPtr\ | The rectangle of the cell in page's coordinates. | +| rect | const System::SharedPtr\\& | The rectangle of the cell in page's coordinates. | ## See Also diff --git a/english/cpp/aspose.pdf/pagecollection/_index.md b/english/cpp/aspose.pdf/pagecollection/_index.md index 857adca9ca..8378673182 100644 --- a/english/cpp/aspose.pdf/pagecollection/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/_index.md @@ -28,6 +28,7 @@ class PageCollection : public System::Collections::Generic::ICollection\>\>\&) | Adds to collection all pages from list. | | [Add](./add/)(const System::ArrayPtr\\>\&) | Adds to collection all pages from array. | +| [BeginUpdate](./beginupdate/)() | Updates when group changes begin. Stops page cache recalculation on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block. | | [Clear](./clear/)() override | Clear page collection. | | [Contains](./contains/)(const System::SharedPtr\\&) const override | Determines whether this instance contains the object. | | [CopyPage](./copypage/)(System::SharedPtr\) | Adds page to collection. | @@ -35,6 +36,7 @@ class PageCollection : public System::Collections::Generic::ICollection) | Delete pages specified which numbers are specified in array. | +| [EndUpdate](./endupdate/)() | Updates when group changes are complete. Restores page cache recalculations on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block. | | [Flatten](./flatten/)() | Removes all fields located on the pages and place their values instead. | | [FreeMemory](./freememory/)() override | Clears cached data. | | [get_Count](./get_count/)() const override | Gets count of pages in the document. | diff --git a/english/cpp/aspose.pdf/pagecollection/beginupdate/_index.md b/english/cpp/aspose.pdf/pagecollection/beginupdate/_index.md new file mode 100644 index 0000000000..d2aed3bcc1 --- /dev/null +++ b/english/cpp/aspose.pdf/pagecollection/beginupdate/_index.md @@ -0,0 +1,23 @@ +--- +title: Aspose::Pdf::PageCollection::BeginUpdate method +linktitle: BeginUpdate +second_title: Aspose.PDF for C++ API Reference +description: 'Aspose::Pdf::PageCollection::BeginUpdate method. Updates when group changes begin. Stops page cache recalculation on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block in C++.' +type: docs +weight: 300 +url: /cpp/aspose.pdf/pagecollection/beginupdate/ +--- +## PageCollection::BeginUpdate method + + +Updates when group changes begin. Stops page cache recalculation on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block. + +```cpp +void Aspose::Pdf::PageCollection::BeginUpdate() +``` + +## See Also + +* Class [PageCollection](../) +* Namespace [Aspose::Pdf](../../) +* Library [Aspose.PDF for C++](../../../) diff --git a/english/cpp/aspose.pdf/pagecollection/clear/_index.md b/english/cpp/aspose.pdf/pagecollection/clear/_index.md index 8b72a925dd..dbd5014581 100644 --- a/english/cpp/aspose.pdf/pagecollection/clear/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/clear/_index.md @@ -4,7 +4,7 @@ linktitle: Clear second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Clear method. Clear page collection in C++.' type: docs -weight: 300 +weight: 400 url: /cpp/aspose.pdf/pagecollection/clear/ --- ## PageCollection::Clear method diff --git a/english/cpp/aspose.pdf/pagecollection/contains/_index.md b/english/cpp/aspose.pdf/pagecollection/contains/_index.md index 7b339b1175..1816df5961 100644 --- a/english/cpp/aspose.pdf/pagecollection/contains/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/contains/_index.md @@ -4,7 +4,7 @@ linktitle: Contains second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Contains method. Determines whether this instance contains the object in C++.' type: docs -weight: 400 +weight: 500 url: /cpp/aspose.pdf/pagecollection/contains/ --- ## PageCollection::Contains method diff --git a/english/cpp/aspose.pdf/pagecollection/copypage/_index.md b/english/cpp/aspose.pdf/pagecollection/copypage/_index.md index 1a28b9daed..ee8d65caea 100644 --- a/english/cpp/aspose.pdf/pagecollection/copypage/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/copypage/_index.md @@ -4,7 +4,7 @@ linktitle: CopyPage second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::CopyPage method. Adds page to collection in C++.' type: docs -weight: 500 +weight: 600 url: /cpp/aspose.pdf/pagecollection/copypage/ --- ## PageCollection::CopyPage method diff --git a/english/cpp/aspose.pdf/pagecollection/copyto/_index.md b/english/cpp/aspose.pdf/pagecollection/copyto/_index.md index d640145964..98320d62f3 100644 --- a/english/cpp/aspose.pdf/pagecollection/copyto/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/copyto/_index.md @@ -4,7 +4,7 @@ linktitle: CopyTo second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::CopyTo method. Copyies pages into document in C++.' type: docs -weight: 600 +weight: 700 url: /cpp/aspose.pdf/pagecollection/copyto/ --- ## PageCollection::CopyTo method diff --git a/english/cpp/aspose.pdf/pagecollection/delete/_index.md b/english/cpp/aspose.pdf/pagecollection/delete/_index.md index f2de4dafaa..82ad42b092 100644 --- a/english/cpp/aspose.pdf/pagecollection/delete/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/delete/_index.md @@ -4,7 +4,7 @@ linktitle: Delete second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Delete method. Deletes all pages from collection in C++.' type: docs -weight: 700 +weight: 800 url: /cpp/aspose.pdf/pagecollection/delete/ --- ## PageCollection::Delete() method diff --git a/english/cpp/aspose.pdf/pagecollection/endupdate/_index.md b/english/cpp/aspose.pdf/pagecollection/endupdate/_index.md new file mode 100644 index 0000000000..5a64f09098 --- /dev/null +++ b/english/cpp/aspose.pdf/pagecollection/endupdate/_index.md @@ -0,0 +1,23 @@ +--- +title: Aspose::Pdf::PageCollection::EndUpdate method +linktitle: EndUpdate +second_title: Aspose.PDF for C++ API Reference +description: 'Aspose::Pdf::PageCollection::EndUpdate method. Updates when group changes are complete. Restores page cache recalculations on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block in C++.' +type: docs +weight: 900 +url: /cpp/aspose.pdf/pagecollection/endupdate/ +--- +## PageCollection::EndUpdate method + + +Updates when group changes are complete. Restores page cache recalculations on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block. + +```cpp +void Aspose::Pdf::PageCollection::EndUpdate() +``` + +## See Also + +* Class [PageCollection](../) +* Namespace [Aspose::Pdf](../../) +* Library [Aspose.PDF for C++](../../../) diff --git a/english/cpp/aspose.pdf/pagecollection/flatten/_index.md b/english/cpp/aspose.pdf/pagecollection/flatten/_index.md index a5028242e1..cec128cc65 100644 --- a/english/cpp/aspose.pdf/pagecollection/flatten/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/flatten/_index.md @@ -4,7 +4,7 @@ linktitle: Flatten second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Flatten method. Removes all fields located on the pages and place their values instead in C++.' type: docs -weight: 800 +weight: 1000 url: /cpp/aspose.pdf/pagecollection/flatten/ --- ## PageCollection::Flatten method diff --git a/english/cpp/aspose.pdf/pagecollection/freememory/_index.md b/english/cpp/aspose.pdf/pagecollection/freememory/_index.md index c246cd841c..993ab30f8f 100644 --- a/english/cpp/aspose.pdf/pagecollection/freememory/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/freememory/_index.md @@ -4,7 +4,7 @@ linktitle: FreeMemory second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::FreeMemory method. Clears cached data in C++.' type: docs -weight: 900 +weight: 1100 url: /cpp/aspose.pdf/pagecollection/freememory/ --- ## PageCollection::FreeMemory method diff --git a/english/cpp/aspose.pdf/pagecollection/get_count/_index.md b/english/cpp/aspose.pdf/pagecollection/get_count/_index.md index 10c6f36201..62be56df1f 100644 --- a/english/cpp/aspose.pdf/pagecollection/get_count/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/get_count/_index.md @@ -4,7 +4,7 @@ linktitle: get_Count second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::get_Count method. Gets count of pages in the document in C++.' type: docs -weight: 1000 +weight: 1200 url: /cpp/aspose.pdf/pagecollection/get_count/ --- ## PageCollection::get_Count method diff --git a/english/cpp/aspose.pdf/pagecollection/get_isreadonly/_index.md b/english/cpp/aspose.pdf/pagecollection/get_isreadonly/_index.md index c482634c29..ab939fea1e 100644 --- a/english/cpp/aspose.pdf/pagecollection/get_isreadonly/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/get_isreadonly/_index.md @@ -4,7 +4,7 @@ linktitle: get_IsReadOnly second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::get_IsReadOnly method. Gets value indicating of collection is readonly. Always returns false in C++.' type: docs -weight: 1100 +weight: 1300 url: /cpp/aspose.pdf/pagecollection/get_isreadonly/ --- ## PageCollection::get_IsReadOnly method diff --git a/english/cpp/aspose.pdf/pagecollection/get_issynchronized/_index.md b/english/cpp/aspose.pdf/pagecollection/get_issynchronized/_index.md index c984929c80..345b28c9af 100644 --- a/english/cpp/aspose.pdf/pagecollection/get_issynchronized/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/get_issynchronized/_index.md @@ -4,7 +4,7 @@ linktitle: get_IsSynchronized second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::get_IsSynchronized method. Returns true of object is synchorinzed in C++.' type: docs -weight: 1200 +weight: 1400 url: /cpp/aspose.pdf/pagecollection/get_issynchronized/ --- ## PageCollection::get_IsSynchronized method diff --git a/english/cpp/aspose.pdf/pagecollection/get_syncroot/_index.md b/english/cpp/aspose.pdf/pagecollection/get_syncroot/_index.md index ff93f327cf..5408c41da1 100644 --- a/english/cpp/aspose.pdf/pagecollection/get_syncroot/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/get_syncroot/_index.md @@ -4,7 +4,7 @@ linktitle: get_SyncRoot second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::get_SyncRoot method. Gets synchronization object of the collection in C++.' type: docs -weight: 1300 +weight: 1500 url: /cpp/aspose.pdf/pagecollection/get_syncroot/ --- ## PageCollection::get_SyncRoot method diff --git a/english/cpp/aspose.pdf/pagecollection/getenumerator/_index.md b/english/cpp/aspose.pdf/pagecollection/getenumerator/_index.md index 3a084838f2..c6602ebd58 100644 --- a/english/cpp/aspose.pdf/pagecollection/getenumerator/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/getenumerator/_index.md @@ -4,7 +4,7 @@ linktitle: GetEnumerator second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::GetEnumerator method. Returns enumerator of pages in C++.' type: docs -weight: 1400 +weight: 1600 url: /cpp/aspose.pdf/pagecollection/getenumerator/ --- ## PageCollection::GetEnumerator method diff --git a/english/cpp/aspose.pdf/pagecollection/idx_get/_index.md b/english/cpp/aspose.pdf/pagecollection/idx_get/_index.md index 524ad87a57..a0d29f86d8 100644 --- a/english/cpp/aspose.pdf/pagecollection/idx_get/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/idx_get/_index.md @@ -4,7 +4,7 @@ linktitle: idx_get second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::idx_get method. Gets page by index in C++.' type: docs -weight: 1500 +weight: 1700 url: /cpp/aspose.pdf/pagecollection/idx_get/ --- ## PageCollection::idx_get method diff --git a/english/cpp/aspose.pdf/pagecollection/indexof/_index.md b/english/cpp/aspose.pdf/pagecollection/indexof/_index.md index 87484c4ba0..9dd2a47e2f 100644 --- a/english/cpp/aspose.pdf/pagecollection/indexof/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/indexof/_index.md @@ -4,7 +4,7 @@ linktitle: IndexOf second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::IndexOf method. Returns index of the specified page in C++.' type: docs -weight: 1600 +weight: 1800 url: /cpp/aspose.pdf/pagecollection/indexof/ --- ## PageCollection::IndexOf method diff --git a/english/cpp/aspose.pdf/pagecollection/insert/_index.md b/english/cpp/aspose.pdf/pagecollection/insert/_index.md index c75945e056..c7d6bcef19 100644 --- a/english/cpp/aspose.pdf/pagecollection/insert/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/insert/_index.md @@ -4,7 +4,7 @@ linktitle: Insert second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Insert method. Insert an empty page into the collection at the specified position. If the document already contains pages with varying sizes, the size of the most frequently occurring page will be selected. In the case there are only two different pages, the size of the first page will be used in C++.' type: docs -weight: 1700 +weight: 1900 url: /cpp/aspose.pdf/pagecollection/insert/ --- ## PageCollection::Insert(int32_t) method diff --git a/english/cpp/aspose.pdf/pagecollection/remove/_index.md b/english/cpp/aspose.pdf/pagecollection/remove/_index.md index 3009e6f5a5..cbab33d1e7 100644 --- a/english/cpp/aspose.pdf/pagecollection/remove/_index.md +++ b/english/cpp/aspose.pdf/pagecollection/remove/_index.md @@ -5,7 +5,7 @@ second_title: Aspose.PDF for C++ API Reference description: 'Aspose::Pdf::PageCollection::Remove method. Removes the specified item, throws NotSupportedException in C++.' type: docs -weight: 1800 +weight: 2000 url: /cpp/aspose.pdf/pagecollection/remove/ --- ## PageCollection::Remove method diff --git a/english/cpp/system.threading.tasks/task/_index.md b/english/cpp/system.threading.tasks/task/_index.md index 7c7f2dc9ee..fd4280574f 100644 --- a/english/cpp/system.threading.tasks/task/_index.md +++ b/english/cpp/system.threading.tasks/task/_index.md @@ -27,6 +27,7 @@ class Task : public System::IDisposable | [ConfigureAwait](./configureawait/)(bool) const | Configures how awaits on this task should behave regarding context capture. | | [ContinueWith](./continuewith/)(const Action\\&) | Creates a continuation that executes when the task completes. | | [ContinueWith](./continuewith/)(const Func\\&) | Creates a continuation that executes when the task completes. | +| [Deactivate](./deactivate/)() | Deactivates the task for execution on its curent scheduler if any. | | [Dispose](./dispose/)() override | Releases resources associated with the task. | | [Execute](./execute/)() | Executes the task's function. | | [get_AsyncState](./get_asyncstate/)() const | Gets the user-defined state object associated with the task. | diff --git a/english/cpp/system.threading.tasks/task/deactivate/_index.md b/english/cpp/system.threading.tasks/task/deactivate/_index.md new file mode 100644 index 0000000000..954e6768db --- /dev/null +++ b/english/cpp/system.threading.tasks/task/deactivate/_index.md @@ -0,0 +1,23 @@ +--- +title: System::Threading::Tasks::Task::Deactivate method +linktitle: Deactivate +second_title: Aspose.PDF for C++ API Reference +description: 'System::Threading::Tasks::Task::Deactivate method. Deactivates the task for execution on its curent scheduler if any in C++.' +type: docs +weight: 900 +url: /cpp/system.threading.tasks/task/deactivate/ +--- +## Task::Deactivate method + + +Deactivates the task for execution on its curent scheduler if any. + +```cpp +void System::Threading::Tasks::Task::Deactivate() +``` + +## See Also + +* Class [Task](../) +* Namespace [System::Threading::Tasks](../../) +* Library [Aspose.PDF for C++](../../../) diff --git a/english/cpp/system.threading.tasks/task/dispose/_index.md b/english/cpp/system.threading.tasks/task/dispose/_index.md index 849f43c8ef..95356b4196 100644 --- a/english/cpp/system.threading.tasks/task/dispose/_index.md +++ b/english/cpp/system.threading.tasks/task/dispose/_index.md @@ -4,7 +4,7 @@ linktitle: Dispose second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::Dispose method. Releases resources associated with the task in C++.' type: docs -weight: 900 +weight: 1000 url: /cpp/system.threading.tasks/task/dispose/ --- ## Task::Dispose method diff --git a/english/cpp/system.threading.tasks/task/execute/_index.md b/english/cpp/system.threading.tasks/task/execute/_index.md index 0210014981..4539543324 100644 --- a/english/cpp/system.threading.tasks/task/execute/_index.md +++ b/english/cpp/system.threading.tasks/task/execute/_index.md @@ -4,7 +4,7 @@ linktitle: Execute second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::Execute method. Executes the task''s function in C++.' type: docs -weight: 1000 +weight: 1100 url: /cpp/system.threading.tasks/task/execute/ --- ## Task::Execute method diff --git a/english/cpp/system.threading.tasks/task/functiont/_index.md b/english/cpp/system.threading.tasks/task/functiont/_index.md index 3320512a7f..44e3308b1f 100644 --- a/english/cpp/system.threading.tasks/task/functiont/_index.md +++ b/english/cpp/system.threading.tasks/task/functiont/_index.md @@ -4,7 +4,7 @@ linktitle: FunctionT second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::FunctionT typedef. Internal implementation. Not for user code in C++.' type: docs -weight: 2800 +weight: 2900 url: /cpp/system.threading.tasks/task/functiont/ --- ## FunctionT typedef diff --git a/english/cpp/system.threading.tasks/task/get_asyncstate/_index.md b/english/cpp/system.threading.tasks/task/get_asyncstate/_index.md index b32e281c6b..a1028c9fea 100644 --- a/english/cpp/system.threading.tasks/task/get_asyncstate/_index.md +++ b/english/cpp/system.threading.tasks/task/get_asyncstate/_index.md @@ -4,7 +4,7 @@ linktitle: get_AsyncState second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_AsyncState method. Gets the user-defined state object associated with the task in C++.' type: docs -weight: 1100 +weight: 1200 url: /cpp/system.threading.tasks/task/get_asyncstate/ --- ## Task::get_AsyncState method diff --git a/english/cpp/system.threading.tasks/task/get_completedtask/_index.md b/english/cpp/system.threading.tasks/task/get_completedtask/_index.md index ce019cdfd9..770e626920 100644 --- a/english/cpp/system.threading.tasks/task/get_completedtask/_index.md +++ b/english/cpp/system.threading.tasks/task/get_completedtask/_index.md @@ -4,7 +4,7 @@ linktitle: get_CompletedTask second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_CompletedTask method. Gets a completed task (singleton) in C++.' type: docs -weight: 2600 +weight: 2700 url: /cpp/system.threading.tasks/task/get_completedtask/ --- ## Task::get_CompletedTask method diff --git a/english/cpp/system.threading.tasks/task/get_currentid/_index.md b/english/cpp/system.threading.tasks/task/get_currentid/_index.md index 0968ad083a..581067059a 100644 --- a/english/cpp/system.threading.tasks/task/get_currentid/_index.md +++ b/english/cpp/system.threading.tasks/task/get_currentid/_index.md @@ -4,7 +4,7 @@ linktitle: get_CurrentId second_title: Aspose.PDF for C++ API Reference description: 'How to use get_CurrentId method of System::Threading::Tasks::Task class in C++.' type: docs -weight: 2700 +weight: 2800 url: /cpp/system.threading.tasks/task/get_currentid/ --- ## Task::get_CurrentId method diff --git a/english/cpp/system.threading.tasks/task/get_exception/_index.md b/english/cpp/system.threading.tasks/task/get_exception/_index.md index 010e3a80b5..ed74d08b1e 100644 --- a/english/cpp/system.threading.tasks/task/get_exception/_index.md +++ b/english/cpp/system.threading.tasks/task/get_exception/_index.md @@ -4,7 +4,7 @@ linktitle: get_Exception second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_Exception method. Gets the ID for task in C++.' type: docs -weight: 1200 +weight: 1300 url: /cpp/system.threading.tasks/task/get_exception/ --- ## Task::get_Exception method diff --git a/english/cpp/system.threading.tasks/task/get_id/_index.md b/english/cpp/system.threading.tasks/task/get_id/_index.md index 4af7fa05c2..d043e5e0a7 100644 --- a/english/cpp/system.threading.tasks/task/get_id/_index.md +++ b/english/cpp/system.threading.tasks/task/get_id/_index.md @@ -4,7 +4,7 @@ linktitle: get_Id second_title: Aspose.PDF for C++ API Reference description: 'How to use get_Id method of System::Threading::Tasks::Task class in C++.' type: docs -weight: 1300 +weight: 1400 url: /cpp/system.threading.tasks/task/get_id/ --- ## Task::get_Id method diff --git a/english/cpp/system.threading.tasks/task/get_iscanceled/_index.md b/english/cpp/system.threading.tasks/task/get_iscanceled/_index.md index 7463f8863d..f6ce748c8a 100644 --- a/english/cpp/system.threading.tasks/task/get_iscanceled/_index.md +++ b/english/cpp/system.threading.tasks/task/get_iscanceled/_index.md @@ -4,7 +4,7 @@ linktitle: get_IsCanceled second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_IsCanceled method. Gets whether the task completed due to cancellation in C++.' type: docs -weight: 1400 +weight: 1500 url: /cpp/system.threading.tasks/task/get_iscanceled/ --- ## Task::get_IsCanceled method diff --git a/english/cpp/system.threading.tasks/task/get_iscompleted/_index.md b/english/cpp/system.threading.tasks/task/get_iscompleted/_index.md index 453eb436a1..7528070d61 100644 --- a/english/cpp/system.threading.tasks/task/get_iscompleted/_index.md +++ b/english/cpp/system.threading.tasks/task/get_iscompleted/_index.md @@ -4,7 +4,7 @@ linktitle: get_IsCompleted second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_IsCompleted method. Gets whether the task has completed in C++.' type: docs -weight: 1500 +weight: 1600 url: /cpp/system.threading.tasks/task/get_iscompleted/ --- ## Task::get_IsCompleted method diff --git a/english/cpp/system.threading.tasks/task/get_isfaulted/_index.md b/english/cpp/system.threading.tasks/task/get_isfaulted/_index.md index ca7baf461f..21007c61b6 100644 --- a/english/cpp/system.threading.tasks/task/get_isfaulted/_index.md +++ b/english/cpp/system.threading.tasks/task/get_isfaulted/_index.md @@ -4,7 +4,7 @@ linktitle: get_IsFaulted second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_IsFaulted method. Gets whether the task completed due to an unhandled exception in C++.' type: docs -weight: 1600 +weight: 1700 url: /cpp/system.threading.tasks/task/get_isfaulted/ --- ## Task::get_IsFaulted method diff --git a/english/cpp/system.threading.tasks/task/get_scheduler/_index.md b/english/cpp/system.threading.tasks/task/get_scheduler/_index.md index 5e3b87acbb..55ce7d2d06 100644 --- a/english/cpp/system.threading.tasks/task/get_scheduler/_index.md +++ b/english/cpp/system.threading.tasks/task/get_scheduler/_index.md @@ -4,7 +4,7 @@ linktitle: get_Scheduler second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_Scheduler method. Gets the scheduler associated with this task in C++.' type: docs -weight: 1700 +weight: 1800 url: /cpp/system.threading.tasks/task/get_scheduler/ --- ## Task::get_Scheduler method diff --git a/english/cpp/system.threading.tasks/task/get_status/_index.md b/english/cpp/system.threading.tasks/task/get_status/_index.md index aff5c1b108..9bebd80819 100644 --- a/english/cpp/system.threading.tasks/task/get_status/_index.md +++ b/english/cpp/system.threading.tasks/task/get_status/_index.md @@ -4,7 +4,7 @@ linktitle: get_Status second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::get_Status method. Gets the current status of the task in C++.' type: docs -weight: 1800 +weight: 1900 url: /cpp/system.threading.tasks/task/get_status/ --- ## Task::get_Status method diff --git a/english/cpp/system.threading.tasks/task/getawaiter/_index.md b/english/cpp/system.threading.tasks/task/getawaiter/_index.md index 1dabbb1552..871f715877 100644 --- a/english/cpp/system.threading.tasks/task/getawaiter/_index.md +++ b/english/cpp/system.threading.tasks/task/getawaiter/_index.md @@ -4,7 +4,7 @@ linktitle: GetAwaiter second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::GetAwaiter method. Gets an awaiter for this task for use with Await in C++.' type: docs -weight: 1900 +weight: 2000 url: /cpp/system.threading.tasks/task/getawaiter/ --- ## Task::GetAwaiter method diff --git a/english/cpp/system.threading.tasks/task/runsynchronously/_index.md b/english/cpp/system.threading.tasks/task/runsynchronously/_index.md index b3990a62c9..91a04ef64c 100644 --- a/english/cpp/system.threading.tasks/task/runsynchronously/_index.md +++ b/english/cpp/system.threading.tasks/task/runsynchronously/_index.md @@ -4,7 +4,7 @@ linktitle: RunSynchronously second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::RunSynchronously method. Runs the task synchronously on the current thread in C++.' type: docs -weight: 2000 +weight: 2100 url: /cpp/system.threading.tasks/task/runsynchronously/ --- ## Task::RunSynchronously() method diff --git a/english/cpp/system.threading.tasks/task/set_function/_index.md b/english/cpp/system.threading.tasks/task/set_function/_index.md index 4e5d3dbb89..e20be389e2 100644 --- a/english/cpp/system.threading.tasks/task/set_function/_index.md +++ b/english/cpp/system.threading.tasks/task/set_function/_index.md @@ -4,7 +4,7 @@ linktitle: set_Function second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::set_Function method. Sets the internal function to execute in C++.' type: docs -weight: 2100 +weight: 2200 url: /cpp/system.threading.tasks/task/set_function/ --- ## Task::set_Function method diff --git a/english/cpp/system.threading.tasks/task/set_scheduler/_index.md b/english/cpp/system.threading.tasks/task/set_scheduler/_index.md index 65fe69e943..ee67a78fa9 100644 --- a/english/cpp/system.threading.tasks/task/set_scheduler/_index.md +++ b/english/cpp/system.threading.tasks/task/set_scheduler/_index.md @@ -4,7 +4,7 @@ linktitle: set_Scheduler second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::set_Scheduler method. Sets the scheduler associated with this task in C++.' type: docs -weight: 2200 +weight: 2300 url: /cpp/system.threading.tasks/task/set_scheduler/ --- ## Task::set_Scheduler method diff --git a/english/cpp/system.threading.tasks/task/set_status/_index.md b/english/cpp/system.threading.tasks/task/set_status/_index.md index 81e8c8c8aa..735c09503f 100644 --- a/english/cpp/system.threading.tasks/task/set_status/_index.md +++ b/english/cpp/system.threading.tasks/task/set_status/_index.md @@ -4,7 +4,7 @@ linktitle: set_Status second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::set_Status method. Sets the task status in C++.' type: docs -weight: 2300 +weight: 2400 url: /cpp/system.threading.tasks/task/set_status/ --- ## Task::set_Status method diff --git a/english/cpp/system.threading.tasks/task/start/_index.md b/english/cpp/system.threading.tasks/task/start/_index.md index 11c3c852f9..776a690a35 100644 --- a/english/cpp/system.threading.tasks/task/start/_index.md +++ b/english/cpp/system.threading.tasks/task/start/_index.md @@ -4,7 +4,7 @@ linktitle: Start second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::Start method. Starts the task execution using the default scheduler in C++.' type: docs -weight: 2400 +weight: 2500 url: /cpp/system.threading.tasks/task/start/ --- ## Task::Start() method diff --git a/english/cpp/system.threading.tasks/task/wait/_index.md b/english/cpp/system.threading.tasks/task/wait/_index.md index 63e0620f26..b411ce827a 100644 --- a/english/cpp/system.threading.tasks/task/wait/_index.md +++ b/english/cpp/system.threading.tasks/task/wait/_index.md @@ -4,7 +4,7 @@ linktitle: Wait second_title: Aspose.PDF for C++ API Reference description: 'System::Threading::Tasks::Task::Wait method. Waits for the task to complete in C++.' type: docs -weight: 2500 +weight: 2600 url: /cpp/system.threading.tasks/task/wait/ --- ## Task::Wait() method