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

TOPIC:

PDF Reader Thumbnail did not work well 10 years 2 months ago #8527

  • wdbutt
  • wdbutt's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi
I'm using pdf reader. I'm facing problem with pdf thumbnail. When I open my magzine pdf and this is image of my custom change in pdfthumbnailinit method (cloudup.com/cB-bkFBHL_t). I only increase the size of thumbnail in this code. So problem is when I scroll thumbnail to right after bouncing back and goes to (cloudup.com/cgltd8RYMa9) and when you tap on another thumbnail, nothing happens. You have to tap multiple times or move the slider and tap on a page to go to that page. Please give the solution asap.

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

PDF Reader Thumbnail did not work well 10 years 2 months ago #8532

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you should also increase the thumbview touch detect range.
In PDFThumbView class, touchesEnded method, you have to modify the code as follow:

before:
if( touch.timestamp - m_tstamp_tap < 0.15 )//single tap
            {
                bool single_tap = true;
                if( dx > 5 || dx < -5 )
                    single_tap = false;
                if( dy > 5 || dy < -5 )
                    single_tap = false;
                if( single_tap )
                    [self onSingleTap:(point.x - self.contentOffset.x) * m_scale :(point.y - self.contentOffset.y) * m_scale];
            }

after:
if( touch.timestamp - m_tstamp_tap < 0.15 )//single tap
            {
                bool single_tap = true;
                if( dx > 10 || dx < -10 )
                    single_tap = false;
                if( dy > 10 || dy < -10 )
                    single_tap = false;
                if( single_tap )
                    [self onSingleTap:(point.x - self.contentOffset.x) * m_scale :(point.y - self.contentOffset.y) * m_scale];
            }

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

Last edit: by emanuele.

PDF Reader Thumbnail did not work well 10 years 2 months ago #8540

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

the link colors are embedded in the pdf encoding.
if you create a pdf by yourself, you can set a different color for email links.

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

PDF Reader Thumbnail did not work well 10 years 2 months ago #8542

  • wdbutt
  • wdbutt's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi
If I could create pdf reader by myself then why I purchased from you..
I see the code and see that I can change the url and email marked color in PDFVGlobal class as you can see in image (cloudup.com/crzSZix_DCD). So tell me that Is it possible to marked url and email color with different color.

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

Last edit: by wdbutt.

PDF Reader Thumbnail did not work well 10 years 2 months ago #8543

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Global_setAnnotTransparency set the annotation transparency color (for all annotations).
Unfortunately, is not possible to distinguish between email or other link types and give a different transparency color.

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

  • Page:
  • 1
Powered by Kunena Forum