-
Jan 13th, 2022, 06:27 AM
#1
Thread Starter
Lively Member
[RESOLVED] pdf with button
hello, if I create a pdf and I have a www address on it, the cursor changes to hand and by clicking I open a link,
how can I redirect to a www address but for the pdf to be a button or an area that works like a link?
how to create a button on pdf
can you help?
-
Jan 13th, 2022, 06:36 AM
#2
Re: pdf with button
Is this somehow related to VB6 programming?
Adding buttons to a PDF:
https://www.google.com/search?q=add+...utton+to+a+pdf
-
Jan 13th, 2022, 06:54 AM
#3
Thread Starter
Lively Member
Re: pdf with button
I thought it was obvious that it is about creating pdf in vb6
and the link you provided in response has nothing to do with it (
searching in google? is this a joke)
Last edited by Krzysztof#; Jan 13th, 2022 at 07:05 AM.
-
Jan 13th, 2022, 07:53 AM
#4
Re: pdf with button
Do you use a PDF printer driver? Or do you generate the PDF yourself?
-
Jan 13th, 2022, 08:53 AM
#5
Thread Starter
Lively Member
Re: pdf with button
the code i am trying to modify is using pdf_inthe_box.ocx
in code with
Private PDFPrinter As pdfBox
Set PDFPrinter = pdfBox
PDFPrinter.NewPage
-
Jan 13th, 2022, 08:58 AM
#6
Thread Starter
Lively Member
Re: pdf with button
instructions for the functions this ocx uses http://www.synactis.com/pdf-in-the-box.htm
However, I do not embrace the creation of the button here
-
Jan 13th, 2022, 09:14 AM
#7
Thread Starter
Lively Member
Re: pdf with button
according to the instructions
it should be something like
pdfbox.SetLink
Sets a link to be activated in a rectangular area.
Syntax Declaration
Sub SetLink (
ByVal aX1 As Long,
ByVal aY1 As Long,
ByVal aX2 As Long,
ByVal aY2 As Long,
ByVal aLink As String
)
Note Comments
This method creates a "hot-spot" on the canvas, according to the arguments:
· aX1, aY1, aX2, aY2: coordinates of the hot spot.
· aLink: link specification.
-
Jan 13th, 2022, 09:21 AM
#8
Thread Starter
Lively Member
Re: pdf with button
as far as I understand correctly
it would then be just to add a button image
in the same place as the link area
-
Jan 13th, 2022, 11:16 AM
#9
Re: pdf with button
I hope you get this working.
Maybe next time also mention the components you use!
-
Jan 13th, 2022, 04:44 PM
#10
Thread Starter
Lively Member
Re: pdf with button
right, my mistake for giving too little detail.
button created successfully.
the only problem was the position of the button rectangle and the position of the link, which did not overlap due to a different scale for pdf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|