#9 add support for cff cid fonts, currently bounding box and width are calculated incorrectly.

This commit is contained in:
Eliot Jones
2019-01-07 20:52:42 +00:00
parent cdf5546a1b
commit b6a528a97d
9 changed files with 65 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

View File

@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration
{
// using System.IO;
using Xunit;
/// <summary>
@@ -11,10 +10,6 @@
[Fact]
public void Tests()
{
//using (var document = PdfDocument.Open(File.ReadAllBytes(@"C:\Users\eliot\Downloads\Motor Insurance claim form.pdf"), new ParsingOptions { UseLenientParsing = false }))
//{
// var page1 = document.GetPage(1);
//}
}
}
}

View File

@@ -12,6 +12,7 @@
private const string SinglePageFormattedType0Content = "Type0 Font";
private const string SinglePageType1Content = "ICML03-081";
private const string SingleInkscapePage = "Single Page Simple - from inkscape";
private const string MotorInsuranceClaim = "Motor Insurance claim form";
private const string PigProduction = "Pig Production Handbook";
private static string GetFilename(string name)
@@ -80,6 +81,12 @@
Run("Multiple Page - from Mortality Statistics");
}
[Fact]
public void MotorInsuranceClaimForm()
{
Run(MotorInsuranceClaim, 841);
}
private static void Run(string file, int imageHeight = 792)
{
var pdfFileName = GetFilename(file);