Skip to content

Instantly share code, notes, and snippets.

View groupgocs-parser-gists's full-sized avatar

GroupDocs.Parser groupgocs-parser-gists

View GitHub Profile
@groupgocs-parser-gists
groupgocs-parser-gists / extract_images_form_documents_page_area.java
Created May 31, 2022 04:03
How to extract images from a specific document page area using Java code
// Supported file formats: https://docs.groupdocs.com/parser/java/supported-document-formats/
try (Parser parser = new Parser(Constants.SampleImagesPdf)) {
PageAreaOptions options = new PageAreaOptions(new Rectangle(new Point(340, 150), new Size(300, 100)));
Iterable<PageImageArea> images = parser.getImages(options);
if (images == null) {
System.out.println("Page images extraction isn't supported");
return;
}
@groupgocs-parser-gists
groupgocs-parser-gists / extract_images_form_documents_page.java
Last active May 31, 2022 17:16
How to perform Images extraction from a document’s page inside Java application
// Supported file formats: https://docs.groupdocs.com/parser/java/supported-document-formats/
try (Parser parser = new Parser(Constants.SampleImagesPdf)) {
if (!parser.getFeatures().isImages()) {
System.out.println("Document isn't supports images extraction.");
return;
}
IDocumentInfo documentInfo = parser.getDocumentInfo();
if (documentInfo.getPageCount() == 0) {
@groupgocs-parser-gists
groupgocs-parser-gists / extract_images_form_documents.java
Last active May 31, 2022 17:09
Extract images from documents as BMP, GIF, JPEG, PNG & More via Java API
// Supported file formats: https://docs.groupdocs.com/parser/java/supported-document-formats/
try (Parser parser = new Parser(Constants.SampleImagesPdf)) {
Iterable<PageImageArea> images = parser.getImages();
if (images == null) {
System.out.println("Images extraction isn't supported");
return;
}
for (PageImageArea image : images) {
@groupgocs-parser-gists
groupgocs-parser-gists / images_saving_to_files.cs
Last active May 27, 2022 03:44
Extract images from documents and save them to a PNG, JPEG, WebP, GIF and BMP File
// Supported file formats: https://docs.groupdocs.com/parser/java/supported-document-formats/
try (Parser parser = new Parser(Constants.SampleZip)) {
Iterable<PageImageArea> images = parser.getImages();
if (images == null) {
System.out.println("Page images extraction isn't supported");
return;
}
@groupgocs-parser-gists
groupgocs-parser-gists / Extract_images_form_documents_page_area.md
Last active May 27, 2022 07:51
Images extraction from a particular document page area via .NET API

How to Perform Images Extraction from Document Page Area via .NET API?

GroupDocs.Parser for .NET is a powerful document parser API that fully empowers software developers to extract formatted text, metadata, images, containers as well as attachments with minimum effort and cost.

The following example demonstrates how to extract images from a particular Page Area with just a couple of lines of .NET code.

View a list of all supported file formats https://docs.groupdocs.com/parser/net/supported-document-formats/

APIs to Use

@groupgocs-parser-gists
groupgocs-parser-gists / extract_images_form_documents_page.md
Created May 27, 2022 03:23
Images Extraction from a Document's Page using C#/VB.NET API

Images Extraction from Document’s Pages via C# & VB.NET API?

GroupDocs.Parser .NET API has provided complete functionality for extracting images from a specific document’s page inside C# or VB.NET applications without any external dependencies.

The following .NET code demonstrates how developers can extract images from a document’s page inside their own apps.

View a list of all supported document conversion file formats https://docs.groupdocs.com/parser/net/supported-document-formats/

APIs to Use

@groupgocs-parser-gists
groupgocs-parser-gists / extract_images_form_documents.md
Created May 27, 2022 03:11
Extract Images from Different Kinds of Documents using C#/VB.NET API

How to Extract Images from Different Documents via .NET API?

GroupDocs.Parser for .NET is feature rich API that fully supports documents parsing and images extraction from some of the mostly commonly used document types as well as email messages inside C#/VB.NET applications.

The following .NET code example shows how to extract images from documents as well as email messages with just a couple of lines of .NET code.

View a list of all supported document conversion file formats https://docs.groupdocs.com/parser/net/supported-document-formats/

APIs to Use

@groupgocs-parser-gists
groupgocs-parser-gists / extract_hyperlinks_form_documents_page_area.md
Last active May 24, 2022 03:58
Extract hyperlinks from a document's page are using Java API
@groupgocs-parser-gists
groupgocs-parser-gists / extract_hyperlinks_form_documents.java
Last active May 24, 2022 03:41
Learn how to extract hyperlinks from some of the most common documents types via Java