I have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-37500 has been logged in our issue management system for further investigation and resolution. The issue ID has been linked with this thread so that you will receive notification as soon as the issue is resolved.
We have further investigated the issue reported by you and we are unable to reproduce it with Aspose.PDF for Java 18.2, which has been released couple of days ago. Please test the scenario with latest version and then share your kind feedback with us. In case the issue persists with this version then please share source PDF as well as image, generated PDF file and environment details on your end so that we may proceed accordingly.
We are checking it with the collaboration of our product team and we will get back to you within couple of days. Please be patient and spare us little time.
We have managed to replicate the issue in Android environment with latest available version, 17.12, for Android. A ticket with ID PDFANDROID-507 has been logged in our issue management system, for further investigation and resolution. The issue ID has been linked with this thread so that you will receive notification as soon as the issue is resolved.
Hello, I have the same problem that the Image property in Stamp Annotation returns null value when I try to get the image stream. Here is my code:
foreach(Annotation annotation in pdfDocument.Pages[i+1].Annotations){
StampAnnotation stamp = (StampAnnotation) annotation;
combinedText += String.Format(“image {0},”,stamp.Image == null ? “true” : “false”);
}
The stamp.Image will return null which results in output “true” in this case, this is C#, not Java. Please help me! Thank you.
TYPES.pdf (235.7 KB)
for(int i = 0;i < 19;i++){
foreach(Annotation annotation in pdfDocument.Pages[i+1].Annotations){
var name = annotation.AnnotationType.ToString();
if(name == “Polygon”){
PolygonAnnotation polygon = (PolygonAnnotation) annotation;
combinedText += String.Format("{0},",polygon.Subject);
}
else if(name == “Stamp”){
StampAnnotation stamp = (StampAnnotation) annotation;
combinedText += String.Format(“image {0},”,stamp.Image == null ? “true” : “false”);
}
else{
combinedText += String.Format("{0},",name);
}
}
}
Here is the pdf document and the sample code, it has 19 pages, and the last page has all the stamps. Thank you for your help.
We were able to replicate the issue in our environment using 22.5 version of the AP and have logged it as PDFNET-51839 in our issue tracking system. We will further look into its details and let you know once the issue is resolved. Please be patient and spare us some time.
The ticket has just been logged in our issue management system and it is pending for investigation. We will investigate and resolve it on a first come first serve basis as per free support policies. We will inform you once some progress is made towards issue resolution. Please spare us some time.
Hello, I am just checking on the progress of ticket PDFNET-51839? Any progress so far?
By the way, in Annotation class, there is a function called ToImage(), but it is a protected class, is there anyway I can get the image stream for each annotation in a PDF file?
Thank you
We regret that we are unable to share any feedback at the moment as the ticket is pending for resolution. However, your concerns have been recorded and as soon as we make some definite progress towards ticket resolution, we will inform you in this forum thread. Please be patient and spare us some time.
We are afraid that the earlier logged ticket could not get resolved. We will surely inform you via this forum thread once we have some certain update about its resolution. Please be patient and spare us some time.