objective c - new page in pdf created by app -


i have app creates report in pdf form works fine reports going on onto second page. how start new page?

the method used generate pdf is:

uigraphicsbeginpdfcontexttofile(filepath), cgrectzero, nil) uigraphicsbeginpdfpagewithinfo (cgrectmake(0, 0, 792, 1122), nil) 

all code drawing objects on page

uigraphicsendpdfcontext(); 

i have tried using cgpdfcontextbeginpage getting nowhere.

just call uigraphicsbeginpdfpagewithinfo() again start new page:

uigraphicsbeginpdfcontexttofile(...);  uigraphicsbeginpdfpagewithinfo(...); // ... code drawing first page ... uigraphicsbeginpdfpagewithinfo(...); // ... code drawing second page ... uigraphicsendpdfcontext(); 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -