paperclips turn - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: paperclips turn

paperclips turn 2 years 2 months ago #11065

  • Viachaslau
  • Viachaslau's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi! We have a small problem. When we use landscape orientation pdf - clip inverted. Portrait orientation pdf - normal.
The code in your project.
Project PDFReader. Class PDFReader.java. Method onTouchNote(MotionEvent event):
private boolean onTouchNote(MotionEvent event) {
if (m_status == STA_NOTE) {
switch (event.getActionMasked()) {
case MotionEvent.ACTION_UP:
PDFPos pos = m_view.vGetPos((int) event.getX(), (int) event.getY());
PDFVPage vpage = m_view.vGetPage(pos.pageno);
Page page = vpage.GetPage();
if (page != null) {
//float pt[] = new float[2];
//pt[0] = pos.x;
//pt[1] = pos.y;
//page.AddAnnotText(pt);
~~~~~~~~~~~~~add this code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
float pt1[] = new float[4];
pt1[0] = pos.x;
pt1[1] = pos.y;
pt1[2] = pt1[0] + 20;
pt1[3] = pt1[1] + 25;
page.AddAnnotAttachment("/storage/emulated/0/Download/myPDF.pdf", 2, pt1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_view.vRenderSync(vpage);
if (m_listener != null)
m_listener.OnPageModified(vpage.GetPageNo());
}
break;
}
return true;
}
return false;
}

Can we somehow affect this?




Attachments:

Please Log in or Create an account to join the conversation.

paperclips turn 2 years 2 months ago #11066

  • Viachaslau
  • Viachaslau's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Attachments:

Please Log in or Create an account to join the conversation.

paperclips turn 2 years 2 months ago #11084

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
can you reproduce the issue with all the annotation types?
Can you reproduce the issue with all your pdfs? Can you please send us one of these?
I think that the problem is related to the orientation of the pdf itself.

Please Log in or Create an account to join the conversation.

paperclips turn 2 years 2 months ago #11089

  • Viachaslau
  • Viachaslau's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi. Yes. This problem is related to the orientation of the pdf itself.
The only problem with attached annotations. Text annotation is good.
www.dropbox.com/s/rtq3azivs6lprq4/12345.zip?dl=0
> pdf files

Please Log in or Create an account to join the conversation.

Last edit: by Viachaslau.

paperclips turn 2 years 1 week ago #11395

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
sorry for the late reply.

We have sent the issue to our developers and we'll get back to you as soon as possible.

Please Log in or Create an account to join the conversation.

paperclips turn 2 years 1 week ago #11399

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
we have just published a new 3.9RC1 version of the library that solves the issue.
You can download it here : www.radaeepdf.com/download/download-andr...ile/64-radaeepdf-3-9
The following user(s) said Thank You: Viachaslau

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum