-
Notifications
You must be signed in to change notification settings - Fork 289
Migration 0.0.X to 0.1.0
Eliot Jones edited this page Jan 13, 2020
·
7 revisions
There have been some substantial changes between versions 0.0.1+ to 0.1.0.
Types exposing information on the public API such as PdfRectangle, PdfPoint and other numeric types previously using decimal have now changed to use doubles. This provides performance improvements.
Consumers will need to update their code to use doubles where previously using decimals.
In version 0.1.0 in order to support maintainability and code quality moving forward, code has been split out into new projects.

The new projects are:
- UglyToad.PdfPig.Core - For types used by all projects.
- UglyToad.PdfPig.Tokens - The core tokens used by all PostScript data (PDF, Adobe Type 1).
- UglyToad.PdfPig.Tokenization - The code used to read tokens from input.
- UglyToad.PdfPig.Fonts - Font formats such as TrueType, Standard14 Adobe Font Metrics (AFM), Compact Font Format (CFF) etc, which are external to the PDF specification.
- UglyToad.PdfPig - The main project containing all PDF specification related implementation and helper classes.
- UglyToad.PdfPig.DocumentLayoutAnalysis - Tools built on top of the main project to provide structure/layout analysis and export support for PDF documents.
The most important changes for consumers who will need to change imports are:
-
PdfPoint,PdfRectangle,PdfPathandPdfLinemove fromUglyToad.PdfPig.GeometrytoUglyToad.PdfPig.Core. -
PdfDocumentFormatExceptionmoves fromUglyToad.PdfPig.ExceptionstoUglyToad.PdfPig.Core. -
UglyToad.PdfPig.Exportclasses move to a new project and namespaceUglyToad.PdfPig.DocumentLayoutAnalysis.Export. -
TextBlockandTextLinemove toUglyToad.PdfPig.DocumentLayoutAnalysis. -
IndirectReferencemoves toUglyToad.PdfPig.Core. -
DocstrumBoundingBoxes,IPageSegmenter,RecursiveXYCutandDefaultPageSegmentermove toUglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter. -
NearestNeighbourWordExtractormoves toUglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor.