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

Eraser of PDF Ink

More
IP: 192.168.0.70 12 years 2 months ago #4892 by el3ony
Replied by el3ony on topic Eraser of PDF Ink
For just in case I want to inform you that I cannot add rect annotation either.
I try to use addAnnotRect but there is no rect showing after I added

Here is my code

Bitmap bmAddnot = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
float[] rect = new float[]{0, 0, bmAddnot.getWidth(), bmAddnot.getHeight()};
PDFView m_view = m_vPDF.PDFgetView();
PDFVPage v_page = m_vPDF.PDFgetView().vGetPage(m_page_no);
Page page = m_doc.GetPage(m_page_no);
page.ObjsStart();
Matrix mat = v_page.CreateInvertMatrix(m_view.vGetX(), m_view.vGetY());
mat.TransformRect(rect);
page.AddAnnotRect(mat, rect, 3, 0x80FF0000, 0x800000FF);
mat.Destroy();
m_vPDF.PDFgetView().vRender(v_page);
m_vPDF.invalidate();
More
IP: 192.168.0.70 12 years 2 months ago - 12 years 2 months ago #4893 by el3ony
Replied by el3ony on topic Eraser of PDF Ink
Sorry I just saw the rect it's showing at the bottom left so that's might be something wrong with the float[]rect and matrx ?

please look at the attachment.
Last edit: 12 years 2 months ago by McCloskey.
More
IP: 192.168.0.70 12 years 2 months ago #4894 by el3ony
Replied by el3ony on topic Eraser of PDF Ink
I try to print the log with this code

page.AddAnnotBitmap(bmAddnot, false, rect);
page.AddAnnotRect(mat, rect, 3, 0x80FF0000, 0x800000FF);

for (int i = 0; i < m_vPDF.PDFgetView().vGetPage(m_page_no).GetPage().GetAnnotCount(); i++) {
Annotation annot = m_vPDF.PDFgetView().vGetPage(m_page_no).GetPage().GetAnnot(i);
System.out.println(annot);
}

only one annototation show

rect is the only object showing on PDF but not Bitmap

what does this means?

Note: result of AddAnnotBitmap is always true
More
IP: 192.168.0.70 11 years 11 months ago #5701 by bashirisonline
Replied by bashirisonline on topic Eraser of PDF Ink
Any Success ??
Time to create page: 0.357 seconds
Powered by Kunena Forum