Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

RadaeePDF API Changes 2 years 1 month ago #15718

  • Kudryavtsev
  • Kudryavtsev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Ok, I get that but there was no API to change vertical indent before the first page only in ver. 3.53 as well. Am I wrong?

vSetPageGap that I found changes gaps between all pagas.

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

RadaeePDF API Changes 2 years 1 month ago #15719

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
page scrolling is not change from native API, but from viewer classes.
it seems you are decide to use old viewer classes, so this seems can't fixed.

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

RadaeePDF API Changes 2 years 1 month ago #15720

  • Kudryavtsev
  • Kudryavtsev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
We are taking about the top offset of the document, which can help us to make the full screen preview of the document. It's a grey space between the top of the screen and the first page (we want to use that as space behind toolbar, which can be hidden by click).
Now the top offset before the first page is implemented as immutable indentation (page gap), which is calculated as a half of the indentation between pages. And if we trying to change this value (vSetPageGap), indentations between pages changes too. It's not what we need.

And our question is - do you have any plans to add functionality to change the top offset before the first page only?

We are trying to do this ourselves, and the only way we found is to change PDFLayoutVert class vLayout method by adding needed offset to the "y" variable during initialisation. But that seems like a bad idea for the future updates of your library

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

RadaeePDF API Changes 2 years 1 month ago #15721

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
about extra space of top gap to document.
you can modify PDFLayoutVert.vLayout()
in last demo, line 25:
        int y = m_page_gap>>1;
change to:
        int y = (m_page_gap>>1) + toolbar_height;

if you the toolbar layout height is calcuted as "dp" instead of "px", you may need convert dp to px values.

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

RadaeePDF API Changes 2 years 1 month ago #15724

  • Kudryavtsev
  • Kudryavtsev's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Thanks. As we started the update from ver. 3.53 to ver. 3.65.8 we faced one more issue. Ver. 3.65.8 shows watermarks as if it doesn't have license. But we have it and ver 3.53 worked fine. Since the function Global.Init was changed and now we don't send license data as arguments of function, we initialize mCompany, mEmail, mKey before calling Global.Init
Is that right? Any suggestions?

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

RadaeePDF API Changes 2 years 1 month ago #15725

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Last 3.65.x cleaned up the version type numbering.
May you check the code, please?
Standard = 1
Professional = 2
Premium = 3
 

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

Powered by Kunena Forum