Pdf Import Rewrite

Pdf Import rewritten to greatly improve QR Code detection, reduce
reliance on iTextSharp and improve thumbnails. Fixes #50
This commit is contained in:
Gary Sharp
2016-08-26 09:46:35 +10:00
parent 44f6d325db
commit 5ea9a814d6
98 changed files with 3168 additions and 3202 deletions
@@ -35,6 +35,25 @@ namespace Disco.Models.Repository
[InverseProperty("DocumentTemplates")]
public virtual IList<JobSubType> JobSubTypes { get; set; }
[NotMapped]
public AttachmentTypes AttachmentType
{
get
{
switch (Scope)
{
case DocumentTemplateScopes.Device:
return AttachmentTypes.Device;
case DocumentTemplateScopes.Job:
return AttachmentTypes.Job;
case DocumentTemplateScopes.User:
return AttachmentTypes.User;
default:
throw new ArgumentException("Unexpected Document Scope");
}
}
}
public static class DocumentTemplateScopes
{
public const string Device = "Device";