<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DroWzYOzIl</title>
    <description>The latest articles on DEV Community by DroWzYOzIl (@drowz20).</description>
    <link>https://dev.to/drowz20</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F864303%2F5ecb8a41-dc1e-452a-9e00-23f13abc97ab.png</url>
      <title>DEV Community: DroWzYOzIl</title>
      <link>https://dev.to/drowz20</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/drowz20"/>
    <language>en</language>
    <item>
      <title>How to split PDF File in C# (Code Example Tutorial)</title>
      <dc:creator>DroWzYOzIl</dc:creator>
      <pubDate>Wed, 09 Nov 2022 06:48:51 +0000</pubDate>
      <link>https://dev.to/drowz20/how-to-split-pdf-file-in-c-code-example-tutorial-5eld</link>
      <guid>https://dev.to/drowz20/how-to-split-pdf-file-in-c-code-example-tutorial-5eld</guid>
      <description>&lt;p&gt;Are you looking for how to convert a single PDF document int multiple pdf files using C# .NET programming language?&lt;/p&gt;

&lt;p&gt;In this tutorial we will discuss how to split single PDF file into multiple PDF documents. There are various advantages to splitting a PDF, and you should be able to do it while keeping the entire document intact. One of the easiest ways to reduce the size of a PDF file without damaging it is &lt;a href="https://ironpdf.com/" rel="noopener noreferrer"&gt;IronPDF&lt;/a&gt; the C# .NET Library specifically created for creating and manipulating.&lt;/p&gt;

&lt;h2&gt;
  
  
  IronPDF
&lt;/h2&gt;

&lt;p&gt;IronPDF PDF library is a robust Hyper Text Markup Language to PDF conversion API. IronPDF is an all-in-one solution for converting HTML sites in .NET and .NET Core development. It not only converts HTML but also performs a number of other tasks. IronPDF enables developers to generate, modify, and retrieve PDF files from .NET framework and Core projects. IronPDF allows developers to effortlessly create or modify high-fidelity PDFs from HTML pages.&lt;/p&gt;

&lt;p&gt;PDF files are lightweight and a great mode of sending content over the internet with ease. Creating such PDF files Using IronPDF is easy, efficient, time saving and reduce workload on developers by one third.&lt;/p&gt;

&lt;p&gt;To get started with IronPDF all you need is Visual studio and C# installed on your system and follow this step-by-step tutorial.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Creating a New Project in Visual Studio
&lt;/h2&gt;

&lt;p&gt;Open the Visual studio editor&lt;/p&gt;

&lt;p&gt;Go to the File menu in Visual Studio after starting it up. Select Console Application after choosing "New project".&lt;/p&gt;

&lt;p&gt;In the relevant text box, type the project name and choose the path. Then, click the Create button. Select the required .NET framework, as in the screenshot below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuo0h2tkt15fes54dr0a8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuo0h2tkt15fes54dr0a8.png" alt="Creating a New Project in Visual Studio 1"&gt;&lt;/a&gt;&lt;br&gt;
Then a new window will appear select the target framework and click on create.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5t9yv0gibh9wlfeam09b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5t9yv0gibh9wlfeam09b.png" alt="Creating a New Project in Visual Studio 2"&gt;&lt;/a&gt;&lt;br&gt;
program.cs file will open so you can enter the logic and create/run the application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7f2lamackbcz9ikj4zct.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7f2lamackbcz9ikj4zct.png" alt="Creating a New Project in Visual Studio 3"&gt;&lt;/a&gt;&lt;br&gt;
Now we can add the IronPDF library and test the program.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Install the IronPDF C# Library
&lt;/h2&gt;

&lt;p&gt;The IronPDF library can be downloaded and installed in many different ways. but we will only discuss only three of those:&lt;/p&gt;

&lt;p&gt;Using the Visual Studio NuGet Package Manager&lt;/p&gt;

&lt;p&gt;Using the Visual Studio Command-Line&lt;/p&gt;

&lt;p&gt;Direct Download from the NuGet webpage&lt;/p&gt;

&lt;h2&gt;
  
  
  2.1. Using the Visual Studio NuGet Package Manager
&lt;/h2&gt;

&lt;p&gt;The NuGet Package Manager option is available in the Visual Studio software to install the package directly into the solution. The below screenshot shows how to open it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokbv71r7hx82vxtb9znh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokbv71r7hx82vxtb9znh.png" alt="Using the Visual Studio NuGet Package Manager 4"&gt;&lt;/a&gt;&lt;br&gt;
It has a search box that returns a list of the package libraries available on the NuGet website. As shown in the screenshot below, we need to search for the keyword "IronPDF" in the package manager.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5f2ys8vpxcwzq0i5eww.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5f2ys8vpxcwzq0i5eww.png" alt=" Using the Visual Studio NuGet Package Manager 5"&gt;&lt;/a&gt;&lt;br&gt;
We can see the list of linked packages from the search in the image up above. We need to select the IronPDF option and install the package to our solution.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fui2onxkuxb3q8swo1x4o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fui2onxkuxb3q8swo1x4o.png" alt="Using the Visual Studio NuGet Package Manager 6"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.2. Using the Visual Studio Command-Line
&lt;/h2&gt;

&lt;p&gt;In Visual Studio menu go to Tools, move the cursor to NuGet package Manager and click on Package Manager Console.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fylj9rdtt104k13tj2dsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fylj9rdtt104k13tj2dsk.png" alt="Using the Visual Studio Command-Line 7"&gt;&lt;/a&gt;&lt;br&gt;
Package Manager Console will appear in the bottom of the screen just write the following command and press enter and IronPDF will install in an instance.&lt;br&gt;
&lt;code&gt;Install-Package IronPDF&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmnu8stw0njxay585d8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmnu8stw0njxay585d8a.png" alt="Using the Visual Studio Command-Line 8"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.3 Direct Download from the NuGet webpage
&lt;/h2&gt;

&lt;p&gt;The third way is to download the NuGet package directly from the webpage.&lt;/p&gt;

&lt;p&gt;Navigate to the link "&lt;a href="https://www.nuget.org/packages/IronPdf/" rel="noopener noreferrer"&gt;https://www.nuget.org/packages/IronPdf/&lt;/a&gt;"&lt;/p&gt;

&lt;p&gt;Select the download package option from the menu on the right-hand side.&lt;/p&gt;

&lt;p&gt;Double-click the downloaded package; it will be installed automatically.&lt;/p&gt;

&lt;p&gt;Now reload the solution and begin using it in the project.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Splitting PDF document Using IronPDF
&lt;/h2&gt;

&lt;p&gt;IronPDF offers PDF document manipulation to split one pdf document to two or more output PDF files. To split pdf files all you need is a source PDF file or create a new PDF document then split a PDF document using page numbers. Using IronPDF you can split PDF file into multiple files to reduce large PDF documents or to reduce PDF file size. Multiple single page files can be created using this C# .NET library.&lt;/p&gt;

&lt;p&gt;In this tutorial we will discuss two different examples of splitting a three-page PDF document into two files and three files.&lt;/p&gt;

&lt;h2&gt;
  
  
  3.1. Slitting PDF file into two PDF files
&lt;/h2&gt;

&lt;p&gt;Here we will see how to split single PDF document in to two individual files using C# programming language and IronPDF PDF library. &lt;/p&gt;

&lt;p&gt;Following code sample shows how to render all the pages of the PDF document and split in into multiple PDF files.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

using IronPdf;

// Instantiate Renderer
var pdf = new PdfDocument("url.pdf");
//take the first page
var pdf_page1 = pdf.CopyPage(0);
pdf_page1.SaveAs("Spli1.pdf");
//take the pages 2 &amp;amp; 3
var pdf_page2_3 = pdf.CopyPages(1, 2);
pdf_page2_3.SaveAs("Spli2.pdf");


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;OUTPUT File 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This output shows the result of above code sample shows the output of three-page PDF document split into a single page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy2iy1v86pr0nzf1jrdje.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy2iy1v86pr0nzf1jrdje.png" alt="Slitting PDF file into two PDF files 9"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;OUTPUT File 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This output image shows the output of remaining two pages of the original PDF document.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj202qa5pye3bl9dl55as.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj202qa5pye3bl9dl55as.png" alt="Slitting PDF file into two PDF files 10"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3.2. Splitting PDF Document into multiple Single Page Files
&lt;/h2&gt;

&lt;p&gt;Here we will split a PDF document into three single page PDF document using IronPDF split function.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

using IronPdf;

// Instantiate Renderer
var pdf = new PdfDocument("url.pdf");

//take the first page
var pdf_page1 = pdf.CopyPage(0);
pdf_page1.SaveAs("Spli1.pdf");

//take the page 2 
var pdf_page2 = pdf.CopyPage(1);
pdf_page2.SaveAs("Spli2.pdf");

//take the page 3
var pdf_page3 = pdf.CopyPage(2);
pdf_page3.SaveAs("Spli3.pdf");


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;OUTPUT File 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr6059fz2ytc5lrx5pitp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr6059fz2ytc5lrx5pitp.png" alt="Splitting PDF Document into multiple Single Page Files 11"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;OUTPUT File 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faiqqsh6mhm47mw0yo390.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faiqqsh6mhm47mw0yo390.png" alt="Splitting PDF Document into multiple Single Page Files 12"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;OUTPUT File 3&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvgunfabudfl0d2bwlxy6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvgunfabudfl0d2bwlxy6.png" alt="Splitting PDF Document into multiple Single Page Files 13"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial article we have discussed how to split a PDF document into multiple pages using IronPDF library.  here we show how easy it is to split PDF file into two or three different PDF files based on their pages. Also, IronPDF keeps the output identical to original PDF document and also maintain the integrity of the Links used and formatting.&lt;br&gt;
For more examples on IronPDF please visit this &lt;a href="https://ironpdf.com/examples/converting-a-url-to-a-pdf/" rel="noopener noreferrer"&gt;link&lt;/a&gt;. and to know about how IronPDF works and features its offers to its users please visit this &lt;a href="https://ironpdf.com/features/" rel="noopener noreferrer"&gt;link&lt;/a&gt;.&lt;br&gt;
If you buy the complete Iron Suite, you will get all 5 Products for the Price of 2. For further details about the &lt;a href="https://ironpdf.com/licensing/" rel="noopener noreferrer"&gt;licensing&lt;/a&gt;, please follow this &lt;a href="https://ironsoftware.com/suite/" rel="noopener noreferrer"&gt;link&lt;/a&gt; to Purchase the complete Package.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>pdf</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to use AWS Textract in Python</title>
      <dc:creator>DroWzYOzIl</dc:creator>
      <pubDate>Tue, 11 Oct 2022 06:47:49 +0000</pubDate>
      <link>https://dev.to/drowz20/how-to-use-aws-extract-in-python-3dk5</link>
      <guid>https://dev.to/drowz20/how-to-use-aws-extract-in-python-3dk5</guid>
      <description>&lt;h2&gt;
  
  
  1. Introduction
&lt;/h2&gt;

&lt;p&gt;Amazon Textract is a machine learning service that extracts text, handwriting, and data from scanned documents. To recognize, comprehend, and extract data from forms and tables, it goes beyond simple optical character recognition (OCR). These days, a lot of businesses either manually extract data from scanned documents like PDFs, pictures, tables, and forms or use basic OCR software that needs to be manually configured (which often must be updated when the form changes). Textract uses ML to read and process any form of document, accurately extracting text, handwriting, tables, and other data without requiring manual labor to replace these time-consuming and expensive operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What is AWS Textract?
&lt;/h2&gt;

&lt;p&gt;AWS Textract, to put it simply, is a deep learning-based service that transforms many types of documents into an editable format. Consider the situation where we have hard copies of invoices from several businesses and keep all the important data from them on Excel/Spreadsheets. Most of the time, we rely on data entry workers to manually enter them, which is chaotic, time-consuming, and prone to error. Amazon Textract is a software that extracts data and text from document images automatically. However, using Textract, all we have to do is upload our invoices, and it will then return all the text, forms, key-value pairs, and tables in a better organised manner.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.1. Strong and Normalized Data Capture
&lt;/h2&gt;

&lt;p&gt;With the help of Amazon Textract, text and tabular data may be extracted from a range of documents, including financial records, scientific articles, and medical notes. The extraction of unstructured and structured data from your document will be much simpler thanks to these non-custom APIs, which continuously learn from a large quantity of data every day.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.2. Building a smart search index
&lt;/h2&gt;

&lt;p&gt;You may build text libraries from images and PDF files using Amazon Textract. Using Amazon Textract's smart text extraction for Nlp, you can extract text into words and lines (NLP). If Amazon Textract document table analysis is turned on, the text is also organised by table cells. You have control over how text is organised when using Amazon Textract as an NLP input.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.3. How Does Textract by Amazon (AWS) Work?
&lt;/h2&gt;

&lt;p&gt;We'll go over AWS Textract's operation in this part. There are no open-source models to go into the intricacies, but we know that powerful AI and ML algorithms are behind them. But by summarising the available documentation, I'll attempt to unravel the workings.&lt;/p&gt;

&lt;p&gt;The first thing that happens whenever a new or scanned document is sent into Textract is that it generates a list of block objects for all the identified text. For instance, if a bill contains 100 words today, AWS will create 100 block objects for all of the words. These blocks contain details on an object that has been detected, its location, and the level of confidence Amazon Textract has in the processing's accuracy.&lt;/p&gt;

&lt;p&gt;Most documents typically consist of the following building blocks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text lines and words per page&lt;/li&gt;
&lt;li&gt;Input data (Key-value pairs)&lt;/li&gt;
&lt;li&gt;Elements for Selecting Tables and Cells&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the help of Connecting with many other Amazon Web Services, you can automate the workflow of extraction, processing, and storing the relevant data.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.4. OCR Textract
&lt;/h2&gt;

&lt;p&gt;Textract OCR is likewise a deep learning-based neural network-based architecture, however it cannot be fully customized or trained on a specific dataset. This is why corporations have typically employed positions such as data entry operators for simple document filling and database completion. Its job is to read a document and extract all of the data contained inside it. Textract, on the other hand, automatically adjusts to your data and achieves improved accuracy on the fly if the extracted information is verified by a person (human in the loop). Textract outperforms Tesseract when it comes to tasks like table extraction and key-value pair extraction. However, it is confined to a few languages and document types.&lt;/p&gt;

&lt;p&gt;Here are the some of the document types that AWS Textract can process are listed below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Regular Bills / Invoices&lt;/li&gt;
&lt;li&gt;Financial Records&lt;/li&gt;
&lt;li&gt;Medical Records&lt;/li&gt;
&lt;li&gt;Documents written by hand&lt;/li&gt;
&lt;li&gt;Paystubs or Personnel Records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it comes to AWS Textract, there are three primary sorts of outcomes we may acquire. The first is to obtain the extracted result in the form of raw text. The second way is to obtain the key-value pairs found in the associated documents. The third option is to extract the table data. Amazon Textract allows us to construct text libraries from image and PDF files.&lt;/p&gt;

&lt;p&gt;AWS provides two way to extract the text. they are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS CLI&lt;/li&gt;
&lt;li&gt;Python API&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2.5. AWS CLI to extract data
&lt;/h2&gt;

&lt;p&gt;A centralised tool for managing your AWS services is the AWS Command Line Interface (AWS CLI). You can use the command line and scripts to automate various AWS services with only one tool that you download and configure.&lt;/p&gt;

&lt;p&gt;Through the AWS Console, AWS CLI, Textract API, and even programmatically using compatible client SDKs, we can use the AWS OCR Textract service. But in this lesson, you'll use the AWS CLI to extract content from photos. The following are the steps to convert.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.5.1. Step 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use the commands listed below to create (mkdir) and change (cd) into a new directory in your computer's terminal. The directory can be given whatever name you like, but for the purposes of this demo, it will be called textract-extraction. The photos whose text you use Textract to extract will be found in the new directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir textract-extraction &amp;amp;&amp;amp; cd textract-extraction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.5.2. STEP 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use the wget command listed below to download the Test.jpg public image. Using the Textract service, you may extract the handwritten sentence from the image.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://raw.Images.com/adam-the-automator/awsocr/Test.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.5.3. STEP3:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Execute the textract command below to extract the text from the Test.jpg image (detect-document-text) and output the data in JSON format (—output json).A list with a Byte whose value is the base64 representation of the Test.jpg file can be found in the -document flag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws textract detect-document-text --document Bytes=$( base64 ./Test.jpg ) --output json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the command completes, you’ll see the printed JSON output below. we can extract data based on the requirement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oiRpMGAr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qdtsvmjgfpgdn3qhz2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oiRpMGAr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qdtsvmjgfpgdn3qhz2o.png" alt="output" width="395" height="646"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To determine the next layer scanned in the document, take note of the first highlighted value in the IDs array.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.6. Using Python API to extract data
&lt;/h2&gt;

&lt;p&gt;We can use the Amazon Textract API with a variety of computer languages. We'll examine a code block for key-value extraction using Python and Textract in this section. Check out these docs for more details on language and API support.&lt;/p&gt;

&lt;p&gt;This code snippet shows how to extract key-value pairs from documents using the Python Textract API. To make this work, we'll also need to configure API keys on the AWS dashboard.&lt;/p&gt;

&lt;p&gt;We import every package required for sending documents to AWS and handling the text extraction.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import boto3
import sys
import re
import json
    with open(file_name, 'rb') as file:
        img_test = file.read()
        bytes_test = bytearray(img_test)
        print('Image loaded', file_name)
    client = boto3.client('textract')
    response = client.analyze_document(Document={'Bytes': bytes_test}, FeatureTypes=['FORMS'])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the process completes, you’ll see the printed JSON output below. we can extract data based on the requirement. Using Json Packages to extract specific information the returned json result.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. &lt;a href="https://ironsoftware.com/csharp/ocr/"&gt;IronOCR&lt;/a&gt; — Introduction and Features
&lt;/h2&gt;

&lt;p&gt;Engineers that use IronOCR for.NET to read text content from images and PDFs in.NET apps and websites are provided with software from IronOCR. It supports many different world languages, scans images for text and barcodes, and can output either plain text or structured data. MVC, Web, console, and desktop .NET applications can all use Iron Software's OCR library. The development team directly assists with licencing for commercial deployments.&lt;/p&gt;

&lt;p&gt;Using the latest Tesseract 5 engine, IronOCR scans text, barcodes, and QR codes from any picture or PDF file. This library allows desktop, console, and internet programs to quickly incorporate OCR.&lt;/p&gt;

&lt;p&gt;The 127 international languages supported by IronOCR. Word lists and custom languages are also supported.&lt;/p&gt;

&lt;p&gt;More than 20 different barcode and QR code types can be scanned by IronOCR.&lt;/p&gt;

&lt;h2&gt;
  
  
  3.1. OCR Using IronPDF
&lt;/h2&gt;

&lt;p&gt;Above is an illustration of the Tesseract 5 API, which enables us to turn image files into text. In the line of code above, we're creating an object for the Iron Tesseract. Additionally, we are creating an OcrInput object that will enable us to include one or more image files. When using the OcrInput object method add, we might need to specify the picture's path inside the code. You can upload as many photos as you like. By parsing the image file and extracting the result into the OCR result, we can use the function "Read" in the Object IronTesseract that we previously built to obtain the photos. It has the ability to extract text from images and turn it into a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var Ocr = new IronTesseract();            
Ocr.Language = OcrLanguage.EnglishBest;                                     
Ocr.Configuration.TesseractVersion = TesseractVersion.Tesseract5;            
using (var Input = new OcrInput())      
{          
    Input.AddImage(@"3.png");         
    var R = Ocr.Read(Input);       
    Console.WriteLine(R.Text);        
    Console.ReadKey();          
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Conclusion.
&lt;/h2&gt;

&lt;p&gt;Compared to other providers, setting up Textract with another AWS service is simple. For instance, by adding an add-on, it is possible to save extracted document information using Amazon DynamoDB or S3.The AWS shared responsibility model, which entails rules and norms for data protection, is followed by Amazon Textract. AWS ocr is so costly. We always need to have InterNet to make the OCR works.&lt;/p&gt;

&lt;p&gt;Tesseract is simple and quick to use when using IronOCR in the Net Framework environment. It offers numerous ways to support images and PDF files. Additionally, it offers a number of parameters to enhance the functionality of the Tesseract OCR library. Multiple languages can be used simultaneously in addition to different languages. Visit their website to learn more about the Tesseract OCR.&lt;/p&gt;

&lt;p&gt;IronOCR outperforms AWS OCR. AWS OCR is so expensive that there is no development version, and in order to register an AWS account, we must have a valid payment card. IronOCR, on the other hand, is less expensive and offers a development edition. It also enables us to detect barcode data and read barcode values from pictures. The IronOCR bundle includes a lifetime license with no continuing fees. At a single purchase, the IronOCR package covers numerous systems. To learn more about IronOCR pricing, visit &lt;a href="https://ironsoftware.com/csharp/ocr/licensing/"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ocr</category>
      <category>tutorial</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>C# Print PDF Directly to Printer (Code Example Tutorial)</title>
      <dc:creator>DroWzYOzIl</dc:creator>
      <pubDate>Thu, 19 May 2022 07:15:33 +0000</pubDate>
      <link>https://dev.to/drowz20/c-print-pdf-directly-to-printer-code-example-tutorial-7jj</link>
      <guid>https://dev.to/drowz20/c-print-pdf-directly-to-printer-code-example-tutorial-7jj</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Are you looking to print a PDF files programmatically using C# .NET platform? You have come to the right place in this article we will discuss how you can print PDF documents using C#.&lt;br&gt;
First let us get to know how PDF printing works. Digital images and text are converted into tangible copies by printers. They achieve this by converting the file into a form that the printer can comprehend using a driver or software. A succession of tiny dots are then used to replicate the picture or text on the page.&lt;br&gt;
IronPDF is .NET library that helps you print programmatically PDF document directly. Also IronPDF Provide a lot of advanced printing features like, IronPDF is capable of handling complex printing capabilities such as locating and setting the printer name, as well as changing the printer resolution.&lt;/p&gt;

&lt;h2&gt;
  
  
  IronPDF C# Library
&lt;/h2&gt;

&lt;p&gt;In. NET and .NET core development, IronPDF is the ideal tool for printing PDF files. It not only prints PDF files, but it also has a lot of other useful functions. IronPDF allows developers to create, alter, and retrieve PDF documents from within .NET Core and framework projects. The IronPDF library allows developers to rapidly produce or alter PDFs printing.&lt;br&gt;
With the use of Visual Basic or C# code, you may quickly print a PDF in .NET apps. This article will show you how to print programmatically using C# .NET print PDF capabilities. IronPDF provide many programmatic printing functionalities for printing pdf file like setting printer resolution, select specific printer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a New Visual Studio project
&lt;/h2&gt;

&lt;p&gt;Go to the File menu in the Visual Studio program. Choose "new project," then "console application." In this topic, we'll produce PDF documents using a console program.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft540fa1myn8obajx4gk4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft540fa1myn8obajx4gk4.png" alt="Creating a New Visual Studio project"&gt;&lt;/a&gt;&lt;br&gt;
In the relevant text box, type the project name and choose the path. Then press the create button. As seen in the screenshot below, select the required .NET framework:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn8tqe66fc2agxwonc0i2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn8tqe66fc2agxwonc0i2.png" alt="Creating a New Visual Studio project"&gt;&lt;/a&gt;&lt;br&gt;
Now the new project has been created go ahead and integrate IronPDF library. In the next example you will find different ways to integrate IronPDF in Visual Studio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install IronPDF Library
&lt;/h2&gt;

&lt;p&gt;IronPDF provides several options to integrate IronPDF into your Visual Studio project, however we will only cover two of them in this post.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Using the Visual Studio NuGet Package Manager
&lt;/h3&gt;

&lt;p&gt;The NuGet Package Manager option in Visual Studio allows you to install the package directly into the solution. The screenshot below demonstrates how to access the Package Manager in solution explorer.&lt;br&gt;
It has a search box that displays a list of NuGet package libraries. We need to look for the keyword "IronPDF" in the package manager, as seen below:&lt;br&gt;
You will get a list of relevant packages search list from the image above. You must choose the IronPDF option and install the package.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Using the Visual Studio Command-Line
&lt;/h3&gt;

&lt;p&gt;In Visual Studio menu, Go to Tools-&amp;gt; NuGet Package manager -&amp;gt; Package manager console&lt;br&gt;
Enter the following line in the package manager console tab:&lt;br&gt;
Install-Package IronPDF&lt;br&gt;
Now the package will download/install to the current project and be ready to use&lt;/p&gt;

&lt;h2&gt;
  
  
  Print PDF Files
&lt;/h2&gt;

&lt;p&gt;When it comes to print pdf files IronPDF provide two options, first send a PDF document directly to a printer, Secondly you can create an object sender that sent to GUI print dialogs. Below code snippet shows is the very quick demonstration how to print pdf files by using both options&lt;/p&gt;

&lt;h3&gt;
  
  
  Direct print pdf files (silent printing)
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;using IronPdf;&lt;br&gt;
IronPdf.ChromePdfRenderer Renderer = new IronPdf.ChromePdfRenderer();&lt;br&gt;
using PdfDocument Pdf = Renderer.RenderUrlAsPdf("&lt;a href="https://www.nuget.org/packages/IronPdf%22" rel="noopener noreferrer"&gt;https://www.nuget.org/packages/IronPdf"&lt;/a&gt;);&lt;br&gt;
Pdf.Print();&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Using Object (print dialog)&lt;br&gt;
&lt;/h3&gt;
&lt;br&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;using IronPdf;&lt;br&gt;
IronPdf.ChromePdfRenderer Renderer = new IronPdf.ChromePdfRenderer();&lt;br&gt;
using PdfDocument Pdf = Renderer.RenderUrlAsPdf("&lt;a href="https://www.nuget.org/packages/IronPdf%22" rel="noopener noreferrer"&gt;https://www.nuget.org/packages/IronPdf"&lt;/a&gt;);&lt;br&gt;
PdfDocument.GetPrintDocument&lt;br&gt;
//Remember to add an assembly reference to System.Drawing.dll&lt;br&gt;
 System.Drawing.Printing.PrintDocument PrintDocYouCanWorkWith = Pdf.GetPrintDocument();&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Advanced PDF document printing IronPDF&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;IronPDF can handle complex printing capabilities such as identifying or establishing the printer name, changing the printer resolution, printing PDF to file, and tracing printing processes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Specify Printer Name
&lt;/h3&gt;

&lt;p&gt;if you have multiple printer available to perform printing process IronPDF allow you to select specific printer for printing process. if you do not specify printer name then use the default printer to print&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;/**&lt;br&gt;
Specify Printer Name&lt;br&gt;
anchor-specify-printer-name&lt;br&gt;
**/&lt;br&gt;
using (var ChromePdfRenderer = new ChromePdfRenderer())&lt;br&gt;
{&lt;br&gt;
using (var pdfDocument =&lt;br&gt;
ChromePdfRenderer.RenderHtmlAsPdf(TestSources.HtmlTemplateBasicText()))&lt;br&gt;
{&lt;br&gt;
using (var printDocument = pdfDocument.GetPrintDocument())&lt;br&gt;
{&lt;br&gt;
printDocument.PrinterSettings.PrinterName = "Microsoft Print to PDF";&lt;br&gt;
printDocument.Print();&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
}&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Printer Resolution&lt;br&gt;
&lt;/h3&gt;

&lt;p&gt;The number of pixels printed or shown, depending on the result, is referred to as resolution. Using the DefaultPageSettings.PrinterResolution option in IronPDF, you may change the resolution of your printing. below code snippet shows how to set printer resolution with just a few lines of code.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;/**&lt;br&gt;
Set Printer Resolution&lt;br&gt;
anchor-set-printer-resolution&lt;br&gt;
&lt;strong&gt;/&lt;br&gt;
printDocument.DefaultPageSettings.PrinterResolution = new PrinterResolution&lt;br&gt;
{&lt;br&gt;
**Kind = PrinterResolutionKind.Custom,&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;X = 1200,&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Y = 1200&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;};&lt;/strong&gt;&lt;br&gt;
printDocument.Print();&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
}&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  printing PDF to File&lt;br&gt;
&lt;/h3&gt;

&lt;p&gt;The PDFDocument.PrintToFile function allows you to print a PDF to a file; simply provide the output filepath and indicate whether or not you want to get a preview.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;/**&lt;br&gt;
PrinttoFile&lt;br&gt;
anchor-printtofile-method&lt;br&gt;
**/&lt;br&gt;
printDocument.PrintToFile(“PathToFile”, false);&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Tracing Printing Processes&lt;br&gt;
&lt;/h3&gt;

&lt;p&gt;The benefit of using C# with IronPDF is that keeping track of printed pages, or anything printing-related, is actually extremely straightforward. In the following example, I will show how to trace the number of pages produced.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;/**&lt;br&gt;
Tracing Printing Processes&lt;br&gt;
anchor-tracing-printing-processes-using-c-num&lt;br&gt;
&lt;strong&gt;/&lt;br&gt;
using IronPdf;&lt;br&gt;
IronPdf.ChromePdfRenderer Renderer = new IronPdf.ChromePdfRenderer();&lt;br&gt;
using PdfDocument Pdf = Renderer.RenderUrlAsPdf("&lt;a href="https://www.nuget.org/packages/IronPdf%22" rel="noopener noreferrer"&gt;https://www.nuget.org/packages/IronPdf"&lt;/a&gt;);&lt;br&gt;
PdfDocument.GetPrintDocument&lt;br&gt;
**var printedPages = 0;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;printDocument.PrintPage += (sender, args) =&amp;gt; printedPages++;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;printDocument.Print();&lt;/strong&gt;&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
}&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Conclusion&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;To print PDF document IronPDF is the perfect solution, it not only print pdf files but also give a lot of control in the printing process like print multiple PDF files or PDF pages, Print specific pages, Set printer resolution, print PDF document to file, and set printer track to track printed page numbers and many more other features. With the help of NuGet Package console you can easily integrate and manage IronPDF and easily print you PDF files. IronPDF provide free version for developers also provide many features to manipulate PDF file as you see fit. for additional information of C# print a PDF visit the following &lt;a href="https://ironpdf.com/docs/questions/csharp-print-pdf/?ref=hackernoon.com" rel="noopener noreferrer"&gt;link&lt;/a&gt;.&lt;br&gt;
You can download the software product from this &lt;a href="https://ironpdf.com/downloads/devto-print-pdf-directly.zip" rel="noopener noreferrer"&gt;link&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>programming</category>
      <category>dotnet</category>
      <category>print</category>
    </item>
  </channel>
</rss>
