Fix fpr PDF 2.0 xref tables
This commit is contained in:
@@ -28,8 +28,8 @@ func (context *SignContext) writeXref() error {
|
||||
|
||||
func (context *SignContext) writeXrefTable() error {
|
||||
// @todo: maybe we need a prev here too.
|
||||
xref_size := "xref\n0 " + strconv.FormatInt(context.PDFReader.XrefInformation.ItemCount, 10)
|
||||
new_xref_size := "xref\n0 " + strconv.FormatInt(context.PDFReader.XrefInformation.ItemCount+4, 10)
|
||||
xref_size := "xref\n0 " + strconv.FormatInt(context.PDFReader.XrefInformation.ItemCount, 10) + "\n"
|
||||
new_xref_size := "xref\n0 " + strconv.FormatInt(context.PDFReader.XrefInformation.ItemCount+4, 10) + "\n"
|
||||
|
||||
if _, err := context.OutputBuffer.Write([]byte(new_xref_size)); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user