Insert image on pdf

Hello,


I need to insert an image on a pdf file. Is this functionallity covered by any of your products?

Best Regards!

Hi There,


Thank you for your interest in our products.

We don’t have such a product at GroupDocs. However, our parent organization offers a Java API to process PDF file format comprehensively - that API product is known as Aspose.Pdf for Java. Please feel free to have a look at the relevant resources:

Product Details: http://www.aspose.com/java/pdf-component.aspx
Technical Docs: http://www.aspose.com/docs/display/pdfjava
API Ref Docs: http://www.aspose.com/api/java/pdf
Download: http://www.aspose.com/downloads/pdf-family/java
Source Code Examples: https://github.com/aspose-pdf/Aspose.Pdf-for-Java
Support Forum: https://forum.aspose.com/

Best Regards

I would like to put an image on pdf. As far as I can see, I have to do it in background processing the file, but the user has to tell me where to put that image in the document.


How can I know from the back-side the position the user has selected. I imagine this functionallity is covered by groupdocs, since annotations must use something similar to select the text.

Thank you very much!

Best Regards

Hi There,


Thank you for coming back with some details about your usage scenario.

Yes, we do have an API at groupdocs.com called GroupDocs.Annotation which lets developer annotate text and images within various document formats including PDF documents. However, as far as I understand, you want to insert a new image in an existing PDF document which is currently unavailable in GroupDocs.Annotation.

Some of the annotation types on existing text and images of a document as supported by GroupDocs.Annotation include:

  • Text
  • Area
  • Point
  • TextStrikeout
  • Polyline
  • TextField
  • Watermark

If your use case involves multiple document formats and you want to insert/annotate images, then probably GroupDocs.Annotation will be more suitable for you. However, we’ll have to log a feature request for inserting new images into existing documents which may take sometime since currently our product teams at GroupDocs are working over next generation APIs which are quite different from current APIs.

If your use case is limited to PDF documents where you want to insert/annotate a new image at some specified position, then probably Aspose.Pdf for Java will be more suitable to you and below article may be of your interest:

http://www.aspose.com/docs/display/pdfjava/Add+Image+to+Existing+PDF+File
http://www.aspose.com/docs/display/pdfjava/Working+with+Annotations

I will be looking forward to hear further details and thoughts from your side.

Have a nice weekend!

For the moment, I only need to know where the user wants to put the image. I am currently able to insert the image in the file, so my only problem is to know the page in the whole document and position where the user wants to put the image.


How can the user tell me these parameters? Do i need to use annotations?

Thank you very much!

Best Regards!

Hi There,

Thanks for your further post.

Anonymous:
I am currently able to insert the image in the file, so my only problem is to know the page in the whole document and position where the user wants to put the image.

Could you please share how did you achieve that? Which API did you use for that purpose? A sample project will help us to know how you are doing that and based on that, we can recommend you a proper path to fulfill your requirements.

Best Regards

Hello,


The only thing I need is to know where the user wants to put the image. Since I am using Groupdocs Viewer to show the document to the user in the front-end of my application, I would like to know on what page the user wants to do that and the position on that page.

I think my question is clear, so please, can you help me get the information I need from the server side?

Best Regards!

Hi There,


Thank you for sharing further details.

Now I am clear how you are trying to achieve this. Since this is a support request related to GroupDocs.Viewer, so please create a new thread in GroupDocs.Viewer forum with a proper user account instead of ‘Anonymous’:

https://forum.groupdocs.com/c/viewer

Currently you have created this thread as ‘Anonymous’, it is impossible for us to keep track of the issues raised by you, so thank you for the cooperation. Once you have created such thread at GroupDocs.Viewer forum, the concerned support staff will share more information concerning to your requirement.

Kind Regards