Hello,
I am evaluating the PDF Creator software and our users need the ability to extract a section of the PDF document and save it as a bitmap. The section would be selected by the user. Is there a way to accomplish this with this software? I am using c++ to create the application.
Extracting a bitmap from existing PDF document.
Hello,
The PDF Creator has a method “DrawCurrentPage†which will draw the contents of document to a DC. You then extract the position of the image you need. I have included a code snippet which might assist you.
pdf->DrawCurrentPage( (long) hMemDC, 0 );
// reset previous scaling
SetViewportExtEx( dc, oldView.cx, oldView.cy, NULL );
SetWindowExtEx( dc, oldWindow.cx, oldWindow.cy, NULL );
SetMapMode( dc, oldMap );
Hope this helps.
The PDF Creator has a method “DrawCurrentPage†which will draw the contents of document to a DC. You then extract the position of the image you need. I have included a code snippet which might assist you.
pdf->DrawCurrentPage( (long) hMemDC, 0 );
// reset previous scaling
SetViewportExtEx( dc, oldView.cx, oldView.cy, NULL );
SetWindowExtEx( dc, oldWindow.cx, oldWindow.cy, NULL );
SetMapMode( dc, oldMap );
Hope this helps.