mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
#9 add support for cff cid fonts, currently bounding box and width are calculated incorrectly.
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
Binary file not shown.
@@ -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);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user