- Posts: 17
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
PDF Reader Thumbnail did not work well
11 years 1 month ago #8527
by wdbutt
PDF Reader Thumbnail did not work well was created by wdbutt
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.
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.
11 years 1 month ago - 11 years 1 month ago #8532
by emanuele
Replied by emanuele on topic PDF Reader Thumbnail did not work well
Hi,
you should also increase the thumbview touch detect range.
In PDFThumbView class, touchesEnded method, you have to modify the code as follow:
before:
after:
you should also increase the thumbview touch detect range.
In PDFThumbView class, touchesEnded method, you have to modify the code as follow:
before:
Code:
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:
Code:
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];
}
Last edit: 11 years 1 month ago by emanuele.
11 years 1 month ago #8540
by emanuele
Replied by emanuele on topic PDF Reader Thumbnail did not work well
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.
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.
11 years 1 month ago - 11 years 1 month ago #8542
by wdbutt
Replied by wdbutt on topic PDF Reader Thumbnail did not work well
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.
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.
Last edit: 11 years 1 month ago by wdbutt.
11 years 1 month ago #8543
by emanuele
Replied by emanuele on topic PDF Reader Thumbnail did not work well
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.
Unfortunately, is not possible to distinguish between email or other link types and give a different transparency color.
Time to create page: 0.404 seconds