Even and odd page break
Hi ALL
I have a requirement in my report there are two things location with customer details and meter reading with costing Now my req is that location details should come on odd pages and starting from page 3. For meter details should come on even pages starting from page 4 can you plz help me in this
Regards
Prasoon
i did not quite get what your report structure is.
Is it something like
-Customer
-- Location details
-- Meter reading
-Customer
-- Location details
-- Meter readingIf so does the customer record fill pages 1 and 2?
Does the location details always fit on one page or could per be more data than for one page?
Does the meter-reding details always fit on one page or could per be more data than for one page?
Similar Messages
-
I have to create a po print on both sides.
The odd pages have the po but the odd pages have condition terms, is there a way in xml publisher to do this.
Can I test on page number, or can I set default text for odd pages ?
Thanks for your helpDo you really need bleed at the spine? Unless you are doing spiral binding, or you really have art dying into the binding, you generally don't.
In cases where you do, it is easy to "break" a facing-pages spread into a left and right half. Disable page shuffling for the spread, then just pull it apart. See InDesignSecrets » Blog Archive » Breaking Pages Apart to Bleed Off a Spine
There's a script reference down inthe comments from Harbs, too, that will do the entire document if you need it (I believe Daniel said earlier today that he's had trouble with the script once and had to break the spreads manually, but I've never seen another report of a problem.) -
Duplicate buttons on even and odd pages
I would to be able to place in Acrobat on 100 facing pages document some buttons for printing and navigating but on different positions for odd and even pages. The Duplicate command does not offer any option for it. There is any available script for it? Thanks.
Only if user written.
You could use the template feature of Acrobat to make 2 templates, one for the odd pages and the the other for the even pages, and then overlay the template on the appropriate pages.
Or split the PDF into odd and even pages, apply the buttons and then recombine the PDFs. -
My printer won't do duplex scan, and I need to scan a large amount of 2-sided text. So I'm going to create one document of the odd-numbered pages, and another of the even-numbered pages. I know I can manually combine them into the right order, but I'm hoping there is some automatic way to merge the documents - one of odd-numbered pages, and one of even-numbered pages - into one document in which the pages are in the correct numerical order.
Is there?Hey Seth and others:
Thanks for the positive feedback. I found myself needing to do some collating and reversing again, and discovered that the script didn't show up in Acrobat 9. So I updated the script, and moved the menu item into the "Document" menu.
Unfortunately I can't figure out how to attach the updated script in the new form editor, so I'll inline it. Copy the following script into a file and install it into your Javascripts folder, as before.
// Complements: Planet PDF (http://www.planetpdf.com/)
// Modified by Jeff Baitis for Acrobat 9 compatibility
// Improved Collate function with status bar.
// Add a menu item to reverse all pages in the active document
app.addMenuItem({ cName: "Reverse", cParent: "Document", cExec: "trustedReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0 });
app.addMenuItem({ cName: "Collate", cParent: "Document", cExec: "trustedCollatePages();", cEnable: "event.rc = (event.target != null);", nPos: 0 });
trustedReversePages = app.trustedFunction(function()
app.beginPriv(); // Explicitly raise privileges
var t = app.thermometer;
t.duration = this.numPages;
t.begin();
for (i = this.numPages - 1; i >= 0; i--)
t.value = (i-this.numPages)*-1;
this.movePage(i);
t.text = 'Moving page ' + (i + 1);
t.end();
app.endPriv();
// Collating pages
Title: Collate Document
Purpose: User is prompted to select document to insert/collate.
Author: Sean Stewart, ARTS PDF, www.artspdf.com
trustedCollatePages = app.trustedFunction(function()
app.beginPriv(); // Explicitly raise privileges
// create an array to use as the rect parameter in the browse for field
var arRect = new Array();
arRect[0] = 0;
arRect[1] = 0;
arRect[2] = 0;
arRect[3] = 0;
// create a non-visible form field to use as a browse for field
var f = this.addField("txtFilename", "text", this.numPages - 1, arRect);
f.delay = true;
f.fileSelect = true;
f.delay = false;
// user prompted to select file to collate the open document with
app.alert("Select the PDF file to merge with")
// open the browse for dialog
f.browseForFileToSubmit();
var evenDocPath = f.value;
var q = this.numPages;
var t = app.thermometer;
t.duration = q;
t.begin();
// insert pages from selected document into open document
for (var i = 0; i < q; i++) {
var j = i*2;
this.insertPages(j, evenDocPath, i);
t.value = i;
t.text = 'Inserting page ' + (i+1);
t.end();
// remove unused field
this.removeField("txtFilename");
app.endPriv();
Have fun
Edited: Found some bugs, fixed the code up a bit -
Is there a way to apply a master page to even (or odd) pages in a long document?
I'm taking a very simple, large pdf document and bringing it into InDesign to add some graphics. The pdf is actually a customized 2-page document for a large employee group (i.e. pages 1 and 2 are for employee001, pages 3 and 4 are for employee002, pages 5 and 6 are for employee003, etc.).
I've found a script that allows me to bring in all the pages of the pdf at one time, provided I've set up the correct number of blank pages in InDesign. What I'm looking for now is a way to apply a master page to all even numbered pages at one time. Or all odd pages. Anyone have any ideas?
Ideally, an option that would import the entire pdf document, add the appropriate number of pages to the InDesign document, and be able to assign different master pages to even and odd pages would rock! Help!for (var i=0;i<= PageLength-1;i++)
var isEven = function(someNumber){
return (someNumber%2 == 0) ? true : false;
if(isEven(newDoc.pages.item(i).name) == true)
//Apply Master B for right page
newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("B-Master");
//Move elements by x, y position, script label ContactEmail
newDoc.pages.item(i).pageItems.item("ContactEmail").move([0.7292, 6.011]);
}else{
//Apply Master A for left page
newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("A-Master");
}//for Else
}//For -
Zero bleed at inside page on even and odd master pages
Hello guys! Going directly to my question would be how to apply bleed option specifically on inside pages when working with individual master pages for master and facing pages on the main document. The thing is when I've set no bleed on inside on my Document Setup it has applied on my even and odd master pages (remembering I have individual master pages set on my document). I am not sure if I was clear enough but I keep it open for eventual comments and so on. Thank you.
Ok Peter. Thank you! I am posting some screen shots to help understanding.
-
I have a 2000+ page document and I need to somehow select all the even or odd pages so I can pull them out of it that doesnt require me from having to click 1000 individual thumbnails. I know how to print even or odd pages but dont see any way of just selecting them for editing
I don't know where they are in Word but the print dialog is standard throughout OSX and this seems logical enough.
The only problem is the Paper Handling is hidden under Layout. But sort of makes sense.
Peter -
Hello,
I am building books using indesign, and I was wondering if there was a way to put in odd page breaks after each of my documents without creating blank pages. Right now what I have done is put the book together, then selected "Book page numbering options" "Continue on next odd page" "Insert blank page"
My books look exactly how I want them to using this method, however, in order to reduce the cost of having them printed, I was wondering if there was a way to put the books together and print them to look like this without having to add blank pages.
Thanks for your help!So ... after a last right hand text page numbered "21", you'd be happy to see a left hand page numbered "23"?
Can you give any book title that does this? Anywhere, anytime in history? ... If not, would you mind being the first? -
How to display even and odd number ranges between two given inputs.
Hi Every one,
I am just started my career in sap abap and trying to find the solution for this.
I am trying to display number range using select options, but I am getting an error "Memory low leave the transaction before taking a break".
Example: when I give two number 2 and 10 , it should display set of all even and odd numbers in that range.
Below is the code logic that I am using:
data: a type i,
b type i,
c type i,
d type i,
num type i.
select-options: in for num.
a = inp-low.
b=inp-high.
c = inp-low mod 2.
d = inp-high mod 2.
while a <=b and c = 0.
write: "even numbers:', a.
b = a + 1.
endwhile.
while a <=b and c <> 0.
write: "odd numbers:', b.
b = a + 1.
endwhile.
Any help will be much appreciated.This is your logic...changed:
data: a type i,
b type i,
c type i,
d type i,
num type i.
data: even type i,
odd type i.
select-options: in for num.
a = in-low.
b = in-high.
c = a mod 2.
if c is INITIAL. "It measn a is even
even = a.
odd = a + 1.
else.
odd = a.
even = a + 1.
endif.
* Even
a = even.
while a <= b.
write: / 'even numbers:', a.
* b = a + 1.
a = a + 2. "The next even number
endwhile.
* Odd
a = odd.
while a <= b .
write: / 'odd numbers:', a.
a = a + 2. "The next odd number
endwhile. -
How to work even and odd number query
Plz explain how below worked even and odd query
2 ) why used subquery after from and which time we can use(what time of out put)
even
select * FROM (SELECT ROW_NUMBER() OVER(ORDER BY stud_id) as row ,grno,stud_id from stud_Enrollment) d
WHERE d.row %2=0
odd
select * FROM (SELECT ROW_NUMBER() OVER(ORDER BY stud_id) as row ,grno,stud_id from stud_Enrollment) d
WHERE d.row %2=1Row_Number function returns the sequential number of a row
(By using partition of a result set, starting at 1 for the first row in each partition)
>> why used subquery after from and which time we can use(what time of out put)
When we need sequntial numbers, we can use row_number function. Put it into derived table and use this derived table after FROM clause (Same way it is used in your query)
CREATE TABLE stud_Enrollment (
grno int,
stud_id int,
stud_name varchar(20)
INSERT INTO stud_Enrollment
VALUES (101, 511, 'Dheeraj'), (112, 521, 'Vaibhav'), (132, 522, 'Lalit'), (124, 564, 'Amogh'), (143, 598, 'Sushrut')
SELECT * FROM stud_Enrollment
-- Result of your table
--grno stud_id stud_name
--101 511 Dheeraj
--112 521 Vaibhav
--132 522 Lalit
--124 564 Amogh
--143 598 Sushrut
-- Now we need to find out the rows which are at even position, ie row should be at position of 0,2,4,6,8 etc..
-- But we don't have sequential number here in your table result
-- So we can create one new column by using row_number function
SELECT
ROW_NUMBER() OVER (ORDER BY stud_id) AS row, --> additiona "row" column
grno,
stud_id,
stud_name
FROM stud_Enrollment
-- We got "row" column in below output
--row grno stud_id stud_name
--1 101 511 Dheeraj
--2 112 521 Vaibhav
--3 132 522 Lalit
--4 124 564 Amogh
--5 143 598 Sushrut
-- Now above table is used after FROM clause. It uses row column in WHERE part
SELECT
FROM (SELECT
ROW_NUMBER() OVER (ORDER BY stud_id) AS row,
grno,
stud_id,
stud_name
FROM stud_Enrollment) d
WHERE d.row % 2 = 0
--row grno stud_id stud_name
--2 112 521 Vaibhav
--4 124 564 Amogh
-Vaibhav Chaudhari -
I have a programming assignment that needs to read a set of integers and then finds and prints the sum of the evens and sum of the odds.
I know how to find out which numbers are odd and even, I just can't figure out how to add up the evens and odds. Say a set of 10 integers is inputted, how can they be added up after it is determined if they are even or odd?Here is my code after the tip from student... It compiles but once ran it doesn't do anything after the integers are put in.
import java.util.*;
public class EvenOddIntegers {
static Scanner console = new Scanner(System.in);
static final int limit = 10;
public static void main(String[] args) {
int number = 0, limit = 0, sumEven = 0, sumOdd = 0;
int odds = 0;
int evens = 0;
System.out.print("Enter ten positive integers: ");
while (limit <= 10)
number = console.nextInt();
if (number % 2 == 0)
sumEven += number;
else if (number % 2 != 0)
sumOdd += number;
System.out.println("Sum of even numbers is " + sumEven + ".");
System.out.println("Sum of odd numbers is " + sumOdd + ".");
} -
Is there another way to count even and odd number than this one
private static int countEvenOrOdd(int[] array, boolean countEvenNumbers){
int count = 0;
int remainderRequired = (countEvenNumbers ? 0 : 1);
for(int i = 0; i < array.length; ++i){
if(array[i] % 2 == remainderRequired){
++count;
return count;
}> I like hacking ;-) Have a look at this: ...
Jos, you forgot the method for counting both:int countOddsAndEvens(int[] array) {
return (countOdds(array) + countEvens(array));
} ; )Yep, you're right, and for completeness reason I'd like to add the following:int countOthers(int[] array) {
return array.length-countOddsAndEvens(array);
}And for those junit maniacs:boolean testCounters(int[] array) {
return countOddsAndEvens(array)+countOthers(array) == array.length;
}btw, the moment I posted my previous reply I realized that I could've done better:int countOdds(int[] array) {
int c= 0;
for (int i= 0; i < array.length; c+= array[i++]&1);
return c;
}kind regards,
Jos ( <-- never has to maintain others' code ;-) -
Dynamic tables and conditional page break
I have inserted a table in my form and have included an Add New Row button to insert additonal rows. I want a maximum of 16 rows added with a subtotal field. I want the table, then to automatically go to a new page with a subtotal field. At the end of all pages I want to include a total field. The table goes to the next page after a number of rows are entered, but there is not a break; the original form continues. How do conditionally break the page and have a (new) table display in the second page?
Thanks for your help.Hi Paul,
Thanks for working with me on this. I have sent a copy to the gmail.com address. I'm new to LiveCycle, so please forgive me.
Date: Thu, 29 Jul 2010 09:18:53 -0600
From: [email protected]
To: [email protected]
Subject: dynamic tables and conditional page break
You can accomplish that with a single table and some creative script. I suggest that you get the table worked out and working correctly then we can add in the page totals and final total afterwards. Once the table is ready email the form to mailto:[email protected] and I will put together a sample for you that shows what to do. Please include a description of what you want to do with the email as the mail message and this forum are not tied together. Also if you have a data file that fills out the table that would be useful as well.
Paul
> -
Help with pagination and conditional page breaks
I have a rather complex form where pages are added based on what the user has entered in a table with repeatable rows. For most of the pages, conditional page breaks are working fairly well, but I have a group of pages with nested subforms that need page breaks. The inner subform is breaking as expected, but the parent page break isn't triggering for some reason.
Is this a bug within Livecycle or is it possible to fix?
Thanks!May be having a look at the form helps..
If you can send the form and XML data file to [email protected] I can have a look at it..
Thanks
Srini -
Split and add Even and odd numbers
Hi All,
I got a seven digit number any number say for example (6581231). Now i need to add even number and odd number separately.
Output should be
6 + 8 + 2 = 16
5 + 1 + 3 + 1 = 10
Thanks
SAssuming the number is always 7 digits one way to do this would be:
Data: string(7) type c,
num type i.
Nmod type i.
**move the number to a string.
Move num to string.
split into 7 individual chars.
Num1 = string+1
Num2 = string+2.
Num3 = string+3
Etc
divide each by 2 and find remainder
Nmod = num mod 2.
if remainder is 0, number is even
If nmod = 0.
Number is even.
Else.
Number is odd.
Endif.
Maybe you are looking for
-
Problem in Procedure for using sequence...
Hi, I created a procedure for generating sequence in target using below query SELECT EMP.EMP_SEQ.NEXTVAL FROM DUAL but its working on one system in other system its giving below error... ODI-1228: Task EMP_LOAD_EMP_SEQ_PROC (Procedure) fails on the t
-
What shud I do?
-
Unable to Share contacts between two specific users in Outlook 2013/Exchange
My brother is trying to share his contacts with his associate, and she is trying to share them back. He managed to right-click on his contacts folder and send out the invitation. She successfully accepted the invitation, and she also accepted his req
-
J_1IEXCHDR - not updating BED/ED/SHED cess values
Dear friends, Table J_1IEXCHDR - not updating BED/ED/SHED cess values.... Can someone help me to trace out the issue? Thanks Sasi
-
How to decode signed data asn.1 format using c programming
Hi, I need help decoding a chunk of signed data in asn.1 format using c programming. Does anyone know how to break the signed data down into its parts (for example, version number = _, ...) through a C program ? I realised there's a Signeddata class