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
+7 -1
View File
@@ -7,7 +7,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class User
public class User : IAttachmentTarget
{
[StringLength(50), Key, Column("Id")]
public string UserId { get; set; }
@@ -60,6 +60,12 @@ namespace Disco.Models.Repository
}
}
[NotMapped]
public string AttachmentReferenceId { get { return UserId; } }
[NotMapped]
public AttachmentTypes HasAttachmentType { get { return AttachmentTypes.User; } }
public override string ToString()
{
return string.Format("{0} ({1})", this.DisplayName, this.UserId);