【Foxit PDF SDK】福昕GSDK如何将PDF的页面渲染到Bitmap?

请参考以下代码:

// 假设PDFPage页面已经加载并解析。

int width = (int) page.getWidth();

int height = (int) page.getHeight();

Matrix2D matrix = page.getDisplayMatrix(0, 0, width, height, page.getRotation());

//为渲染准备位图。

Bitmap bitmap = new Bitmap(width, height, e_DIBArgb, null, 0);

bitmap.fillRect(0xFFFFFFFF, null);

//渲染页面。

Renderer render = new Renderer(bitmap, false);

render.startRender(page, matrix, null);