- Posts: 3
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Reflow
IP: 192.168.0.71
11 years 3 months ago #8118
by zarei
IP: 192.168.0.71
11 years 3 months ago #8128
by radaee
lke this:
Page page = Document.GetPage(pageno);
int width = 700;
int height = page.ReflowStart(width, 2.0f, true_or_false);
if(heght > 2000) height = 2000;
Bitmap bmp = Bitmap.CreateBitmap(width + 20, height + 20, RGBA32);
bmp.erase(-1);//erase to white
page.ReflowToBmp(bmp, 10, 10);//10 pixels for both left and top margin.
//to do: display or save bmp.
bmp.recycle();
page.Close();
Page page = Document.GetPage(pageno);
int width = 700;
int height = page.ReflowStart(width, 2.0f, true_or_false);
if(heght > 2000) height = 2000;
Bitmap bmp = Bitmap.CreateBitmap(width + 20, height + 20, RGBA32);
bmp.erase(-1);//erase to white
page.ReflowToBmp(bmp, 10, 10);//10 pixels for both left and top margin.
//to do: display or save bmp.
bmp.recycle();
page.Close();
IP: 192.168.0.71
11 years 3 months ago #8139
by zarei
IP: 192.168.0.167
11 years 3 months ago - 11 years 3 months ago #8140
by Davide
Hi,
check this: www.androidpdf.mobi/documentation/javado...age.html#ReflowStart (float, float, boolean)
check this: www.androidpdf.mobi/documentation/javado...age.html#ReflowStart (float, float, boolean)
Last edit: 11 years 3 months ago by poudel.
Time to create page: 0.407 seconds