AntoninoP wrote:I use libHaru for EMF 2 PDF, here https://github.com/APerricone/emf2pdf but the support is limited of what I need
see https://github.com/APerricone/emf2pdf/blob/master/FWH_Test/main.prg
void Emf2Pdf::ParseFile()
.....
case EMR_RECTANGLE: nRead += Rectangle(); break;
....
size_t Emf2Pdf::Rectangle()
{
RECTL bound;
fread(&bound, 4, 4, f);
float x = bound.left * xScale ;
float y = currHeight - bound.bottom * yScale ;
float rx = ( bound.right - bound.left) * xScale ;
float ry = (bound.bottom - bound.top) * yScale ;
HPDF_Page_Rectangle(page, x, y, rx, ry ) ;
if (currentPen.width > 0 && currentBrush.solid)
{
HPDF_Page_FillStroke(page);
}
else if (currentPen.width > 0)
{
HPDF_Page_Stroke(page);
}
else if (currentBrush.solid)
{
HPDF_Page_Fill(page);
}
return 16;
}
AntoninoP wrote:@Maustin , have you tried it? I will do a test ASAP.
4.- still work in the process to generate pdf from emf.
I would not say that it is usable in production for all cases, only for the simplest.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 55 guests