refactor(PDFBurner): fix merging errors
This commit is contained in:
parent
5c232e61f2
commit
c7c78f96a6
@ -160,8 +160,19 @@ Namespace Jobs.FinalizeDocument
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Add Value"
|
#Region "Add Value"
|
||||||
Exit Select
|
Private Sub AddInstantJSONAnnotationToPDF(pInstantJSON As String)
|
||||||
Case AnnotationType.Ink
|
Dim oAnnotationData = JsonConvert.DeserializeObject(Of AnnotationData)(pInstantJSON)
|
||||||
|
|
||||||
|
oAnnotationData.annotations.Reverse()
|
||||||
|
|
||||||
|
For Each oAnnotation In oAnnotationData.annotations
|
||||||
|
Logger.Debug("Adding AnnotationID: " + oAnnotation.id)
|
||||||
|
|
||||||
|
Select Case oAnnotation.type
|
||||||
|
Case AnnotationType.Image
|
||||||
|
AddImageAnnotation(oAnnotation, oAnnotationData.attachments)
|
||||||
|
Exit Select
|
||||||
|
Case AnnotationType.Ink
|
||||||
AddInkAnnotation(oAnnotation)
|
AddInkAnnotation(oAnnotation)
|
||||||
Exit Select
|
Exit Select
|
||||||
Case AnnotationType.Widget
|
Case AnnotationType.Widget
|
||||||
@ -261,7 +272,7 @@ Namespace Jobs.FinalizeDocument
|
|||||||
ant.FontSize = _pdfBurnerParams.FontSize
|
ant.FontSize = _pdfBurnerParams.FontSize
|
||||||
ant.FontStyle = _pdfBurnerParams.FontStyle
|
ant.FontStyle = _pdfBurnerParams.FontStyle
|
||||||
Manager.SaveAnnotationsToPage()
|
Manager.SaveAnnotationsToPage()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Helpers"
|
#Region "Helpers"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user