Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, July 19, 2015 10:28:14 PM(UTC)
la_morte1977

Groups: Registered
Posts: 30


Hello

I open a pdf as rasterimage on rasterimageviewer.
It is possible to overlay an image from the coordinates of the mouse over resterimageviewer? After overlapped can I save the edited file?

Checking if the original PDF is vector format (detecting if searcheable pdf), how can I overlay it and save the vector pdf?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, July 21, 2015 6:59:53 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

For raster PDF pages, you can create an annotation stamp object over the original image and assign the overlay image to the annotation stamp object. You should be able to chnage the location of the stamp object to match the mouse location. Once the location is accepted, burn the annotation (realize it) and save the resulting image as raster PDF.
About determining if the PDF is searchable, please see the following forum post:
http://support.leadtools.com/SupportPortal/CS/forums/39924/showpost.aspx

Whether you can add an image depends on the contents and type of the PDF page. Please send a sample PDF file to support@leadtools.com and mention this forum post so that we can investigate more about this part.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Tuesday, July 21, 2015 8:50:12 AM(UTC)
la_morte1977

Groups: Registered
Posts: 30


Hello Hasan,
I would thank you for the help


I had in mind something like this example using 3rd party code:

'Open document
Dim pdfDocument As New Document("input.pdf")

'Create image stamp
Dim imageStamp As New ImageStamp("logo.jpg")
'on top or background
imageStamp.Background = False
imageStamp.XIndent = 100
imageStamp.YIndent = 100
imageStamp.Height = 300
imageStamp.Width = 300
imageStamp.Rotate = Rotation.on270
imageStamp.Opacity = 0.5
'Add stamp to particular page
pdfDocument.Pages(1).AddStamp(imageStamp)

'Save output document
pdfDocument.Save("output.pdf")


Sure that cannot do with Leadtools?

I find interesting the use of annotation stamp with realize command.
Can you help me how to create an annotation stamp object on windows form (vb.net or c#)

I need an example with a rasterimageviewer. By clicking over the image you have to create an automatic annotation stamp with a picture inside.

I tried to read the documentation on this link https://www.leadtools.com/help/leadtools/v19/dh/to/webframe.html?page=../to/leadtools.topics.annotations~an.topics.implementuserdefinedobjectswithleadtoolsannotations.html, but it seems to me incomprehensible.

Maybe, having a simple example, I create an better idea.

Edited by moderator Thursday, March 23, 2017 5:15:39 PM(UTC)  | Reason: Not specified

 
#4 Posted : Thursday, July 23, 2015 5:39:14 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

For raster images, the following online help topic shows how you can create an Annotation Stamp object:
https://www.leadtools.com/help/leadtools/v19/dh/an/leadtools.annotations~leadtools.annotations.annstampobject.html

After creating the Stamp object, you can burn (realize) is using one of the burning methods (Burn, BurnToRectWithDpi, etc.). You can find a useful sample code here:
https://www.leadtools.com/help/leadtools/v19/dh/javascript/ac/leadtools.annotations.core~leadtools.annotations.core.annrenderingengine~burntorectwithdpi.html

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.126 seconds.