Page 1 of 1

hmg HPDF

Posted: Mon May 18, 2026 1:59 pm
by serge_girard
Hello,

Today I wanted to use an image in my PDF:

Code: Select all

@ 15,180   HPDFPRINT IMAGE cImage WIDTH 72  HEIGHT 430 TYPE PNG
I tried several syntaxis but all in vain!

and this now gives an error:
Error E0030 Syntax error "syntax error at '@'"

I used it many times before and now I won't compile....

Anybody an idea what's wrong suddenly?

Serge

Re: hmg HPDF

Posted: Mon May 18, 2026 10:15 pm
by danielmaximiliano
Hola Serge : revisa si estás usando oops: define xxxx
Setproperty("main", xxxxx / getproperty("main", xxxx

Si estás usando sintaxis clásica
@ x, y xxxxxx
Main. Xxxxx. Xxxxx

Re: hmg HPDF

Posted: Mon May 18, 2026 10:33 pm
by martingz
Serge
This code works well for me; I've tested it and it generates over 20,000 PDFs every 5 days.


@ 5,05 PRINT IMAGE "F:\SCA\LNCDLL\comapa.png" width 45 height 25
@ 5,180 PRINT IMAGE "F:\SCA\LNCDLL\Escudoa.png" width 25 height 25

Re: hmg HPDF

Posted: Tue May 19, 2026 6:47 am
by serge_girard
It is all about HMG_HPDF ... (Dr. Claudio Soto )

Apparantly I had a wrong version of hmg_hpdf.ch:

Code: Select all

 
#xcommand @ <nRow> , <nCol> HPDFPRINT IMAGE <cImage> ;
	WIDTH <nWidth> ;
	HEIGHT <nheight> ;
	[ <stretch : STRETCH> ] ;
	=> ;
	_HMG_HPDF_IMAGE ( <cImage> , <nRow> , <nCol> , <nheight> , <nWidth> , <.stretch.> ) 
Now it is working fine.

S