Problem in deleting empty pages
I also get that error sometimes. When I click OK, it deletes the page, but every time I update the book it comes back. It's probably due to a conflict with something defined on a master page. If anyone one has a solution, I'm be very greatful. This is a real nuisance, and Frame is supposed to be stable :) -- Regards, Shmuel Ranvijay Chandel wrote: > Hi All, > > > I am having problem in deleting empty pages from each chapter. > > > Whenever I delete a large chunk of data from a chapter, the empty pages > that are left behind don't get deleted. > > > I have set the pagination settings for the book as following: > 1) 1st Page Side = Read from File > 2) Before Saving & Printing = Make Page Count Even (because I want to > have an empty page after each chapter) > > > But this setting works for some chapters (i.e empty pages get deleted) > but for some chapters it does not work instead it shows a pop window > asking the following question: > > > "The new column layout in csr.fm seems to overlap other objects on > some body pages. > Are you sure you want to do this? > Number of body pages affected:7. First page:38" > > > If I click on OK nothing happens (i.e empty pages don't get deleted) > > I tried to solve this problem by writing a script also which works like > this: > > I will add a text as "Lastpage" on the whenever we finish writing a > chapter.. Then, we will find that text and loop through the pages after that > page and delete those empty pages. > > For example, > My chapter has 10 pages > I have a text "Lastpage" inserted in page 7 > Pages 9-10 should get automatically deleted from the chapter (Page 8 > remains). > > If the text "Lastpage" is in page 8, pages 9-10 should get > automatically deleted from the chapter > > I have written the following script in trying to fix this: > > Set CurrentDoc = ActiveDoc; > > New StringList NewVar(bPageNos); > New Integer NewVar(currPageNo); > New Integer NewVar(lastPageNo); > > Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) > //Loop thru all the body pages in a chapter and store their page numbers > in the stringlist > Add Member(oPage.pagenum) To(bPageNos); > set lastPageNo = bPageNos.count; > write lastPageNo; > EndLoop > > New String NewVar(bpBodyPage); > > //Find the text "Lastpage that I inserted on the page at which the chapter > finishes > Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus > (stat); > >If stat = true > //get the page number where it finds the text "Lastpage" > set currPageNo = CurrentPage.pagenum; > Write currPageNo; > write lastPageNo; > //Loop from the page where it found the text "Lastpage" till the last page > in the chapter > Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) > write lastPageNo; > //Get the body page for each page that we loop thru and delete that page > Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) > NewVar(lPage); > write lPage; > Delete Object(lPage); > endloop >endif > > But I am getting the following error: > "OBJ(NULL)" error > on the following line of the code: Get Object Type(BodyPage) Name(oPage) > DocObject(CurrentDoc) > > Please suggest a workaround to this solution. > > Ranvijay Chandel > Information Developer > Yantra Solutions Pvt. Ltd. > Bangalore (India) > ___ > > > You are currently subscribed to Framers as sbw at actcom.com. > > Send list messages to framers at lists.frameusers.com. > > To unsubscribe send a blank email to > framers-unsubscribe at lists.frameusers.com > or visit http://lists.frameusers.com/mailman/options/framers/sbw%40actcom.com > > Send administrative questions to lisa at frameusers.com. Visit > http://www.frameusers.com/ for more resources and info. > >
Problem in deleting empty pages
Hi, It's not really a conflict with something on a master page, but a conflict with the pagination settings on a book level. Your 1st Page Side may have been set to Right for each file (chapter) in your book. If so, FrameMaker will add a left blank page to the previous file. -- Yves Barbion Technical Writer Adobe-Certified FrameMaker Instructor U&I Learning nv (formerly ATeK nv) Molenaarsstraat 111 B-9000 Gent Belgium Tel.: +32 9 265 74 72 Fax: +32 9 265 74 84 www.uni-learning.com
Problem in deleting empty pages
Ranvijaj, When I first encountered this problem, another member of this list pointed out that the pages might not be completely empty. And they weren't. When I selected all on one of the last empty pages in the chapter (by click-dragging), small 'boxes' would appear with nothing in them. They were typically 'leftovers' from random mouse-work - at least in my case. When they were deleted, I could save the chapter and the empty pages would disappear. HTH, Nanna -Original Message- From: framers-bounces+nanna.vig=esko@lists.frameusers.com [mailto:framers-bounces+nanna.vig=esko.com at lists.frameusers.com]On Behalf Of Ranvijay Chandel Sent: 24. april 2006 07:01 To: framers at lists.frameusers.com Subject: Problem in deleting empty pages Hi All, I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" If I click on OK nothing happens (i.e empty pages don't get deleted) I tried to solve this problem by writing a script also which works like this: I will add a text as "Lastpage" on the whenever we finish writing a chapter.. Then, we will find that text and loop through the pages after that page and delete those empty pages. For example, My chapter has 10 pages I have a text "Lastpage" inserted in page 7 Pages 9-10 should get automatically deleted from the chapter (Page 8 remains). If the text "Lastpage" is in page 8, pages 9-10 should get automatically deleted from the chapter I have written the following script in trying to fix this: Set CurrentDoc = ActiveDoc; New StringList NewVar(bPageNos); New Integer NewVar(currPageNo); New Integer NewVar(lastPageNo); Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) //Loop thru all the body pages in a chapter and store their page numbers in the stringlist Add Member(oPage.pagenum) To(bPageNos); set lastPageNo = bPageNos.count; write lastPageNo; EndLoop New String NewVar(bpBodyPage); //Find the text "Lastpage that I inserted on the page at which the chapter finishes Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus (stat); If stat = true //get the page number where it finds the text "Lastpage" set currPageNo = CurrentPage.pagenum; Write currPageNo; write lastPageNo; //Loop from the page where it found the text "Lastpage" till the last page in the chapter Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) write lastPageNo; //Get the body page for each page that we loop thru and delete that page Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) NewVar(lPage); write lPage; Delete Object(lPage); endloop endif But I am getting the following error: "OBJ(NULL)" error on the following line of the code: Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) Please suggest a workaround to this solution. Ranvijay Chandel Information Developer Yantra Solutions Pvt. Ltd. Bangalore (India) ___ You are currently subscribed to Framers as nanna.vig at esko.com. Send list messages to framers at lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscribe at lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/nanna.vig%40esko.com Send administrative questions to lisa at frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
Problem in deleting empty pages
Hi All, I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" If I click on OK nothing happens (i.e empty pages don't get deleted) I tried to solve this problem by writing a script also which works like this: I will add a text as "Lastpage" on the whenever we finish writing a chapter.. Then, we will find that text and loop through the pages after that page and delete those empty pages. For example, My chapter has 10 pages I have a text "Lastpage" inserted in page 7 Pages 9-10 should get automatically deleted from the chapter (Page 8 remains). If the text "Lastpage" is in page 8, pages 9-10 should get automatically deleted from the chapter I have written the following script in trying to fix this: Set CurrentDoc = ActiveDoc; New StringList NewVar(bPageNos); New Integer NewVar(currPageNo); New Integer NewVar(lastPageNo); Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) //Loop thru all the body pages in a chapter and store their page numbers in the stringlist Add Member(oPage.pagenum) To(bPageNos); set lastPageNo = bPageNos.count; write lastPageNo; EndLoop New String NewVar(bpBodyPage); //Find the text "Lastpage that I inserted on the page at which the chapter finishes Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus (stat); If stat = true //get the page number where it finds the text "Lastpage" set currPageNo = CurrentPage.pagenum; Write currPageNo; write lastPageNo; //Loop from the page where it found the text "Lastpage" till the last page in the chapter Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) write lastPageNo; //Get the body page for each page that we loop thru and delete that page Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) NewVar(lPage); write lPage; Delete Object(lPage); endloop endif But I am getting the following error: "OBJ(NULL)" error on the following line of the code: Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) Please suggest a workaround to this solution. Ranvijay Chandel Information Developer Yantra Solutions Pvt. Ltd. Bangalore (India)
Problem in deleting empty pages
Hi, Ranvijay: Delete empty pages requires these properties on the pages to be deleted: * No custom master pages are used, only standard Left and Right. * No content of any kind in the text flow on the body page, not even a carriage return. * The settings are applied to the files in the book window. * Because Book window settings supercede file-level settings, except when Read from File is set, when you choose Read from File, the file's settings must be correct for the results you want. You may need to experiment to see which is less confusing to define and maintain- a combination of read from file and book-level settings, or only settings from the book window. >I am having problem in deleting empty pages from each chapter. > > >Whenever I delete a large chunk of data from a chapter, the empty pages >that are left behind don't get deleted. > > >I have set the pagination settings for the book as following: >1) 1st Page Side = Read from File >2) Before Saving & Printing = Make Page Count Even (because I want to >have an empty page after each chapter) > > >But this setting works for some chapters (i.e empty pages get deleted) >but for some chapters it does not work instead it shows a pop window >asking the following question: > > >"The new column layout in csr.fm seems to overlap other objects on >some body pages. >Are you sure you want to do this? >Number of body pages affected:7. First page:38" This error seems to indicate that some other activity is occurring during the book updating process, such as invoking Apply Master Pages, or perhaps it's a result of your script's activity. If you observe the requirements, you shouldn't need a script. For more views, suggestions, and opinions, search FM's online help for delete empty pages, and also search Google, the Adobe forum search (see the link at the top of this page) and the Adobe knowledgebase (also see the link above.) HTH Regards, Peter Gold KnowHow ProServices
RE: Problem in deleting empty pages
Hi, Ranvijay: Delete empty pages requires these properties on the pages to be deleted: * No custom master pages are used, only standard Left and Right. * No content of any kind in the text flow on the body page, not even a carriage return. * The settings are applied to the files in the book window. * Because Book window settings supercede file-level settings, except when Read from File is set, when you choose Read from File, the file's settings must be correct for the results you want. You may need to experiment to see which is less confusing to define and maintain- a combination of read from file and book-level settings, or only settings from the book window. I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" This error seems to indicate that some other activity is occurring during the book updating process, such as invoking Apply Master Pages, or perhaps it's a result of your script's activity. If you observe the requirements, you shouldn't need a script. For more views, suggestions, and opinions, search FM's online help for delete empty pages, and also search Google, the Adobe forum search (see the link at the top of this page) and the Adobe knowledgebase (also see the link above.) HTH Regards, Peter Gold KnowHow ProServices ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Problem in deleting empty pages
Hi, It's not really a conflict with something on a master page, but a conflict with the pagination settings on a book level. Your 1st Page Side may have been set to Right for each file (chapter) in your book. If so, FrameMaker will add a left blank page to the previous file. -- Yves Barbion Technical Writer Adobe-Certified FrameMaker Instructor U&I Learning nv (formerly ATeK nv) Molenaarsstraat 111 B-9000 Gent Belgium Tel.: +32 9 265 74 72 Fax: +32 9 265 74 84 www.uni-learning.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Problem in deleting empty pages
I also get that error sometimes. When I click OK, it deletes the page, but every time I update the book it comes back. It's probably due to a conflict with something defined on a master page. If anyone one has a solution, I'm be very greatful. This is a real nuisance, and Frame is supposed to be stable :) -- Regards, Shmuel Ranvijay Chandel wrote: Hi All, I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" If I click on OK nothing happens (i.e empty pages don't get deleted) I tried to solve this problem by writing a script also which works like this: I will add a text as "Lastpage" on the whenever we finish writing a chapter.. Then, we will find that text and loop through the pages after that page and delete those empty pages. For example, My chapter has 10 pages I have a text "Lastpage" inserted in page 7 Pages 9-10 should get automatically deleted from the chapter (Page 8 remains). If the text "Lastpage" is in page 8, pages 9-10 should get automatically deleted from the chapter I have written the following script in trying to fix this: Set CurrentDoc = ActiveDoc; New StringList NewVar(bPageNos); New Integer NewVar(currPageNo); New Integer NewVar(lastPageNo); Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) //Loop thru all the body pages in a chapter and store their page numbers in the stringlist Add Member(oPage.pagenum) To(bPageNos); set lastPageNo = bPageNos.count; write lastPageNo; EndLoop New String NewVar(bpBodyPage); //Find the text "Lastpage that I inserted on the page at which the chapter finishes Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus (stat); If stat = true //get the page number where it finds the text "Lastpage" set currPageNo = CurrentPage.pagenum; Write currPageNo; write lastPageNo; //Loop from the page where it found the text "Lastpage" till the last page in the chapter Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) write lastPageNo; //Get the body page for each page that we loop thru and delete that page Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) NewVar(lPage); write lPage; Delete Object(lPage); endloop endif But I am getting the following error: "OBJ(NULL)" error on the following line of the code: Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) Please suggest a workaround to this solution. Ranvijay Chandel Information Developer Yantra Solutions Pvt. Ltd. Bangalore (India) ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/sbw%40actcom.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: Problem in deleting empty pages
Ranvijaj, When I first encountered this problem, another member of this list pointed out that the pages might not be completely empty. And they weren't. When I selected all on one of the last empty pages in the chapter (by click-dragging), small 'boxes' would appear with nothing in them. They were typically 'leftovers' from random mouse-work - at least in my case. When they were deleted, I could save the chapter and the empty pages would disappear. HTH, Nanna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ranvijay Chandel Sent: 24. april 2006 07:01 To: framers@lists.frameusers.com Subject: Problem in deleting empty pages Hi All, I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" If I click on OK nothing happens (i.e empty pages don't get deleted) I tried to solve this problem by writing a script also which works like this: I will add a text as "Lastpage" on the whenever we finish writing a chapter.. Then, we will find that text and loop through the pages after that page and delete those empty pages. For example, My chapter has 10 pages I have a text "Lastpage" inserted in page 7 Pages 9-10 should get automatically deleted from the chapter (Page 8 remains). If the text "Lastpage" is in page 8, pages 9-10 should get automatically deleted from the chapter I have written the following script in trying to fix this: Set CurrentDoc = ActiveDoc; New StringList NewVar(bPageNos); New Integer NewVar(currPageNo); New Integer NewVar(lastPageNo); Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) //Loop thru all the body pages in a chapter and store their page numbers in the stringlist Add Member(oPage.pagenum) To(bPageNos); set lastPageNo = bPageNos.count; write lastPageNo; EndLoop New String NewVar(bpBodyPage); //Find the text "Lastpage that I inserted on the page at which the chapter finishes Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus (stat); If stat = true //get the page number where it finds the text "Lastpage" set currPageNo = CurrentPage.pagenum; Write currPageNo; write lastPageNo; //Loop from the page where it found the text "Lastpage" till the last page in the chapter Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) write lastPageNo; //Get the body page for each page that we loop thru and delete that page Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) NewVar(lPage); write lPage; Delete Object(lPage); endloop endif But I am getting the following error: "OBJ(NULL)" error on the following line of the code: Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) Please suggest a workaround to this solution. Ranvijay Chandel Information Developer Yantra Solutions Pvt. Ltd. Bangalore (India) ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/nanna.vig%40esko.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Problem in deleting empty pages
Hi All, I am having problem in deleting empty pages from each chapter. Whenever I delete a large chunk of data from a chapter, the empty pages that are left behind don't get deleted. I have set the pagination settings for the book as following: 1) 1st Page Side = Read from File 2) Before Saving & Printing = Make Page Count Even (because I want to have an empty page after each chapter) But this setting works for some chapters (i.e empty pages get deleted) but for some chapters it does not work instead it shows a pop window asking the following question: "The new column layout in csr.fm seems to overlap other objects on some body pages. Are you sure you want to do this? Number of body pages affected:7. First page:38" If I click on OK nothing happens (i.e empty pages don't get deleted) I tried to solve this problem by writing a script also which works like this: I will add a text as "Lastpage" on the whenever we finish writing a chapter.. Then, we will find that text and loop through the pages after that page and delete those empty pages. For example, My chapter has 10 pages I have a text "Lastpage" inserted in page 7 Pages 9-10 should get automatically deleted from the chapter (Page 8 remains). If the text "Lastpage" is in page 8, pages 9-10 should get automatically deleted from the chapter I have written the following script in trying to fix this: Set CurrentDoc = ActiveDoc; New StringList NewVar(bPageNos); New Integer NewVar(currPageNo); New Integer NewVar(lastPageNo); Loop ForEach(BodyPage) In(CurrentDoc) LoopVar(oPage) //Loop thru all the body pages in a chapter and store their page numbers in the stringlist Add Member(oPage.pagenum) To(bPageNos); set lastPageNo = bPageNos.count; write lastPageNo; EndLoop New String NewVar(bpBodyPage); //Find the text "Lastpage that I inserted on the page at which the chapter finishes Find FromTextLoc String('Lastpage') ReturnRange(trange) ReturnStatus (stat); If stat = true //get the page number where it finds the text "Lastpage" set currPageNo = CurrentPage.pagenum; Write currPageNo; write lastPageNo; //Loop from the page where it found the text "Lastpage" till the last page in the chapter Loop While(i <= lastPageNo) LoopVar(i) Init(currPageNo+1) Incr(1) write lastPageNo; //Get the body page for each page that we loop thru and delete that page Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) NewVar(lPage); write lPage; Delete Object(lPage); endloop endif But I am getting the following error: "OBJ(NULL)" error on the following line of the code: Get Object Type(BodyPage) Name(oPage) DocObject(CurrentDoc) Please suggest a workaround to this solution. Ranvijay Chandel Information Developer Yantra Solutions Pvt. Ltd. Bangalore (India) ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.