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

TOPIC:

can't load network PDF file 8 years 7 months ago #9498

  • NovaRadaeePdf
  • NovaRadaeePdf's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
According to print the log, I have a question: From "2015-08-27 00:55:51.426" to "2015-08-27 00:55:58.709" don't have any log. I want to know, what action in the seven seconds, and how to shorten the period of time? Thank you!

the log:
2015-08-27 00:55:49.198 Mobile V1.0[2802:9017] END write file at path: /private/var/mobile/Applications/9A45746B-4875-4810-A01A-05832992E9C7/tmp/280125152133.pdf
2015-08-27 00:55:49.199 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:49.200 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 0-8192
2015-08-27 00:55:49.907 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:49.908 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:49.909 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 114688-122880
2015-08-27 00:55:50.119 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:50.121 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:50.122 Mobile V1.0[2802:9017] START Download blocks: 14 to 16
2015-08-27 00:55:50.123 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 122880-131072
2015-08-27 00:55:50.396 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:50.398 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:50.399 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:50.400 Mobile V1.0[2802:9017] START Download blocks: 15 to 17
2015-08-27 00:55:50.401 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 131072-131767
2015-08-27 00:55:50.584 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.586 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.586 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.587 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.588 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.589 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.590 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.591 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.592 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.604 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.605 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.607 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.608 Mobile V1.0[2802:9017] START Download blocks: 16 to 17
2015-08-27 00:55:50.611 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.612 Mobile V1.0[2802:9017] START Download blocks: 10 to 11
2015-08-27 00:55:50.614 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 81920-90112
2015-08-27 00:55:50.797 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.798 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.799 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.801 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.801 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.802 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:50.804 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.804 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:50.806 Mobile V1.0[2802:9017] START Download blocks: 10 to 11
2015-08-27 00:55:50.806 Mobile V1.0[2802:9017] START Download blocks: 10 to 12
2015-08-27 00:55:50.808 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 90112-98304
2015-08-27 00:55:50.991 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:50.992 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:50.993 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:50.994 Mobile V1.0[2802:9017] START Download blocks: 11 to 13
2015-08-27 00:55:50.995 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 98304-106496
2015-08-27 00:55:51.178 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.179 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.182 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.183 Mobile V1.0[2802:9017] START Download blocks: 12 to 14
2015-08-27 00:55:51.184 Mobile V1.0[2802:9017] Starting synchronous request to xxx.pdf with byte range: 106496-114688
2015-08-27 00:55:51.386 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.387 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.387 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.388 Mobile V1.0[2802:9017] START Download blocks: 13 to 15
2015-08-27 00:55:51.389 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.391 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.392 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.393 Mobile V1.0[2802:9017] START Download blocks: 14 to 16
2015-08-27 00:55:51.394 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.395 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.395 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.397 Mobile V1.0[2802:9017] START Download blocks: 10 to 11
2015-08-27 00:55:51.399 Mobile V1.0[2802:9017] START Download blocks: 10 to 12
2015-08-27 00:55:51.400 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:51.401 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:51.402 Mobile V1.0[2802:9017] START Download blocks: 11 to 12
2015-08-27 00:55:51.403 Mobile V1.0[2802:9017] START Download blocks: 11 to 13
2015-08-27 00:55:51.404 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.405 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.406 Mobile V1.0[2802:9017] START Download blocks: 12 to 13
2015-08-27 00:55:51.407 Mobile V1.0[2802:9017] START Download blocks: 12 to 14
2015-08-27 00:55:51.408 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.409 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.410 Mobile V1.0[2802:9017] START Download blocks: 13 to 14
2015-08-27 00:55:51.411 Mobile V1.0[2802:9017] START Download blocks: 13 to 15
2015-08-27 00:55:51.412 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.413 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.415 Mobile V1.0[2802:9017] START Download blocks: 14 to 15
2015-08-27 00:55:51.416 Mobile V1.0[2802:9017] START Download blocks: 14 to 16
2015-08-27 00:55:51.417 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.418 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.419 Mobile V1.0[2802:9017] START Download blocks: 15 to 16
2015-08-27 00:55:51.421 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:51.421 Mobile V1.0[2802:9017] START Download blocks: 0 to 1
2015-08-27 00:55:51.424 Mobile V1.0[2802:9017] PDFView rect :0.000000 64.000000 1024.000000 704.000000
2015-08-27 00:55:51.426 Mobile V1.0[2802:9017] START Download blocks: 0 to 1

///look at here

2015-08-27 00:55:58.709 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.710 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.711 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.711 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.712 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.713 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.714 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.716 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.717 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:58.719 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.720 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:58.720 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 11
2015-08-27 00:55:58.721 Mobile V1.0[2802:9c9b] Starting synchronous request to xxx.pdf with byte range: 8192-81920
2015-08-27 00:55:59.070 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:59.074 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.074 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.075 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.076 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.076 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.077 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.078 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.079 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.080 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.081 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16
2015-08-27 00:55:59.082 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:59.082 Mobile V1.0[2802:9c9b] START Download blocks: 0 to 1
2015-08-27 00:55:59.084 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 17
2015-08-27 00:55:59.090 Mobile V1.0[2802:9c9b] START Download blocks: 15 to 16

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

can't load network PDF file 8 years 7 months ago #9499

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
It's not possible to do an evaluation without the access to your PDF file and your streaming server.

Please, open a support ticket, address it to bug submission and provide us all the needed information.
The issue seems tight to the PDF file structure.

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

can't load network PDF file 8 years 7 months ago #9500

  • NovaRadaeePdf
  • NovaRadaeePdf's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
you can try it: 203.86.78.106:808/aaaa.pdf

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

can't load network PDF file 8 years 7 months ago #9502

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
hi, try use 203.86.78.106:808/aaaa.pdf ,add http://, I tried this url with demo ,open this file so quickly.NSURL support short url has some problem

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

can't load network PDF file 8 years 7 months ago #9506

  • NovaRadaeePdf
  • NovaRadaeePdf's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
self.httpStream = [[PDFHttpStream alloc] init];
[self.httpStream open:@"203.86.78.106:808/aaaa.pdf" :localPath];
[self PDFOpenStream:self.httpStream :@""];


This is my load code. Is it wrong? I load this need 35s

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

can't load network PDF file 8 years 7 months ago #9507

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
NSString *testfile = [[NSTemporaryDirectory() stringByAppendingString:@""] stringByAppendingString:@"aaaa.pdf"];
NSFileManager *fm = [NSFileManager defaultManager];
NSDictionary *attr =[fm fileAttributesAtPath:testfile1 traverseLink: NO] ;

Is your testFile create as this?

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

Powered by Kunena Forum