×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

libharu : Link Annotation

libharu : Link Annotation

libharu : Link Annotation

(OP)
Is it possible to create "Link Annotation" with libhpdf.dll in vfp ?

I trying

Annot=HPDF_Page_CreateLinkAnnot(IndexPage,Rect,Dst)

stuck at "Rect"

RE: libharu : Link Annotation

What is libhpdf.dll? Can you show us what the documentation says about this call?

Tamar

RE: libharu : Link Annotation

Hi,
FoxyPreviewer and FoxCharts call LibHPDF.Dll
What is your exact goal here?
Koen

RE: libharu : Link Annotation

(OP)
Link

I have tried my level best to linking pdf pages. But stuck at HPDF_Page_CreateLinkAnnot

Link

Above code in C I trying to make it in VFP

RE: libharu : Link Annotation

Hi,

what is exactly "linking pdf pages"?

Koen

RE: libharu : Link Annotation

(OP)

RE: libharu : Link Annotation

Like the others, I am baffled by what you are trying to achieve. Your "Link annotation demo" says nothing to me.

Quote:

Above code in C I trying to make it in VFP

So you've given us around 250 lines of C, and you expect us to figure out for ourselves what it does and then to translate it to VFP for you, without knowing what your goals are or why you want to do this.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: libharu : Link Annotation

(OP)

Annot=HPDF_Page_CreateLinkAnnot(IndexPage,Rect,Dst)

stuck at "Rect"

RE: libharu : Link Annotation

OK, clear, but why do you want to construct this kind of complicted PDF file with VFP?
Have you tried FoxyPreviewer which has a nice PDF-construction protocol? Maybe that is a good starter for you.
Koen

RE: libharu : Link Annotation

I see his problem, in the sample c source he needs to pass a structure (object) with four properties

CODE --> c

rect.left = tp.x - 4;
    rect.bottom = tp.y - 4;
    rect.right = HPDF_Page_GetCurrentTextPos (index_page).x + 4;
    rect.top = tp.y + 10;

    HPDF_Page_MoveToNextLine (index_page);

    dst = HPDF_Page_CreateDestination (page[0]);

    annot = HPDF_Page_CreateLinkAnnot (index_page, rect, dst); 

Could you use a variation on this:

CODE

oRect = CreateObject("Collection")
oRect.additem(123456,"left")
oRect.additem(123456,"bottom")
oRect.additem(123456,"right")
oRect.additem(123456,"top") 

Perhaps?

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: libharu : Link Annotation

(OP)
Thank you Griff

how to declare

declare integer HPDF_Page_CreateLinkAnnot in (m.dll) integer, ??????, integer


Quote (Have you tried FoxyPreviewer)

Yes. I am trying Index-Page & Details-Pages

Best Regards

RE: libharu : Link Annotation

I thought you were past there...

In VFP for Windows API calls we do things like this:

CODE

DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
		INTEGER handle,;
		STRING @sFile,;
		STRING @lp,;
		STRING @DIR,;
		STRING @dir1,;
		INTEGER ncmd 

I would imagine it's similar for your .dll

Sorry, I may have misunderstood, you are wondering how to declare the ??? parameter to which you pass the Rect structure?

I'd probably look at the .h file for clues - I have no idea at this point.



Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: libharu : Link Annotation

(OP)
Thank you Griff, Pls give me time to work on provided information by you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close