How can I enter a page break? (CS5)

I have a routine that reads an XML file and creates an identity document. How can I create a page break by adding to the current PointInsertion? I tried with

story.insertionPoints.lastItem () .silence += SpecialCharacters.pageBreak;

but these special characters seem to apply only to the XML format. What is the alternative? -J' use ID CS5.

It's not InDesign does it, but rather the Javascript syntax. Oh... and a little of yours as well.

An element of 'content' can be an enumeration SpecialCharacters - a number - or a text string. The way that you are referring to the existing element, you can either get: If the last character is represented as one of the special characters, you get a number. If this isn't the case, you get a chain.

So what happens, using the operator '+' and a number on something which you are not sure what type it is?

1. If you get a string in the back, you are in trouble, because forbidden Javascript adding number to string. If the string cannot be forced to a number (and usually he can't), then the number is converted to a string. String of numbers is the set of its numbers, and therefore, logically, adding 'SpecialCharacters.pageBreak' to a random string adds the characters '1397778242 '.

2. If you get a return number, you're in trouble even more! Suppose that has already happened to a value of "Special characters" listed on this last position - say, a half-quadratín ("SpecialCharacters.EN_DASH"). Its digital representation - that is returned if you ask it - is 1397059140. Guess what happens if you use "+=" to ADD the number 1397778242 (your page break, don't forget) him? You get the 2794837382 value, which, uh, will appear as such. ID does not he "is" the value of an en dash, added to the value of a page break. It's just a number.

What is the difference when you use text strings? Generally, the following construction works:

story.insertionPoints.lastItem().contents += 'hello happy world!';

.. but not always! It will fail when the content of this last PointInsertion... one of the SpecialCharacters values. And when you do that, you get the same as above (and only the other way around).

It works when you use a direct assignment '=' as you can assign either a string value or a single character SpecialCharacter enumeration.

Tags: InDesign

Similar Questions

  • How can I insert a page break in the Pages using shortcuts?

    I use a Macbook Pro 2015 and I am trying to understand what is the shortcut to insert a page break in the Pages. When one manually choose a page break, there is a symbol of order next to him and a carrot (^) more a dash on it (-). I tried command + enter, command + enter + fn, control + fn, but nothing seems to work. Anyone?

    This is the input control

    Enter is normally found on the numeric keypad of the extended keyboard.

    To get on a use laptop fn return, that becomes command fn back

    Peter

  • When you are using Pages, how can I enter the page numbers, starting with page 2?

    I'm trying to add pages to a document, but does not include page 1 because that's my cover page. I would like to start with page 2.

    Insert your page number on your cover page. Click on page 2. Then in the toolbar, click Documents, then the Section tab select Hide on the first page of the section and corresponds to the previous section. Your page number disappears on the cover and reappears on page 2 as page 2.

  • How can I get my page back to my hp photosmart printers HP Printer Wizard 5510?

    How can I return my page Wizard HP printer for all-in-one printer, HP Photosmart 5510?  I used to have, but now all I get is a page that has only three choices: see what's printing, set the preferences and customize your printer.  I need the Printer Wizard page that has one of the following options: ePrint Setup, customize your printer, see what's printing, maintain your printer, set preferences, scan a Document or picture, manage scan to printer and printer Home Page.  Can you get it someone please let me know how I can return the Printer Wizard page?  Thank you, in advance!

    Connie7007

    Hi Connie,

    The simplest solution would be to reinstall the software of full functionality for the printer.

    The last phase of installation should fix your printer wizard.

    General instructions to install the printer software

    • Open downloads & drivers HP
    • Enter your printer model information
    • Select your printer in the list of the 'results '.

    OR

    • Enter your operating system from the menu drop-down
    • Click NEXT and scroll down
    • Find the category driver - software product installation
    • Select the base driver, e-print, or a full features software
    • Save the *.exe installation package (s) on your computer

    The files will probably save in the "folder"downloads. "

    Next:

    • If it is available, you can download print and scan doctor and / or other programs of the category-utilities

    TIP:

    Install the utilities / tools first. bit installation packages are smaller in size

    • If you have control of "Admin", you can highlight the package and "double-click" to install it, otherwise just right-click, select run as administrator and install.

    NOTES:

    ·         On the bottom half of the main Web page for your printer, you can find some helpful videos to help with the installation of the printer software!

    ·         Scroll down the list of videos back until you find the video that best fits your situation.

    • If you use a USB connection: download and install the driver software before connecting a USB cable.
    • Ethernet: If the printer supports Ethernet, you can connect the printer to the network (and assign the printer an IP address for the router, if you wish).  Once the printer is connected to the network, make sure that the printer is turned on, and then install the printer software.
    • Once the initial installation is complete and functional, don't forget to check and install the relevant updates - check the category - updated

    There is valuable information about the Web site, including manuals, pages, solving problems, and SOLUTIONS to problems, How-to's and alerts for your printer.  Be sure to take a comprehensive look at what's available.  To bookmark the page.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Click on the thumbs-up Bravo !

    It's a nice way of saying 'Thank you' for help.

    While I strive to reflect best practices of HP, I do not work for HP.

  • How can I enter BIOS compaq610 screen and set the date, time

    How can I enter BIOS compaq610 screen and set the date, time

    Hello

    See Page 94 or Page 100 (according to what's relevant) of your & Maintenance Guide.

    Kind regards

    DP - K

  • Cannot install 5 Lightroom on a second computer, I'm NOT a creative cloud customer, I'm an independent user.  How can I enter my serial number?

    I can't install 5 Lightroom on a second computer, I'm NOT a creative cloud customer, I'm an independent user.  But when I try to install on my laptop, it always of trys to sell me the monthly subscription.  How can I enter my serial number in the second copy of lightroom?  He don't ask me for it, and I can not enter anywhere in the settings?  I'm stuck

    You probably downloaded the Cloud version.  Download the version licensed through the page linked below...

    Lightroom - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • How can I split my page (in Photoshop) perfectly in sections 4 or 5?

    How can I split my page (in Photoshop) perfectly in sections 4 or 5?

    I'm sure there is a better way to do that in order to do math and measure your screen...

    Thank you ~.

    It's just a little non-intuitive.  This will help to get you started:

    The lower row of icons are

    Horizontal Center; Center Vertical, create Guides, Guides to clear (hold the button to clear the fields), create back together.

    The size fields are the same as your units, so what I do is right-click on a rule, and then select what I want (Cms or Pixels).

    Some combinations of take some working.  This image is 800 x 600 pixels, so I have a margin of 20 pixels all round.  Four columns, with a gutter of 20 pixels between the columns.  Just guide it establishes and sets the guides.  The utility is who?

    Column width can trigger upward if you don't think what you are doing.  100px in a 800 pixel wide image translates into eight columns.  If I had entered a value o 10, then I would have had 80 vertical guides!  I'm sure you'll get image from here.

  • I installed 5.6.2 Pages but all my old documents will open with ' 08 how can I delete the Pages ' 08 and update all the old documents

    I installed 5.6.2 Pages but all my old documents will open with ' 08 v.3.03 How can I remove the Pages ' 08 and update all the old documents

    5 pages is located in your Applications folder.

    Pages ' 08 is located in your Applications/iWork ' 08 folder.

    If you open your old documents Pages ' 08 with 5 Pages it will convert and if not damage, remove a large number of useful features.

    You will probably regret upgrading to 5 Pages which Apple has made extremely inconsistent and keeps changing its file format.

    Peter

  • How can I enter a recurring event?

    For the purposes of schedule on OS X, how can I enter a recurring event?

    What works for me, under the Mavericks, is to click with the right button on the day I want.  The pop-up, I put in the name of the event (and sometimes the location).  In the block that speaks of time and alarm, click 'Repeat' and then chose how I want it repeated.

    Good luck

    SRB

  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

  • How can I enter in the Gallery of photos iPhone 6s

    How can I enter in the Gallery of photos iPhone 6s? Like the ones you see on banners or commercials. Thank you

    If you mean the shooting on the campaign of the iPhone, you have not. If Apple sees your work and think it would be a good fit, they as you approach. So, better than you can do is put your work out there on things like Instagram.

    otograph https://photographicpunctuation.com/2015/03/07/The-Story-of-My-Shot-on-iPhone-pH.

  • How can we use this page Windows Genuine?

    How can we use this page once the developers of Firefox has removed the option "Enable Java"?

    Now, I downloaded this tool to check if the Windows Genuine or not! But kept getting the error message during the installation of the application.

    This is not sound/look like a problem of firefox at all, but could be a problem with the integrity of your windows system (perhaps related to malicious software): http://support.microsoft.com/kb/2617842/en-us

  • 4655 HP Office Jet: How can I fax multiple pages using the hp officejet 4500 desktop computer

    How can I fax multiple pages using the hp officejet 4500 desktop that you just bought

    can you please email me at [removed personal information]

  • I have a Tablet HP8 1401. How can I enter contacts in the e-mail prog?

    How can I enter contacts in the email (not gmail) prog that comes with the Tablet?

    The Email app to access already existing user accounts (like Yahoo, Comcast, etc..) It doesn't have a built-in Contacts section.

    You can add new contacts another way - web access to the account for example.

    WyreNut

  • How can I enter data apple fitness?  I swim and take aerobics classes.  I don't wear my Apple Watch during this operation.

    How can I enter data of fitness on my Apple Watch?  I swim and take water aerobics classes and not wear my watch in the water.

    Hello

    It is not currently possible to enter data of fitness on Apple Watch.

    Health and fitness data Apple Watch, iPhone and any other source are rather grouped by health on your iPhone app. Combined data is reflected in the health app charts (which can be added to the dashboard), which adjust the results to avoid any double counting of data from different sources.

    To add a workout that has not been registered by your watch, iPhone, or other existing data source:

    -On your iPhone, in the application of health (icon: red heart on a white background), go to: data on health (tab) > Fitness > training > add a data Point > enter the result of your workout.

    Activity types available when you add a workout currently including swimming, but do not include aerobics (other can be used instead).

Maybe you are looking for

  • Why does firefox not display sign to create the icon for email from Yahoo?

    I use Yahoo Email and I want to create a sign at the joint, but it does not appear in Firefox. Is there a way I can get it to show?

  • Satellite U300 - network connection problems

    I have problems with my laptop network adapters. The laptop is not able to connect to the internet with wired or wireless connections. I tried to update the drivers of the cards, but this does not solve the problem. In the Manager section of devices

  • Satellite A100-906 - WinXP Pro home renovation

    Hello! Is it possible to upgrade pre-installed WinXP Home Pro on Satellite A100-906? I tried to upgrade installation but Setup reports that it can not copy installation files, the strangest thing that he couldn't copy _different_ files when I tried t

  • Vertical line XY-field

    Trying to insert 1 vertical line on xy-graph, but get more. Can someone give me a clue on what I did wrong?

  • laptop Compaq presario 2701T: battery cmos

    I need to replace the CMOS battery on my laptop Compaq Presario 2701 T and would like to know if the battery is located on the laptop and how to get it out.  In addition, if you may know where I can buy this point. Thank you.