PDFA-conversion: Empty pages / false values / missing signatures
Posted: Wed Feb 12, 2020 7:01 pm
Hello ORPALIS-Team,
attached you will find 3 pdf-files.
Common to all thre is, that they were converted to PDF/A-1b with your
command.
Each of them has empty pages after the conversion.
"Cannot Determine PageContent on page 21.pdf" beginning with page 21ff.
We are also analyzing the source pdfs before converting them to get an Impression, which Content we find on the pages.
When using this code:
urGdPicturePdf.GetPageImageCount is showing "0" beginning with page 21 in the file "Cannot Determine PageContent on page 21.pdf" even so, there are some Images on the page.
If I raster the page:
suddenly, urGdPicturePdf.GetPageImageCount is showing the correct value "2"
And last but not least: "Cannot Determine PageContent on page 21.pdf" contains 2 signatures.
They get lost when converting the source file to a PDF/A1-b file.
SIgnatures are normally allowed in PDF/A1-b files.
Can't you just copy the signature to the newly created PDF/A file? Or at laest render the stamp to an Image in the new document?
Thank you very much for your efforts.
attached you will find 3 pdf-files.
Common to all thre is, that they were converted to PDF/A-1b with your
Code: Select all
status = urGdPicturePdf.ConvertToPDFA(tmpComparablePDFFile, PDFA_PdfConversionConformance.PDF_A_1b, True, True)
Each of them has empty pages after the conversion.
"Cannot Determine PageContent on page 21.pdf" beginning with page 21ff.
We are also analyzing the source pdfs before converting them to get an Impression, which Content we find on the pages.
When using this code:
Code: Select all
status = urGdPicturePdf.LoadFromFile(SourceNamePDF, False)
PageCount = urGdPicturePdf.GetPageCount
For page = 1 To PageCount
status = urGdPicturePdf.SelectPage(page)
If urGdPicturePdf.GetPageImageCount Or urGdPicturePdf.PageHasText Or urGdPicturePdf.PageHasShape Then
' Check content
End if
Next
urGdPicturePdf.CloseDocument
If I raster the page:
Code: Select all
img = urGdPicturePdf.RenderPageToGdPictureImage(200, True)
And last but not least: "Cannot Determine PageContent on page 21.pdf" contains 2 signatures.
They get lost when converting the source file to a PDF/A1-b file.
SIgnatures are normally allowed in PDF/A1-b files.
Can't you just copy the signature to the newly created PDF/A file? Or at laest render the stamp to an Image in the new document?
Thank you very much for your efforts.