- Posts: 5
- 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
Layout Parameter & Fit-Modes
- offlinebouncer
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
11 years 10 months ago #6187
by offlinebouncer
Layout Parameter & Fit-Modes was created by offlinebouncer
How do I set LayoutParameter and FitMode in iOS-SDK?
We need this to show cover in PDF correct (facing pages).
We need this to show cover in PDF correct (facing pages).
IP: 192.168.0.71
11 years 10 months ago - 11 years 10 months ago #6203
by radaee
Replied by radaee on topic Layout Parameter & Fit-Modes
like this code in [PDFView vOpen]:
Code:
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz:1 :NULL :0];
Last edit: 11 years 10 months ago by .
- offlinebouncer
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
IP: 192.168.0.71
11 years 10 months ago #6204
by offlinebouncer
Replied by offlinebouncer on topic Layout Parameter & Fit-Modes
The code does not work:
bool horz[1]; -> Expected Expression
horz[0] = false; -> Use of undeclared Identifier "horz"
???
bool horz[1]; -> Expected Expression
horz[0] = false; -> Use of undeclared Identifier "horz"
???
- offlinebouncer
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
IP: 192.168.0.71
11 years 10 months ago #6205
by offlinebouncer
Replied by offlinebouncer on topic Layout Parameter & Fit-Modes
OK...it seems to be a compiler-bug. You cannot declare a variable on the first line inside a :case.
I changed the code to this, which compiles:
defView = 3;
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz :1 :NULL :0];
But: The view is still wrong! Page 1 (Cover) of PDF must be viewed allone in DualView!
I changed the code to this, which compiles:
defView = 3;
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz :1 :NULL :0];
But: The view is still wrong! Page 1 (Cover) of PDF must be viewed allone in DualView!
- offlinebouncer
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
IP: 192.168.0.71
11 years 10 months ago #6206
by offlinebouncer
Replied by offlinebouncer on topic Layout Parameter & Fit-Modes
You postet wrong code! I figured it out myself now:
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :NULL :0 :horz :1];
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :NULL :0 :horz :1];
- offlinebouncer
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
IP: 192.168.0.71
11 years 10 months ago #6207
by offlinebouncer
Replied by offlinebouncer on topic Layout Parameter & Fit-Modes
How about setting fit modes?
Time to create page: 0.418 seconds