I am trying to find out whether a particular text exists and perfectly fits in the text frame and when the text flows to the next text frame, then upon calculating the coordinates(baseline) of the next frame iam increasing the size of the existing frame and trying to fit the text but when the text frame is in the next page then the baseline it's giving me a negative value so I would like to know if there is any way I could understand that the next text frame is in next page so as to avoid negative value while calculating.
Is there a way to tell which page number the textframe exists in?
365 Views Asked by Jack109 At
1
There are 1 best solutions below
Related Questions in SCRIPTING
- How do I react to external program launch inside an Automator workflow?
- can anyone help me for NSIS Script I have a case where I need to check cases can be 3.3 3.42 23.5 23.56w 3.467 999.999 999.99a but not 1.b or 8..a
- How do I restart a batch file in PowerShell?
- Trouble updating a Field in Salesforce via a Python Script
- What are JCL Alternitives for Embeded Applications?
- grep expression behaving weird (unix/mac) while reading a conf file
- Why is my bash script showing [2: command not found?
- How can I modify my code to negate this error?
- Find Specified Software - Powershell
- how to change Value to something specific and not add to it?
- How can I run this Powershell function from a batch file on windows?
- How to make toggle key to switch between two seperate functions lua script(logitech)
- My quiz automatically submits when i plug in a chrome extension that involves doing an api call
- How to "make" a variable that contains another variable value?
- function not recognizable inside scriptblock in PowerShell script
Related Questions in ADOBE-INDESIGN
- Is there any way to move above text into the below table's second cell in InDesign using JavaScript
- How to merge multiple .IDML files without InDesign?
- I have been working on an InDesign script that will select the actual image inside of a graphic frame ... is this possible
- how do i make a floating window that stays above programs, moveable and will accept input from another script
- Indesign: GREP lookbehind in paragraph style does not search for End of Paragraph
- How to make QR code with event entry readable on every device?
- Why is my InDesign Javascript not fully working?
- Find in InDesign frame symbols not marked with a certain tag, and mark them with another tag
- Programmatically generate IDML to be processed by InDesign Server- Performance considerations and questions
- understanding dialog box in Adobe Indesign
- I wanna select specific text in parentheses using GREP in indesign
- Script to resize, rotate, and center images on specific pages
- Adobe InDesign 2023 js - Modal dialog or alert is active
- I can't rename link file with name containing: "...%ef..." [ExtendScript Indesign]
- Script to find footnotes in text and transform them into real footnotes
Related Questions in EXTENDSCRIPT
- Used AI to generate an Adobe Illustrator v28.3 script that groups the contents of each individual artboard. Can't get it to work
- Is there any way to move above text into the below table's second cell in InDesign using JavaScript
- Can this be code be reduced? (Extendscript) (ScriptingListener plug-in)
- activeDocument.bitsPerChannel = BitsPerChannelType.SIXTEEN; (WITHOUT MEREGER?) (Extendscript)
- close button malfunction (Extendscript)
- edittext not responsding .onClick (Extendscript)
- Is there a way to retrieve the inPoint time and outPoint time information in Adobe Audition using ExtendScript code?
- Node JS, Extendscript and Adobe premiere pro a complete automation possible?
- Trouble Importing File into Premiere Timeline via javascript
- Access is denied writing to file from ExtendScript
- How to extend Angular NgZorro component?
- Why does this script create one null when it should create four?
- Extendscript Regex not behaving as expected
- child process acts stange premiere pro cep on m1
- Photoshop action and XML sidecar for showing dialogs only once?
Related Questions in INDESIGN-SERVER
- Programmatically generate IDML to be processed by InDesign Server- Performance considerations and questions
- Rendering fonts using font file in InDesign Server
- Indesign Server sampleclient java (SDK) not working
- Indesign render script need to target TextFrames within Rectangle objects
- How to read the contents in textframe from InDesign document using C#?
- Copy Images instead of Moving them | InDesign Javascript
- Unwanted spacing between nested elements - how to select all descendants, except one
- How to apply a new XSLT transformation to the output of the previous one-a problem with odd spacing between the lists?
- Separated italic and span tags inside list element in xslt
- How can I get a real page count in the InDesign Java document
- Is there a way to tell which page number the textframe exists in?
- Compare InDesign Document with Word OR PDF file
- Remote InDesign server entrance to my local folders
- Adobe In-Design in C# or in Java
- Dynamic content replacement using Adobe Illustrator and C#
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, each
TextFrameclass has aparentPageproperty that returns a reference to thePagethat the text frame is on.Each
Pageclass has anameproperty that essentially returns a string of the page numberTherefore, the following code snippet logs to the console the page number that the documents first text frame is on.
For this you'll need to:
Ascertain whether the text frame has an associated next text frame. You can achieve this by utilizing the
nextTextFrameproperty of theTextFrameclass. It will either:nullif there is no associated next text frame.Once you know there is an associated next text frame, you can check
parentPage.namefor the referenced next text frame to get its page number.To check whether the text frame and it's associated next text frame are on the same page check using the
===equality operator.Demo Gist
Below is a somewhat contrived example gist. It loops through all text frames in a document and logs to the console the following: