Skip to content

validate: invalid border array #711

@ximbal

Description

@ximbal

I am validating a group of PDF files, I am getting this error:

PDF validation failed for file documents/process/move-rename/pdf-from-zip/684c366a052e42889156a47eee17a9d6d88326e55d8bda2b4851bdad10fdb63e.pdf: validation error (obj#:11): invalid border array: [10 10 10 60]PDF validation failed for file documents/process/move-rename/pdf-from-zip/684c366a052e42889156a47eee17a9d6d88326e55d8bda2b4851bdad10fdb63e.pdf: validation error (obj#:11): invalid border array: [10 10 10 60]Error combining and stamping PDFs: error combining PDF files: invalid border array: [10 10 10 60]
exit status 1

using the following code:

func validatePDFs(pdfFilePaths []string) (string, error) {
	for _, pdfFilePath := range pdfFilePaths {
		if err := api.ValidateFile(pdfFilePath, nil); err != nil {
			fmt.Printf("PDF validation failed for file %s: %v", pdfFilePath, err)
			return pdfFilePath, err
		}
	}
	return "", nil
}

I've been trying to find documentation around it.

Is this a bug?

Thank you.
E

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions