Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Procedure for adding license to IOS 10 years 6 months ago #4113

  • abi_inflo
  • abi_inflo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Hi,

I purchased the professional license for IOS pdf viewer. Kindly tell me the procedure to add the license to the project.

I have few more doubts on this,

1. The fonts in the pdf is different than the one showing in the pdf viewer and the bold or italic texts are displayed as plain text in the pdf viewer. Do I need to add any font for this? or will it work fine on professional version?

2. Currently the pages are scrolling in vertical direction. How to change it to scroll in Horizontal direction.

3. We need to show 2 pages in the landscape view(except the first page). Kindly let us know the areas to change.

Regards,
Abilash.G

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

Procedure for adding license to IOS 10 years 6 months ago #4115

  • abi_inflo
  • abi_inflo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Hi,

In my question, Points 2 and 3 are achieved. I made the following changes to make it work.

In vOpen method of pdfview.m, I added

defView = 3;
int i = 1;
int count = Document_getPageCount(doc);
bool *verts = (bool *)calloc( sizeof(bool), count);
verts[0] = false;
for (i = 1; i<count; i++ ) {
verts = true;
}
...

m_view = [[PDFVDual alloc] init:false :NULL :0 :verts :count-1];

This change is working as expected.

However, when switching from portrait to landscape mode, the pdf pages are not resized to fit to page automatically and when we flip it from landscape to portrait, two half pages are displayed instead of one complete page. Kindly let us know how to handle this.

Thanks,
Abilash.G

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

Procedure for adding license to IOS 10 years 6 months ago #4141

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
Hi,
You can add font you want use in APP_Init() ,add the font in fontfileList.

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

  • Page:
  • 1
Powered by Kunena Forum