Layout Parameter & Fit-Modes - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Layout Parameter & Fit-Modes

Layout Parameter & Fit-Modes 4 years 6 months ago #6187

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
How do I set LayoutParameter and FitMode in iOS-SDK?
We need this to show cover in PDF correct (facing pages).

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

Layout Parameter & Fit-Modes 4 years 6 months ago #6203

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
like this code in [PDFView vOpen]:
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz:1 :NULL :0];

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

Last edit: by .

Layout Parameter & Fit-Modes 4 years 6 months ago #6204

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
The code does not work:

bool horz[1]; -> Expected Expression
horz[0] = false; -> Use of undeclared Identifier "horz"

???

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

Layout Parameter & Fit-Modes 4 years 6 months ago #6205

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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!

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

Layout Parameter & Fit-Modes 4 years 6 months ago #6206

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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];

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

Layout Parameter & Fit-Modes 4 years 6 months ago #6207

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
How about setting fit modes?

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

  • Page:
  • 1
Powered by Kunena Forum