How to check if a page item is outside of a page

Hi all

I'm a developer to do some automation in InDesign, using scripts via .NET. As I am a developer, I'm not really fluent in the language of the page layout, please bear with me.

My script creates a variable amount of TextFrame on a page and move them and then turn them. Some of them could leave the page on the right side. If only one bottom right of the image the text anchor point lies outside of the page to the right, I need to detect. There is no problem to iterating through blocks of text, but the challenge is how to determine if the anchor from the bottom right of the image of a text is positioned outside of the page.

I watched GeometricBounds, but as soon as the post is to the right of the page, the coordinates start from 0. So I can't do as GeometricBounds.X > Page.Width, because GeometricBounds.X will be less than Page.Width when it is to the right of the page.

I also looked at PageItem.Resolve, but that work really confuses me. I tried to fix the anchor point to the coordinates of cardboard, and that seems to work very well. But then I have to get the right edge of the page in coordinates of cardboard, and it seems not that I can use PageItem.Resolve to get that.

I looked at the guide to programming to understand how the different coordinate systems work together, but when I use PageItem.Resolve, I get results that does not seem to be exact, where the coordinate systems must be.

I don't know that it is easy to detect if a block of text is outside of a page, but I just need a pointer in the right direction. Can someone help me with this? :-)

Thanks in advance.

PS: I'm scripts for InDesign CS3.

(1) use visibleBounds instead of geometricBounds (for processed objects).

(2) set the rulerOrigin to spread.

(3) do not use .NET, unless you live a painful experience.

Good luck

Substances

Tags: InDesign

Similar Questions

  • How to check the number of items available in RT FIFO?

    Hello

    Is there a way to check the number of items in RT FIFO without using READ FIFO function? I'm looking for a function like the function of status get queue VI.

    Thank you very much!

    Kind regards

    Tom

    See this KB article

    http://digital.NI.com/public.nsf/allkb/42E85A333767918B862570D800667FD8?OpenDocument

  • online banking can't watch cancelled check opening, it says item query not found. How to fix?

    online banking can't watch cancelled check opening, it says item query not found.  How to fix?

    online banking can't watch cancelled check opening, it says item query not found.  How to fix?

    Contact online banking support team. This has nothing to do with the topic of this forum.

  • How to check the page dirty with default values existing in viewObject?

    Hi all

    I use JDeveloper 11.1.1.4.

    I have two pages in my application. I am browsing for page2 page1.

    Before opening page 2 I created new line page 2 notice of object using method 'Create Insert()' with some default values by using the ViewRowImpl class.

    My problem is that I have a button to return to Page 2. If I click the back button, then check the Application module is dirty or not.

    But it always shows AM is dirty due to I'm setting some default values in ViewRowImpl. If I avoid the default values in ViewRowImpl then AM dirty check works fine.

    My Question is how to check the AM (or) dirty Page with default values in the object view?

    My bean Codes:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DataControl dc = bindings.findDataControl("AppModuleDataControl");

    ApplicationModuleImpl am = ((ApplicationModuleImpl) dc.getDataProvider ());

    If (am.getDBTransaction (.isDirty (()))

    {

    return "Page is dirty."

    }

    My Jspx Codes:

    < af:commandLink id = "cl6" text = '2 '.
    shortDesc = "Add Row in Page2"
    actionListener = "#{bindings." Action CreateInsert.execute}' = 'Edit' >

    Thank you

    David...

    see this

    http://www.techartifact.com/blogs/2013/11/how-to-check-ifdirty-is-modified-for-view-object.html

    http://www.jobinesh.com/2011/05/checking-for-dirty-data.html

  • When I use dreamweaver cs6 browser Checker to find pages, it creates another page starting with the letter T. And he added this page to my folder. How can I prevent that from happening. I use a Mac.

    When I use Dreamweaver cs6 browser Checker to find pages, it creates another page starting with the letter T. And he added this page to my folder. How can I prevent that from happening. I use a Mac.

    Are you spotted with temporary files?  In Edition > Preferences > Preview in browser.

    Nancy O.

  • How can I change the page size of a pdf document so that I can check on my iphone more clearly?

    How can I change the page size of a pdf document so that I can check on my iphone more clearly?

    This is way beyond what can be done with PDF, except by copying the text and make a new document in Word or something.

    That said, Adobe Reader on Windows may display the text AS IF the PDF file has been divided. It's the text reformatting. It may be possible in Reader for iPhone, you can try the player for ios forum.

  • How stop you the opening page features of Mozilla?

    im getting really upset not being able to stop the 2 pages open when I click on my firefox browser. a page that I want to open is my page of yahoo.com , the other is your new mozilla Add ons page. its boring and im about to stop using Mozilaa because of this. its ridiculous that we can stop him to load everytime I open my browser. Ive tried many things to stop it. Please help and thank you for your time

    Kevin

    Do you mean the page modules ordinary (the one that opens when you press Ctrl + Shift + a) or a page for a specific module?

    You get the unwanted page when you launch a new window (Ctrl + n)?

    If so, which may indicate:

    • One of your modules displays the new page.

    If the extra page does NOT appear in a new window, could test you using your Firefox desktop icon a second time without closing Firefox? This should launch a new window.

    If THE new window has the unwanted page, your shortcut of Firefox can be hacked. You can check by right clicking it > properties > Shortcut tab. The goal for 64-bit Windows 7 should be either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    If THE new window does NOT have the unwanted page, Firefox may show a 'one time' page and failing to mention that he showed on the page, so it keeps only once the action at every start. Have you noticed Firefox remember other changes of parameters of the problems? This article has a range of suggestions to address this kind of issue: How to fix preferences that will not save.

  • How to check if a hidden element is full

    Hi, I need to check if a hidden item can accept more data, I think that the maximum capacity is around 2000 characters, what then?

    How can I check if the element can accept more information?

    I searched a lot about this but I can't find the features, any help would be appreciated.

    Yes, 32 kilobytes or the maximum size of a varchar2 (* not * by accident).

    What do you mean by "isn't too?

    I did this little test just to check things out. First, I created a component of demand, P0_HIDDEN. Then, I created a request process that takes care of this issue with a string.

    declare

    var varchar2 (32767).

    Start

    because me in 1.32767 loop

    var: var = | « a » ;

    end loop;

    : P0_HIDDEN: = var;

    end;

    You control the number of characters that sink you into the element by changing the size of the variable and the count in the loop. Create a blank page, and then set this as a process of 'before the regions' of the page. Run the page and see the results. Change the size of the variable and the loop and the test by yourself.

    BTW, you can install the sample application in your own workspace on apex.oracle.com.

    Earl

  • 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

  • Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • 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 to check and install the drivers for the card

    I wanted to play the game with my HP Compaq 8710p (Windows 7) and said that my video card driver and probably (other drivers noticed yet) are now uninstalled in my
    System. Could you please send me
    links on how to check the
    uninstalled the drivers and how to
    Download and install. Thank you
    in anticipation of the command prompt
    response.

    Zubyjoe

    Your uninstall information

    http://Windows.Microsoft.com/en-us/Windows/uninstall-change-program#uninstall-change-program=Windows-7

    or use Revo Uninstaller

    http://www.revouninstaller.com/

    New Nvidia driver

    FTP://ftp.HP.com/pub/SoftPaq/sp61001-61500/sp61072.exe

    Other drivers

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdHome/?sp4ts.oid=3355688&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3DswEnvOID%253D4059%257CswLang%253D%257Caction%253DlistDriver&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

  • Connection problem: trying to connect to my computer at the title of the administrator, but after I put my login in it goes to check on the page and will not let me connect

    Try to connect to my computer as the administrator, but after I put my login in it goes to check on the page and will not let me connect. The regular connection for the computer works fine.  Any ideas?

    Try a system restore to a Date before the problem began:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    It is the instance of Vista installation.

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/threads

    Adjust settings, manage user accounts.

    Try the Forum above to repost, if necessary.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to check the firmware version?

    Hello

    How to check the version of firmware on my device?

    Help, please!

    Thank you

    Hello mohsen122002,

    Hope that this page will help you.

    -Bryan-

  • How to check the type of memory installed (ECC or not)?

    all!

    I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...

    How to check the type of memory installed (ECC or not)?

    Dmidecode output here:

    Drive.google.com/.../View

    Hello.

    Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.

Maybe you are looking for

  • Satellite click 10 - keyboard battery is not available

    Hi, just bought a LX5W 10 click and the State of the battery for the keyboard says "This battery is not available for use" the keyboard works fine. I've updated the bios and 1.7, responsible for 24 hours and the windows update 10 nothing helps. Any i

  • corrupted back ups, lost all my photos?

    I tried several times to backup and restore of old to the top of the synchronization.  There was a file corrupted in the meal, make problems.  The message was that the software has been altered.  I guess it was my internet connection is slow DSL coun

  • "User Login not allowed here"

    Here is my layout and the question. Page layout Using Dell Sonicwall NSA 2600 firewalls Two offices connected through the VPN tunnel. Office 1 Sonicwall LAN IP: 192.168.1.1 Office 2 Soincwall LAN IP: 10.1.1.1 Question: Created a local user account wi

  • CSA - deletion rules?

    Management Center for Security Agents Cisco v4.0 - 1 build 544 Configuration--> policies--> quarantine network--> rules to change Module--> of network access control Then, you delete by mistake a rule... YIKERS... but you have not clicked on generate

  • Create von Wiederherstellungspunkten

    Bei dem Versuch einen Wiederherstellungspunkt zu create me following message: "As den generator wurde ein nicht vorubergehender Fehler cases." Wenn der Sicherungsvorgang wiederholt wird, tritt der Fahler hochstwahrscheinlich Rubis auf (0x800423F4) Wo