Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

libharu : Link Annotation

Status
Not open for further replies.

newtofoxpro

Programmer
Sep 16, 2007
301
IN
Is it possible to create "Link Annotation" with libhpdf.dll in vfp ?

I trying

Annot=HPDF_Page_CreateLinkAnnot(IndexPage,Rect,Dst)

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

Tamar
 
Hi,
FoxyPreviewer and FoxCharts call LibHPDF.Dll
What is your exact goal here?
Koen
 
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
 
Like the others, I am baffled by what you are trying to achieve. Your "Link annotation demo" says nothing to me.

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
 

Annot=HPDF_Page_CreateLinkAnnot(IndexPage,Rect,Dst)

stuck at "Rect
 
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
 
I see his problem, in the sample c source he needs to pass a structure (object) with four properties

Code:
    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 [Smile]ing

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.
 
Thank you Griff

how to declare

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


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

Best Regards
 
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 [Smile]ing

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.
 
Thank you Griff, Pls give me time to work on provided information by you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top