Hi Moshe,
> This is the line in PDF :
>
> 0.3 g
> 377.28 42.3 m 377.28 9.9
> 1 w l h S
It looks to me like the "l" should be moved to after the destination
coordinates. Now the line width "1 w" is inserted before the "l" so
(problem 1) the "l" has no coordinates and (problem 2) the renderer does
not know what "377.28 9.9" is supposed to mean.
Also, I am not sure the "h" should be there. You are drawing a straight
line, and the "h" closes the subpath by appending another straight line
segment back to the starting point like in a polygon.
Regards,
Klas
> I tryed to add a function just to draw a line :
>
> *FUNCTION pdfLine( x1, y1, x2, y2, cUnits ,nWidth)
>
> local cTmp := ""
>
> t_aReport[ PAGEBUFFER ] += CRLF + "0.3 g " // test gray
>
> IF cUnits == "I" // inches
> y1 := t_aReport[ PAGEY ] - y1 * 72 // unit is 1/72 of inch
> y2 := t_aReport[ PAGEY ] - y2 * 72 // unit is 1/72 of inch
> x1 := x1 * 72
> x2 := x2 * 72
> endif
>
> t_aReport[ PAGEBUFFER ] += CRLF + hb_ntos( x1 ) + " " + hb_ntos( y1 )
> + " m " + ;
> hb_ntos( x2) + " " + hb_ntos( y2 )
>
>
> if !empty(nWidth)
> t_aReport[ PAGEBUFFER ] += CRLF + hb_ntos(nWidth)+ " w "
>
> endif
> t_aReport[ PAGEBUFFER ] += " l h S"
>
>
> return NIL
> *
> I am not familiar with PDF enough to understand what is wrong...
>
>
> On Friday, December 2, 2016 at 9:59:56 AM UTC-5, Toni Martins wrote:
>
> Can you post the code?
> Or you can suppress some lines to see here the problem is.
>
>
> sexta-feira, 2 de Dezembro de 2016 às 14:52:15 UTC, Moshe Mordkovych
> escreveu:
>
> Hi All,
>
> I produce report with hbvpdf. All is ok but when scrolling in
> gives this error (on some pages)
>
> *An error exists on this page. Acrobat may not display the page
> correctly. Please contact the person who created the PDF
> document to correct the problem.
>
> *I need to eliminate the error, it will make me customer nervous*
>
> *Please help*
> *
> <mailto:
harbour-user...@googlegroups.com>.