Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPDF_Page_SetDash unable to convert 'table' to 'const unsigned .... #1

Open
abdulrahmanmadeni opened this issue Feb 27, 2015 · 4 comments

Comments

@abdulrahmanmadeni
Copy link

I am unable to run HPDF_Page_SetDash in my lua script to product dash line. The error message was unable to convert 'table' tof 'const unsigned ...... hope u can rectify this

@tavikukko
Copy link
Owner

Hi,
I have not done yet all bindings, including this one HPDF_Page_SetDash. I cant promise when i have time, but its easy so if you have time..

@tavikukko tavikukko reopened this Mar 2, 2015
@abdulrahmanmadeni
Copy link
Author

Hi...
Maybe I can help you to do the binding with assistance and guides from you,
as I am really concentrating to develop PDF output using lua and luahpdf
library.

On Tue, Mar 3, 2015 at 3:30 AM, Tomi Tavela [email protected]
wrote:

Hi,
I have not done yet all bindings, including this one HPDF_Page_SetDash. I
cant promise when i have time, but its easy so if you have time..


Reply to this email directly or view it on GitHub
#1 (comment)
.

@tavikukko
Copy link
Owner

First make a fork of this project, then write more bindings in hpdf.lua (using file hpdf.h in libharu) for correct ffi.cdef signatures, I would be glad if you contribute the changes back to here by making a pull request.
Its quite easy, for example check the HPDF_Page_Circle binding as a sample.

First you need to introduce it:
void * HPDF_Page_Circle(HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL ray);

And then create function for calling it:
function page:circle(x, y, ray)
return libharu.HPDF_Page_Circle(self.___, x, y, ray)
end

I will help if you encounter problems, good luck and thanks!

@abdulrahmanmadeni
Copy link
Author

Hi....

Thnx for ur reply... I will inform u if I encounter any problems as soon as
possible.

On Tue, Mar 3, 2015 at 4:10 PM, Tomi Tavela [email protected]
wrote:

First make a fork of this project, then write more bindings in hpdf.lua
(using file hpdf.h in libharu) for correct ffi.cdef signatures, I would be
glad if you contribute the changes back to here by making a pull request.
Its quite easy, for example check the HPDF_Page_Circle binding as a sample.

First you need to introduce it:
void * HPDF_Page_Circle(HPDF_Page page, HPDF_REAL x, HPDF_REAL y,
HPDF_REAL ray);

And then create function for calling it:
function page:circle(x, y, ray)
return libharu.HPDF_Page_Circle(self.___, x, y, ray)
end

I will help if you encounter problems, good luck and thanks!


Reply to this email directly or view it on GitHub
#1 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants