Skip to content

Instantly share code, notes, and snippets.

@datalogics-seu
datalogics-seu / AddHeaderFooter.cs
Last active October 11, 2017 19:20
Add a header and footer to a PDF based on the Bounding Box
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.
@datalogics-seu
datalogics-seu / FlatTextToPDF.cs
Last active October 11, 2017 19:21
Converting flat text (with some PCL codes) to PDF using a monospace font
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 / SplitPDFVariations.cs
Last active December 12, 2017 21:23
Split a PDF based on page intervals or bookmarks or search hits
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 / TextExtract-FromRegionsAndLinks.cs
Last active August 15, 2018 16:32
Capture the text from specific target locations and from underneath link rectangles