So I need to close pdfDocument stream first and then read from output stream to create attachments. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 4 years, 8 months ago. Active 4 months ago. Viewed 5k times. We have a utility method that writes the output stream and creates a new PDF attachment.
Peter Mortensen Varun Jaiswal Varun Jaiswal 59 3 3 silver badges 5 5 bronze badges. Where does inputStream come from? Are you sure you are reading a correct PDF file i. Can you share a sample PDF that you have problems with? Simply said the error messages mean that your InputStream is not positioned at the start of a pdf.
We have tried with TIFF viewer, but unable to locate the annotations. We have linked your post to this ticket and will keep you informed regarding any available updates. It is difficult to share an estimate before the completion of the analysis phase.
We will let you know once a significant progress has been made in this regard. Problem of startxref not found Aspose. PDF Product Family. Hi Hafsa,.
Can you please confirm that correct source file is being loaded. In case you still face the same issue, can you please share some code snippet which can help us in replicating the problem in our environment. We are sorry for your inconvenience. Document inputStream ; I am getting inputstream from webservice. Exception : startxref not found.
Hi Imran, Thanks for the quick response. I am able to convert same input stream to pdf using below code: Aspose. Getting Exception : startxref not found. Just fyi, the same has been asked by some other person.
Here is the link: Please let me know if you need any more information. Added annotations in tiff file are: light green highlighter on text This is testing document Added light green rectangle.
It is not allowing me to add. I have sent separate email to you. Some cases, following error was printed: Unable to find "startxref" keyword. Erique Bomfim Erique Bomfim 3 3 silver badges 5 5 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.
Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed.
0コメント