Looking for a way to find out the x,y coordinates of a string inside a PDF

Hi!
I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
If any one knows of such, plz let me know...
Thanx ahead
Daniel.

vedmack wrote:
Hi!
I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
If any one knows of such, plz let me know...
Thanx ahead
Daniel.AFAIK, a string of text does not have an (x,y) location inside a PDF file. The location is exists on your screen, and will differ whenever you adjust the resolution of it. Text can have a location when it's stored as an image though, but than it's really the location of a certain number of pixels (not necessarily a string!).

Similar Messages

  • Is there a way to find out the GUI version of a logged in user

    Hello all,
    SAP provides a method in CL_GUI_FRONT_END_SERVICES called GET_GUI_VERSION. This works fine for supplying the version information for the logged in user.
    Unfortunately, it doesn't have any input parameters to specify "ANY"  user name.
    I'm looking for a way to find out the gui version of all logged in users.
    Tables USR41 will give me a list of the logged in users
    I can then use USR21, ADR6 and ADRP to get more user info.
    But, I can't find a way to determine what GUI version each of the users is using.
    Does anyone have any ideas?
    Thanks
    Ed Baker

    We have done in a different way. ie we have used userexit SUSR0001 and coded using
    * Collect SAPGUI info of the user logging on
    call function 'RFC_SYSTEM_INFO' destination 'SAPGUI'
      importing
        rfcsi_export = i_rfcsi.
    Here i_rfcsi-rfcsaprl contains the version info of SAPGUI
    and updated this info in a custom table.

  • Is there a way to find out the number of hits from iTunes for my podcast?

    Looking over my stats pages I see that 95% of all people listening to my podcast are coming from iTunes mac/windows. I suppose I could do the math, but i'm curious if there is a way to find out the exact number of people subscribed to the podcast in iTunes?
    Eric
    www.letsgetnaughtypodcast.com

    hi there you can use http://www.statcountercom
    this will give you a way to see exactly where everyone is from. just install the code it make and put it in your podcast page. and everytime some one come to the podcast you will find your info
    http://www.radioamerica1.com
    http://radioamerica.podomatic.com
    http://backalleyblues.podomatic.com
    here a few of my podcast that i have , hope this helped also

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • Is there a way to find out the given parameter is statis or Dynamic ?

    Hi All,
    Can some one tell me the best way to find out the given parameter is static or Dynamic?
    Thanks & Regards
    Rajesh Meda

    Well, Actually  I know there is a way for checking from RZ11 transaction.
    1.I need to prepare report with all the ABAP parameters  in the system that can be changed on fly
    2.I believe there is one ABAP report that will specify all the dynamic parameters. I need the report name
    Thanks & Regards
    Rajesh Meda

  • Is there any way to find out the serial number to an old ipod that i cannot find?

    theres a recall on the od ipod nanos the 1st generation ones and i purchased one and im not sure when and currently i am unaware of the whereabouts of the ipod. is there any way to find out the serial number without actually finding the ipod to confirm when i purchased it? thank you any help will be appreciated.

    iPod: How to find the serial number

  • Is there any way to find out the dependency information for column of view?

    Does Oracle provide some view / table / pl/sql pkgs to find out the dependency information for column of view ?
    For example, there are two table mytable1 (col1 varchar2(10), col2 date) & mytable2 (col1 varchar2(10), qty int), and there is one view myView as
    select mytable1.col1, col2, qty from mytable1 inner join mytable2 on mytable1.col1 = mytable2.col
    Can I get some information such as myView.col1 is come from mytable1.col, myView.col2 is come from mytable1.col2, myView.qty is come from mytable2.qty
    ?

    I can get the information about the columns list in table/view from ALL_TAB_COLUMNS table, but I wish to know the column in the view is come from which original table's column.
    Is there any way to find it out from Oracle meta data / through any PL/SQL packages ?

  • Is a way to find out the encoding of a String?

    Doesn anyone know how to find out the encoding?

    There are some circumstances in which a file (or more
    generally, a stream) may expose its own encoding,
    IIRC. But of course that's the exception, not the rule.As part of a higher level protocol, sure. HTTP, for example, may have it in a couple places (headers or in the HTML head section). Plain text files do not, however.
    But anyway at this point I'm not convinced that
    anyone knows for sure what the OP wanted or needed.I agree with that. Not convinced the OP knows, either.
    Was he really looking for a heuristic to correctly
    y guess the encoding of a stream of bytes, so that
    encoding could be used as input to a String
    constructor? Or did he just not know how to use the
    API?To the OP:
    If you have a String, there's no encoding, it's all Unicode chars in the string.
    If you have a bunch of bytes (byte[], file, input stream, whatever), then there is some encoding. If you don't know what the encoding is, there's no 100% sure way to figure it out. Some code exists, as mentioned, that can make educated guesses, particularly if you know it's one of a few possible choices. Beyond that, bytes are bytes are bytes, and how they are interpreted by character based classes/methods (like new String(byte[], String)) is defined by the encoding you tell it to use.
    So aside from that, what's the issue you're trying to solve?

  • Is there a way to find out the caller function in ESTK?

    Dear forum,
    How do you find out the caller function?
    I remember this question was asked on the forum before and, if memory serves me right, it was Peter Kahrel who answered it. Anyway, it was long ago and I can't find the post.
    main();
    function main() {
        hello();
    function hello() {
        // Is it possible to find out that the caller function is 'main'?
    Before making the post, I googled for it and found many suggestions, for example:
    alert("caller is " + arguments.callee.caller.toString());
    But nothing works for me.
    Regards,
    Kasyan

    Here's a new version of the function:
    function callerName() {
        var arr = $.stack.split(/[\n]/),
        callerName = arr[arr.length - 3].replace(/\(.*\)/, "")
        return callerName;
    I corrected the regex to remove the parentheses and everything in between.
    The previous version returned the function's name with arguments, like so:
    Result: ProcessTables([Paragraph:[object Paragraph]])

  • I just got a text from verizon stating  a 3rd party vendor just charged to my bill.  Is there a way to find out the cost of the charge.

    Is there a way to find out what a 3rd party vendor charged to my bill, before the end of the billing cycle.

    You could try calling CS, but other than that I don't think there is.

  • Any specific way to find out the tables being affected by a FormHandler

    Please let me know an approach I can follow to find out the tables being affected on calling a particular Formhandler.

    In our custom implementation, the basic work of a formhandler is to validatate data that came from a form. In our formhandler, we use some manager class and from manager class we call some tool class. In our tool class we will use some repository(In a repository we give definitionFiles=......../xyz.xml). So what operation we are going to perform via form like add, update, delete, show will affect tables in xyz.xml file.
    In OOTB supost we are using ProfileFormHandler so it will affect ProfileAdapterRepository, which has xml file is useProfile.xml.
    -RMishra

  • What is the best way to find out the underlying platform within AIR?

    I'd like to know whether Air is running on iOS, Windows, Android or Blackberry.

    Here's our Utuls_System class. It's a work in progress, incomplete, and does other stuff as well, but take a look at init() and isIOS() etc...
    package com.brightworks.util
        import com.langcollab.languagementor.constant.Constant_AppConfiguration;
        import flash.system.Capabilities;
        public class Utils_System
            public static const OS_CATEGORY__ANDROID:String = "osCategory_Android";
            public static const OS_CATEGORY__IOS:String = "osCategory_iOS";
            public static const OS_CATEGORY__MAC:String = "osCategory_Mac";
            public static const OS_CATEGORY__UNKNOWN:String = "osCategory_Unknown";
            public static const OS_CATEGORY__WINDOWS_DESKTOP:String = "osCategory_WindowsDesktop";
            public static const OS_CATEGORY__WINDOWS_MOBILE:String = "osCategory_WindowsMobile";
            private static var _isInitialized:Boolean;
            private static var _isMobileDevice:Boolean;
            //          Getters / Setters
            private static var _appHeight:int;
            public static function get appHeight():int
                init();
                return _appHeight;
            private static var _appWidth:int;
            public static function get appWidth():int
                init();
                return _appWidth;
            private static var _dpi:int;
            public static function get dpi():int
                init();
                return _dpi;
            private static var _osCategory:String;
            public static function get osCategory():String
                return _osCategory;
            //          Public Methods
            public static function getAppStoreName():String
                if (isIOS())
                    return "Play Store";
                return "App Store";
            public static function isIOS():Boolean
                return (osCategory == OS_CATEGORY__IOS);
            public static function isScreenResolutionHighEnough(requiredX:uint, requiredY:uint, isMobile:Boolean):Boolean
                init();
                if ((isMobile) && (!Utils_System._isMobileDevice))
                    // We're testing on the desktop, and can't check screen size
                    return true;
                if (Capabilities.screenResolutionX < requiredX)
                    return false;
                if (Capabilities.screenResolutionY < requiredY)
                    return false;
                return true;
            public static function isRunningOnDesktop():Boolean
                init();
                return !_isMobileDevice;
            //          Private Methods
            private static function init():void
                if (_isInitialized)
                    return;
                _isInitialized = true;
                _isMobileDevice = true;
                var operatingSystem:String = Capabilities.os;
                if (operatingSystem.indexOf("Windows") != -1)
                    switch (operatingSystem)
                        case "Windows XP":
                        case "Windows 2000":
                        case "Windows NT":
                        case "Windows 7":
                            _isMobileDevice = false;
                            _osCategory = OS_CATEGORY__WINDOWS_DESKTOP;
                            break;
                        default:
                            _osCategory = OS_CATEGORY__UNKNOWN;
                            Log.fatal(Constant_AppConfiguration.APP_NAME + " does not currently support this operating system. (" + operatingSystem + ")");
                else if (operatingSystem.indexOf("iPhone") != -1)
                    _isMobileDevice = true;
                    _osCategory = OS_CATEGORY__IOS;
                else if (operatingSystem.indexOf("MacOS") != -1)
                    _isMobileDevice = false;
                    _osCategory = OS_CATEGORY__MAC;
                else if (operatingSystem.indexOf("Linux") != -1)
                    // This won't work properly if developing on Linux, but I've spent multiple minutes
                    // trying to find out how to differentiate Android from other Linux versions, and
                    // haven't found anything that I'm confident will work for future versions of Android.
                    // Currently I get "Linux 2.6.32.9-g34b306d". I suspect that the "g" indicates "Google"
                    // but have found nothing to support this idea.
                    _isMobileDevice = true;
                    _osCategory = OS_CATEGORY__ANDROID;
                if (_isMobileDevice)
                    _appHeight = Capabilities.screenResolutionY;
                    _appWidth = Capabilities.screenResolutionX;
                else
                    _appHeight = 220;
                    _appWidth = 360;
                _dpi = Capabilities.screenDPI;

  • Any way to find out the serial number of the iPod I registered?

    My iPod was stolen a couple of days ago, and I need to find out what the serial number was (I registered it, but didn't write it down). Is there any way to get the serial # from Apple?
    iPod Nano   Windows XP  

    If you still have the box for the iPod it should say it on there...
    http://docs.info.apple.com/article.html?artnum=60978#four
    Hope This Helps
    CG

  • Best way to find out the applications/packages on the Sun Servers

    I need to find out what applications or packages are running on 10+ Sun Solaris servers, and the dependence.
    I am wondering what is the best practice to do this?

    Are you asking about what you see when you type "ps -ef" to see the processes? Or are you maybe also referring to what applications might be installed on your system for use? "pkginfo" lists all packages that are installed on the system, and you can go to the sysadm documentation on docs.sun.com to see a brief description of each of the packages.
    -- Alan

  • Any way to find out the backend still in Process for the record after saved

    once after we create a record and save here we are using many procs and functions from backend, after the record saved is there any way we will know still the backend is still in process for that record to insert into concerned tables for that module?
    we are getting an error after the first record is saved for some reason the form is not getting clearing after the record is saved there is clear_form code is also there in my save button.
    this is my prod problem please do help me out..
    thanks in advance..

    The Commit will not return control to the form until it is finished. So unless you are starting asynchronous operations with things like DBMS_JOB it is not going to be a timing problem.

Maybe you are looking for

  • How do I stop safari from reopening previous sessions even after restart?

    Finally made the leap to Lion. WHY does safari insist on starting up and restoring the previous session, all tabs and everything even after a restart.  I've looked in preferences and for the life of me cannot find how/where to turn this off.  I just

  • Invoice and Payment postings

    Hi all, 1) I have a requirement to send invoice header and details to 3rd party system based on customer. 2) Subsequently the 3rd party system posts the payment using bank Check or Credit Card. What are the Trx codes (tables or Function Modules) for

  • Unit *** is not created in language

    Dear all, in SAP CRM WebUI when I'm trying to create ERP Sales order from ERP Quotation in a follow up process I get the error "Unit *** is not created in language EN". CUNI settings are OK in both ERP and CRM systems. In a web page dialog when I wan

  • IMovie 10 download will not launch

    Hello. My iMovie 10 dock icon just bounces without launching App? If I click a second time the screen launches but with errors, it is incomplete with a broad black column on the left hand side with no menu options. I can't do anything with it?  Using

  • Connecting to dynamic link server - FAILED - second time

    I bought the creative cloud membership and I use after effects for my projects then send them over to media encoder for rendering. At first when I would send it over to media encoder it worked just fine, then SUDDENLY, one day, it stopped worked and