Results 1 to 10 of 10

Thread: [RESOLVED] pdf with button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    Resolved [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?

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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.

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: pdf with button

    Do you use a PDF printer driver? Or do you generate the PDF yourself?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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

  9. #9
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: pdf with button

    I hope you get this working.
    Maybe next time also mention the components you use!

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Oct 2015
    Posts
    93

    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
  •  



Click Here to Expand Forum to Full Width