Skip to content

Instantly share code, notes, and snippets.

@datalogics-seu
datalogics-seu / TextExtract-FromRegionsAndLinks.cs
Last active Aug 15, 2018
Capture the text from specific target locations and from underneath link rectangles
View TextExtract-FromRegionsAndLinks.cs
@datalogics-seu
datalogics-seu / SplitPDFVariations.cs
Last active Dec 12, 2017
Split a PDF based on page intervals or bookmarks or search hits
View SplitPDFVariations.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Datalogics.PDFL;
/*
*
* A sample which demonstrates splitting a PDF document based on page intervals or bookmarks or by hits on
* key search strings. To split a document, the application needs to create a new, empty document and insert pages
@datalogics-seu
datalogics-seu / FlatTextToPDF.cs
Last active Oct 11, 2017
Converting flat text (with some PCL codes) to PDF using a monospace font
View FlatTextToPDF.cs
using System;
using System.Collections.Generic;
using System.Text;
using Datalogics.PDFL;
using System.Diagnostics;
/*
*
* A sample that converts a flat text file with some PCL codes to a PDF document using a monospace font. It will detect:
* -- Form Feeds (x0C)
@datalogics-seu
datalogics-seu / AddHeaderFooter.cs
Last active Oct 11, 2017
Add a header and footer to a PDF based on the Bounding Box
View AddHeaderFooter.cs
using System;
using System.Collections.Generic;
using System.Text;
using Datalogics.PDFL;
/*
*
* A sample which demonstrates the use of the Datalogics PDF Library API to add a header and footer to the first page of
* a PDF document. It uses the Page BoundingBox (or BBox) to determine the area of the page that
* contains content and then adds the header/footer text to the areas above and below the current BBox.