Skip to content

Commit da00e4a

Browse files
authored
Merge pull request #81 from aspose-pdf/main
feat: Aspose.PDF NET 25.7
2 parents 04ae9bd + e7373f8 commit da00e4a

File tree

311 files changed

+1282
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+1282
-308
lines changed

english/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Developers can enhance the efficiency of their document processing tasks by util
5454

5555
These are links to some useful resources:
5656
- [Aspose.PDF for Java API Reference](/pdf/java/)
57+
- [Aspose.PDF for Java API Tutorials](https://tutorials.aspose.com/pdf/java/)
5758

5859
## Aspose.PDF for C++ API Reference
5960

english/go-cpp/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type Document struct {
3838
| [SaveBooklet](./convert/savebooklet/) | Convert and save the previously opened PDF-document as booklet PDF-document. |
3939
| [SaveNUp](./convert/savenup/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
4040
| [SaveMarkdown](./convert/savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
41+
| [SaveTiff](./convert/savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
4142
| [ExportFdf](./convert/exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
4243
| [ExportXfdf](./convert/exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
4344
| [ExportXml](./convert/exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |

english/go-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ url: /go-cpp/convert/
2121
| [SaveBooklet](./savebooklet/) | Convert and save the previously opened PDF-document as booklet PDF-document. |
2222
| [SaveNUp](./savenup/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
2323
| [SaveMarkdown](./savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
24+
| [SaveTiff](./savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
2425
| [ExportFdf](./exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
2526
| [ExportXfdf](./exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
2627
| [ExportXml](./exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "SaveTiff"
3+
second_title: Aspose.PDF for Go via C++
4+
description: "Convert and save the previously opened PDF-document as Tiff-document."
5+
type: docs
6+
url: /go-cpp/convert/savetiff/
7+
---
8+
9+
_Convert and save the previously opened PDF-document as Tiff-document._
10+
11+
```go
12+
func (document *Document) SaveTiff(filename string, resolution_dpi ...int32) error
13+
```
14+
15+
**Parameters**:
16+
* **filename** - new filename
17+
* **resolution_dpi (optional)** - resolution in DPI of the resulting file, defaults to 100 DPI
18+
19+
**Return**:
20+
* **error** - contains an error or nil if absent
21+
22+
23+
**Example**:
24+
```go
25+
package main
26+
27+
import "github.com/aspose-pdf/aspose-pdf-go-cpp"
28+
import "log"
29+
30+
func main() {
31+
// Open(filename string) opens a PDF-document with filename
32+
pdf, err := asposepdf.Open("sample.pdf")
33+
if err != nil {
34+
log.Fatal(err)
35+
}
36+
// SaveTiff(filename string) saves previously opened PDF-document as Tiff-document with filename
37+
err = pdf.SaveTiff("sample.tiff")
38+
if err != nil {
39+
log.Fatal(err)
40+
}
41+
// Close() releases allocated resources for PDF-document
42+
defer pdf.Close()
43+
}
44+
```

english/javascript-cpp/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Such operations are very time consuming, so we recommend using Web Worker.
4242
| [AsposePdfExportXfdf](./convert/asposepdfexportxfdf/) | Export from a PDF-file with AcroForm to XFDF.|
4343
| [AsposePdfExportXml](./convert/asposepdfexportxml/) | Export from a PDF-file with AcroForm to XML.|
4444
| [AsposePdfPagesToPDF](./convert/asposepdfpagestopdf/) | Convert a PDF-file to PDF (separate pages). |
45+
| [AsposePdfToMarkdown](./convert/asposepdftomarkdown/) | Convert a PDF-file to Markdown. |
4546

4647

4748
## Convert to PDF functions

english/javascript-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ url: /javascript-cpp/convert/
3535
| [AsposePdfExportXfdf](./asposepdfexportxfdf/) | Export from a PDF-file with AcroForm to XFDF.|
3636
| [AsposePdfExportXml](./asposepdfexportxml/) | Export from a PDF-file with AcroForm to XML.|
3737
| [AsposePdfPagesToPDF](./asposepdfpagestopdf/) | Convert a PDF-file to PDF (separate pages). |
38+
| [AsposePdfToMarkdown](./asposepdftomarkdown/) | Convert a PDF-file to Markdown. |
3839

3940

4041
## Detailed Description
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: "AsposePdfToMarkdown"
3+
second_title: Aspose.PDF for JavaScript via C++
4+
description: "Convert a PDF-file to Markdown."
5+
type: docs
6+
url: /javascript-cpp/convert/asposepdftomarkdown/
7+
---
8+
9+
_Convert a PDF-file to Markdown._
10+
11+
```js
12+
function AsposePdfToMarkdown(
13+
fileBlob,
14+
fileName,
15+
fileNameResult
16+
)
17+
```
18+
19+
**Parameters**:
20+
21+
* **fileBlob** Blob object
22+
* **fileName** file name
23+
* **fileNameResult** result file name
24+
25+
**Return**:
26+
JSON object
27+
* **errorCode** - code error (0 no error)
28+
* **errorText** - text error ("" no error)
29+
* **fileNameResult** - result file name
30+
31+
32+
**Web Worker example**:
33+
```js
34+
/*Create Web Worker*/
35+
const AsposePDFWebWorker = new Worker("AsposePDFforJS.js");
36+
AsposePDFWebWorker.onerror = evt => console.log(`Error from Web Worker: ${evt.message}`);
37+
AsposePDFWebWorker.onmessage = evt => document.getElementById('output').textContent =
38+
(evt.data == 'ready') ? 'loaded!' :
39+
(evt.data.json.errorCode == 0) ? `Result:\n${DownloadFile(evt.data.json.fileNameResult, "text/markdown", evt.data.params[0])}` : `Error: ${evt.data.json.errorText}`;
40+
41+
/*Event handler*/
42+
const ffileToMarkdown = e => {
43+
const file_reader = new FileReader();
44+
file_reader.onload = event => {
45+
/*Convert a PDF-file to Markdown and save the "ResultPDFtoMarkdown.md" - Ask Web Worker*/
46+
AsposePDFWebWorker.postMessage({ "operation": 'AsposePdfToMarkdown', "params": [event.target.result, e.target.files[0].name, "ResultPDFtoMarkdown.md"] }, [event.target.result]);
47+
};
48+
file_reader.readAsArrayBuffer(e.target.files[0]);
49+
};
50+
51+
/*Make a link to download the result file*/
52+
const DownloadFile = (filename, mime, content) => {
53+
mime = mime || "application/octet-stream";
54+
var link = document.createElement("a");
55+
link.href = URL.createObjectURL(new Blob([content], {type: mime}));
56+
link.download = filename;
57+
link.innerHTML = "Click here to download the file " + filename;
58+
document.body.appendChild(link);
59+
document.body.appendChild(document.createElement("br"));
60+
return filename;
61+
}
62+
```
63+
**Simple example**:
64+
```js
65+
var ffileToMarkdown = function (e) {
66+
const file_reader = new FileReader();
67+
file_reader.onload = (event) => {
68+
/*Convert a PDF-file to Markdown and save the "ResultPDFtoMarkdown.md"*/
69+
const json = AsposePdfToMarkdown(event.target.result, e.target.files[0].name, "ResultPDFtoMarkdown.md");
70+
if (json.errorCode == 0) document.getElementById('output').textContent = json.fileNameResult
71+
else document.getElementById('output').textContent = json.errorText;
72+
/*Make a link to download the result file*/
73+
DownloadFile(json.fileNameResult, "text/markdown");
74+
}
75+
file_reader.readAsArrayBuffer(e.target.files[0]);
76+
}
77+
```

english/net/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ is_root: true
2828
| [Aspose.Pdf.Printing](./aspose.pdf.printing/) | The **Aspose.Pdf.Printing** namespace provides classes and functionalities for handling PDF printing operations, including printer settings, page settings, and extensions for managing print-related configurations. |
2929
| [Aspose.Pdf.Sanitization](./aspose.pdf.sanitization/) | The **Aspose.Pdf.Sanitization** is a namespace for sanitization operations. |
3030
| [Aspose.Pdf.Security](./aspose.pdf.security/) | The **Aspose.Pdf.Security** namespace contains classes used for encryption and digital signing. |
31+
| [Aspose.Pdf.Signatures](./aspose.pdf.signatures/) | The **Aspose.Pdf.Signatures** namespace contains classes used for detecting compromised signatures. |
3132
| [Aspose.Pdf.Structure](./aspose.pdf.structure/) | The **Aspose.Pdf.Structure** namespace provides classes which help to work with a logical structure of a document which presents the organization of the document into chapters and sections or the identification of special elements such as figures, tables, and footnotes. |
3233
| [Aspose.Pdf.Tagged](./aspose.pdf.tagged/) | The **Aspose.Pdf.Tagged** is a namespace for classes for support of Tagged PDF documents. |
3334
| [Aspose.Pdf.Text](./aspose.pdf.text/) | The **Aspose.Pdf.Text** namespace provides classes that allow to extract text, add text, manipulate existing text of a document. It also contain classes that allow to extract, replace, substitute fonts of a document. |

english/net/aspose.pdf.devices/bmpdevice/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public sealed class BmpDevice : ImageDevice
4040

4141
| Name | Description |
4242
| --- | --- |
43+
| [GetBitmap](../../aspose.pdf.devices/imagedevice/getbitmap/)(Page) | Converts the page into Bitmap. |
4344
| override [Process](../../aspose.pdf.devices/bmpdevice/process/#process)(PageStream) | Converts the page into bmp and saves it in the output stream. |
4445
| [Process](../../aspose.pdf.devices/pagedevice/process/)(Pagestring) | Perfoms some operation on the given page and saves results into the file. |
4546

english/net/aspose.pdf.devices/dicomdevice/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public sealed class DicomDevice : ImageDevice
4040

4141
| Name | Description |
4242
| --- | --- |
43+
| [GetBitmap](../../aspose.pdf.devices/imagedevice/getbitmap/)(Page) | Converts the page into Bitmap. |
4344
| override [Process](../../aspose.pdf.devices/dicomdevice/process/#process)(PageStream) | Converts the page into Dicom and saves it in the output stream. |
4445
| [Process](../../aspose.pdf.devices/pagedevice/process/)(Pagestring) | Perfoms some operation on the given page and saves results into the file. |
4546

0 commit comments

Comments
 (0)