I can't seem to get how to do this, I need two sets of page numbers, the first set starts from i, ii, iii etc. The second set starts from 1, 2, 3, etc. For the first set, page i should not show the i, but page 1 should show the page number. If I removed the page i number, then page 1 also vanishes, anyone know how to handle this?
Related
Field codes:
Data:
Expected result:
Actual result:
I was thinking about where I should tweak the codes to fix the issue that the first column of each has three records as other columns do.
Also, a new class name (i.e. 1A, 1B) should be added to the second sheets (i.e. the second and fourth pages).
Thanks in advance for any help!
You need something more like this:
There were two problems - a change of class causes a page break, so at that point you can't rely on on the { =mod({ MERGESEQ },3) } = 0 to show you the right place to break next. Because a column break can also cause a page break, you also have to keep count of the columns to ensure that you can insert the class name every time you have a new page.
An advantage of doing it this way is that you can easily change the number of columns and rows per page.
(I have put one other thing in there, because strictly speaking you need to initialize Class1 when you start the merge).
I have a form where I have to place some fixed data on top and bottom with a variable table in between. If table does not fit on first page, there should be created more pages as needed to acomodate Table.
But for page 2, 3, 4... I still have to print top & bottom, but this time a short version of whats was placed on page 1.
In ItextSharp5 with ColumnText.HasMoreText = true, I know when a new page is needed and can make a new page with proper top & bottom data before drop remaining table.
So how can I achieve same behaviour with iText7?
I did not found a way to know when a table needs some more room
After some reading, found a starting point at Chapter 2: Adding content to a Canvas or a Document
on 3th block of code.
I am writing a play, and I want to be able to insert two fields, much like Page #. Let me explain...
Each time Scene 1, Scene 2, Scene 3, etc., I want the pages in that particular field to be named after it. So, Scene 2 would be 15 pages, and it would have a 2 on each of those pages. Then on Scene 3, it would have 20 pages, and I want each of those pages with a 3.
Also, I want to do this for Act I and II. For each page in Act I, I want the roman numeral I. For each page in Act II, I want the Roman numeral II.
I was wondering if there is a particular kind of code I can use in either Libreoffice or Word? For example, when "Scene 2" is detected by the software, it writes "2" on that pages and continues to repeat on each proceeding page, until it detects "Scene 3" and inserts 3, instead of 2, on the proceeding pages. I want do the same thing for Act I and Act II.
So basically, I want to insert fields for both of these. Thanks.
I have a document with a cover page, a table of contents, and then the actual content. The first page after the table of contents is numbered "1" in the footer.
Say the document has 130 pages, 128 pages of actual content aside from the cover and TOC. I want my audience to be able to go to the top of the adobe reader and see 1/128 rather than 1/130. When they enter 1, or 2 etc in that box, it jumps to page 1 or two of the actual content (rather than the cover page or the TOC). Is this possible?
You might get the results you're after with "Page Labels".
PdfPageLabels labels = new PdfPageLabels();
// label the first two pages "i" and "ii"
labels.addPageLabel( 1, PdfPageLabels.LOWERCASE_ROMAN_NUMERALS );
// label the following pages "1, 2, ..."
labels.addPageLabel( 3, PdfPageLabels.DECIMAL_ARABIC_NUMERALS );
myPdfWriter.setPageLabels( labels );
You can also give each page a unique string rather than page numbers:
labels.addPageLabel( pageNum, PdfPageLabels.EMPTY, pageNameStr );
I see "Page 1" in the text entry field, with (1 of 3) in the gray text next to it. I don't think you can change the "of N", just that first part.
Warning: I just discovered that the page "number" dialog in Acrobat X is limited to 8 characters. Any label longer than that is impossible to enter.
I'm using two UIPageControls in a view to reflect chapters and pages. So I have defined one UIPageControl named chapterCount and one named pageCount just to show where the user is. I handle the flipping of the pages with swipes rather than using the UIPageControls (so no methods defined for them).
I change their values as the user change pages with the following code:
chapterCount.numberOfPages = chapters;
chapterCount.currentPage = chapterNumber;
pageCount.numberOfPages = pages;
pageCount.currentPage = pageNumber;
[chapterCount updateCurrentPageDisplay];
[pageCount updateCurrentPageDisplay];
Where chapters, chapterNumber, pages and pageNumber all are integers.
The first time I flip through the pages it normally works fine, but when I go to a previous chapter or start a new chapter, the first (or last depending on direction) dot is not showed. Please see picture (upper half is missing a dot, lower one OK).
alt text http://img80.imageshack.us/img80/3339/pagecontrol.png
Its the same code updating the controls and sometime I get a dot, sometimes not. When I check the variables with NSLOG they are correct (eg the same for both pictures above).
I have checked Apple's documentation and tried their example but no luck.
Where should I start troubleshooting? I'm getting crazy!!
I finally found the problem :-)
An UIPageControl that is given a value 0 for number of pages will not show correctly the next time it is updated. I was reading chapter and page numbers from an array and in the beginning (let's say cover of the book) there are no pages and no chapters to show, so I happily set these to 0. Since I did not want to change the source data in my array I used MAX(pages , 1) for numberOfPages, so now it's working like clockwork.
Are you sure your chapterCount and pageCount views are not nil? You can have valid values all day, a message to nil does nothing and returns nil. Double check your view and controller wiring/unwiring when you change chapters.
EDIT:
confirm the size of the control is big enough to hold all your pages, and the view bounds is not clipped. For example, if you had 10 pages, and the "current" page was 10, but there were only 9 dots visible, it would appear as though nothing is highlighted because the white dot would be clipped from the visible area by being outside the viewable bounds. You can adjust the size dynamically using this:
- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount