Text flow create a delay when an overflow creates a new page, which prevents you from reading the page number, in error
Hi all!
I create a script to automatically generate a catalogue of photos; the idea is to prepare a master document with a text block in the master full of self flowing, then insert images with their legend by the script, let the system automatically creates the following pages when necessary, by a single stream of text.
My catalog is divided into sections, each represented by a different master spread; So I know what page I work when the script put there a picture just to link the current page in the master spread appropriate.
To simplify what I got most of my script here, using text instead of images:
/ * load a master document, only containing a block of empty text in the master spread, connected to the main text stream * /
var doc = app.open (new File("~/Desktop/mySampleDoc.indd"));
/ * I'm working on the story, thinking that every time that the textframe of first page will be full, we will create another block of text on the next page (automatically created) * /
var history = doc.pages [0] .textFrames [0] .parentStory;
/ * now, I put a few lines of text in history, pending the creation of a new on the first page will be complete * /
for (var i = 0; i < 100; i ++) {}
/ * This is the following line: * /.
.silence story.insertionPoints [-1] = "This is line n." + i + "\r";
/ * here, I want to know what page is the line just created (the error is generated here just in the creation of the new page + block of text) */
Thispage = story.insertionPoints [-1] .parentTextFrames [0].parentPage.documentOffset;
/ * and now I print the page number * /.
story.insertionPoints.item(-1).contents = "current page:"+ thispage + "\r"; ".
}
The big problem is: when the first block of text is full and overflow is generated, a new page with a new block of text from the main text flow (as the master spread) is generated. but it seems my script requests the page number before the new page with the new text block is born and an error is given.
It seems that the script goes too fast regarding the creation of the new page.
If I remove the line thispage = story.insertionPoints [-1] .parentTextFrames [0].parentPage.documentOffset; everything is ok.
I tried to introduce a delay up to 3 seconds with no effect.
I tried also to view or zoom in the request of page number, thought new page to force the system to wait for the page is truly born, also without effect (by the way, I wasn't able to view the page in adding the script of the text!).
Can someone help me?
A big thank you to everyone
Roberto
Have you tried using myDoc.recompose () before the application for compensation?
Tags: InDesign
Similar Questions
-
How to create a new page when the user activates a box?
I guess this would be a checkbox. I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given. So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box. Thank you.
Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:
_page2.addInstance(true);
You can design page 2 with which opposes always desired.
Hope that helps,
Niall
-
Hallo,
that is the difference between choosing as a Type of Document "Facelets" and choosing "JSP XML" when you create a new page?
Which is the best choiche and why? And is it possible to convert a page from one type to another?
Thank you
Federico
Hi Federico
JSPX both Faceletes are equal to the feature and after Jdev Release11gR2, both are supported in the ADF
Facelets is deemed be better performance because it is more tight integrated with life cycle JSf and does not need to be compiled before running
The future speaks Facelets (specification of JSF) and if start you a new project in development with JDeveloper 11 g R2 then we recommend you use Facelets for this reason
See this good discussion -Diff b\w JSF and JSPX
Thank you
-
The updated Photoshop "freezes" when I click on open or create a new page.
The updated Photoshop "freezes" when I click on open or create a new page. I have to wait a minute or two and then work. Everything works normally. When I press file / open - new 'freeze '. I did the last update.
Hi damijant,
Suggest make you in Photoshop preferences > General > uncheck "Show workspace start when no documents are open" > restart Photoshop and check again.
Let us know if that helps.
Kind regards
~ Mohit
-
I don't have a blank page option when you try to create a new page
I don't have a blank page option when you try to create a new page, what should I do?
When questions about the user interface, it helps if you say that you are using which version of Dreamweaver. It sounds as if you are using the latest version of Dreamweaver CC, but try to follow instructions written for an older version. This is the new Document dialog box in Dreamweaver CC 2015:
New Document has replaced the White Page in older versions. To get a blank page, select New Document in the left column, HTML as a Type of Document and there is no tab for framework.
-
Why dreamweaver wants to replace my existing css file when you create a new page
I created a Web site and I can not dreamweaver to accept my existing css file when I create a new page in the same Web site. I click on file, create new page, I select page fluid and in the lower right, click on the link to an existing css file and click ok, but dreamweaver tells me so my css file does not exist and wants to replace my existing css file? What's happening?
Thank you guys for this report we
It's a little surprising that it is the way it is for a while now. Rather than create a fg with the attached css html, DW invites you to create a new css / replace the existing one. Why?
The part confusing here is that the "css Attach leader"offers two options.
1. fix like a normal CSS
2. attach like a css FG
If you check the preference to "Join as fluid grid CSS" (see attachment) you should not see this question.
that is, unless you attach the css like a css FG, DW treats like any other css and waiting for you to bind one another css FG
However, I'm too confused at first until I realized the difference. Hope this helps
And thank you for bringing this to our notice
.. Henin :)
-
When I create a new page via 'Copy of the current page', the new page always gets an additional line of code. Contribute CS5 adds a paragraph that pushes my browsing down in the content area of my site. Can someone please help me get to stop this?
<!--
Code on the original page:
< body >
< div id = "container" >
< div id = "header" >
< div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >
< div class = "navigation" >
Code on the new page:
< body >
< div id = "container" >
< div id = "header" >
< div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >
< style p = "margin-top: 0;" margin-bottom: 0; ' > < / p >
< div class = "navigation" >
->If you are going to administer websites > users and roles > choose > change role settings > Editing > paragraph spacing, you put a line or two lines?
If a line, select the two lines.
-
I don't then create a new folder on a flash drive as the NewFolder button no longer works. I have to select the napkin instead of NewFolder; so, I get an icon Briefcase instead of a folder icon open when I open the flash drive. Are we supposed to now call a folder a Briefcase?
Do, or you have installed Chrome? It appears that an update of Chrome, (mid April 2013), is responsible for the loss of the option new folder. Even if Chrome has not been installed, here are two patches.How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.htmlOr:If for any reason, the zip file doesn't work for you, check out the 'response' by Linda Yan in this thread.
http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a
Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
-
I am wanting to put the existing files to a new folder, how do I create a new folder and move those file to the new folder?
I am wanting to put the existing files to a new folder, how do I create a new folder and move those file to the new folder?
Hello
Go t the location where you want to create the new folder, right-click and select new/folder. Name the folder.
Go to where the files, select the files and then use the right mouse button to drag the files into the new folder. When you drop the file, a pop-up menu, select the Move option.
Let us know if you have any other questions.
Thank you for using Windows 7
Ronnie Vernon MVP -
Hi, I want to get rid of "in search of Babylon" of firefox, I did everything but its always come when I press + for a new page. Please help me...
You are welcome.
-
After you create a new playlist in iTunes, every song has the cover of the album and no box on the left side. How can I remove from the work and recover the box? TIA
You can change the appearance of a selection by clicking on "reading list" in the upper right of the iTunes window. The desired view is probably "tracks"
-
Using Windows XP Profwssional.
(1) when I try to set up "Remote support" I get the error message: "your current system settings prevent you from sending an invitation. How can I solve this problem?
(2) can I use this feature when both computers are on the same network?
Hello
(1) you must configure your computer to use the remote control - see here:
http://www.winxptutor.com/raenable.htm
and don't forget to make the firewall exceptions
(2) this function works on the different network also (so a computer can be in the United States and one in Australia)
Note - a computer can have Windows XP (family or professional edition) and another may have Windows 7, Vista.
LC
-
Hello! I can't subscribe to creatively Cloud for photographers. When you subscribe to gives an error when you pay with the card: "order processing error occurred for more information, please contact the Customer Service by phone 8 800 333 36 63, when making a payment via PayPal: PAYMENT_CPG_SETTLE_FAILED. How to order?
Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html
-
When I open a PDF and try and connect you to convert the document to word format he said "reader has no ability to access this service" and it doesn't let me move forward. -What this means and how do I continue to Word so I can change the pdf document?
Hi wayned76005641,
You subscription Adobe export to PDF, make sure that you are signed in DC from Adobe Acrobat Reader Adobe - Adobe Acrobat Reader DC Distribution using your Adobe ID to use the service to export it to PDF service The Adobe export in PDF format allows you to convert a PDF to Word, Excel, PowerPoint and RTF formats..
You can also use this online https://cloud.acrobat.com/exportpdf service
Once the PDF is converted .docx file you can edit in MS Word.
Kind regards
Nicos -
My project will not move past slide 7. I created a new project using a ppt presentation and the porject won't move past slide 7 even in preview. Help?
I was pulling the presentation ppt to a network drive, so he didn't fully assume. I saved the presentation on my desk and imported again and it worked fine.
Maybe you are looking for
-
Analysis, updates and connectivity 1
Tyler: It was very rude of you to lock my thread before that I even had the chance to ask questions about Firefox. How to be a little more understanding and patient so that I can get my Firefox question? If someone else that it could be useful, that
-
I've recently updated Firefox. The bookmarks menu has a new menu item called "all bookmarks". It seems to be a true copy of the bookmarks. When I try to add a new bookmark, all bookmarks folder is the one indicated in the dialog box. I tried to delet
-
Batch file to print the command Ipconfig at a .txt
Can anyone help?On the left side is the outputThe codeing right side
-
Stop Z10 Z10 blackBerry at 40% battery after updated to 10.2.1
Dear friends, My Z10 worked perfectly well no problem to alllll but after updated to 10.2.1 the phone stops on 40% battery! Please help me as soon as POSSIBLE!
-
Explorer.exe constantly using 5-10% of CPU
An Explorer. EXE process runs at 5-10% of CPU. I've worked so far:(a) it affects only 1 user account.(b) using the Process Explorer, the explorer.exe process points to, which seems to be, valid system information.(c) the affected user account is an a