I have very specific task in Delphi 2010 with PDF. After some days fight I want to ask your help.
Task:
- open pdf in embedded viewer component on a form
- define a rectangle with mouse on the document
- add into the rectangle stamp annotation from image file (BMP or PNG or JPG). The image must be stretched to the selected rect.
I try to use next components:
- Acrobat Reader ActiveX (TAcroPDF)
- Gnostice PDF Toolkit
- Debenu PDF library
At the moment I have crazy mix of problems.
- Acrobat can show PDF and can show annotations but has a methods to select a rectangle and to add a stamp from an image file.
- Gnostice can show PDF, can select a rectangle BUT can not add annotation from image file and can not read all new 1.7 PDF files.
- Debenu has no viewer but can read all files, can add a stamp fro image file.
Now I have almoust working solution with using all 3 libraries (each for own part of the task).
But some times acrobat library (or any other) raises exception like "can not save file" and other ones. I killed all concurence for processed PDF file (at one moment only one component exists, all other is destroyed).
The main question is not to help to kill the exceptions... But show me a way or library to solve the task. Maybe exist a PDF library for Delphi which I do not know... and this wonderful library can solve the task.
Thanks.