Click here to Skip to main content
15,891,895 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello.

I will explain you the problem and what I am doing.
I tried the PDFSharp lib to create pdfs.

But I came to the situation that I need a preview of the PDF, which is provided by the lib.

Now I want to insert an image to the pdf but where the mouse clicks and gets the coordinates of the pdf then puts the image on that clicked place.

Please advise.
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jan-16 18:05pm    
Not clear. Don't tell me that you want to handle clicks in the image in the viewer of the PDF file; this would be a task not for PDF, but for some application, which can actually could be embedded in HTML, as one of the possible solution. PDF is only good as a "electronic paper", a kind of print matter.
—SA
Zhivko Kabaivanov 12-Jan-16 20:31pm    
Yes, some application visualizes the PDF or prePDF. And with the click event to obtain the coords and place image there. Could you give me some directions?

1 solution

iTextSharp[^] will allow you to insert images into a pdf -
iTextSharp - Working with images[^]
C# Corner : Error Display[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900