PDTextSelectGetBoundingRect and PDETextGetBBox producing different bounding boxes

I used PDTextSelectGetBoundingRect to get the bounding box of a single character, then I used PDETextGetBBox to retrieve the character bounding boxes in a PDEText element. However when I get to the character in question limit box will not come out the same. The left, right and the sides of the bottom of the box are coming as planned, but the top is larger, then the original box from PDTextSelectGetBoundingRect. Any idea on what could be the issue.

These are not only different API, they are conceptually different and work in different ways (one on content EDP page, an abstraction of the graphical model and one on the PDWordFinder, a text extractor). I'm surprised that they are also similar because they are given many different concepts of "enclosing" you might find (square em, limit of control point, nominal path, path antialisesed limit, advance left-right text...)

The mixture of these unfortunate necessity of the API isn't. You must apply a fuzzy logic to match its content and hope for the best.

Tags: Acrobat

Similar Questions

  • PB Kit and FP10 produce different results

    I tried the HSL of Ryan Taylor filter:

    http://www.Boostworthy.com/blog/?p=246

    using 1.0.350192 PBK, building 35, Flex SDK 4.0.0.4065 and the debug version of Flash Player 10,0,12,36 on a MacBook Pro 4.1 with 2.5 GHz Intel Core 2 Duo and GeForce 8600 M GT.

    I do not get the same result in PBK and FP10 during the passage of an image through the filter. PBK entry and exit are as expected equal when none of the transformations are applied (all parameters are set to zero) but not when running in FP10.

    Is anyone able to replicate this? Does anyone have an idea what could cause this? In my case, it seems that green color values are always mapped to the red channel.

    Thanks for the quick response. It seems that you're right about the min/max functions, but I had to replace the functions entirely with my own conditional instructions before it worked. Copy the value of the sample in a temporary variable wasn't enough in my case.

  • Why are anchor points and bounding boxes is visible overprint preview?

    I've recently updated my CC 2014-2015 CC Illustrator and have noticed a really annoying change. I can only view/edit the bounding boxes and anchor points, while in the overprint preview. In the view/show edges and view display the bounding box does not help. It shows it as being already visible. Anyone else having this problem?

    Disable the GPU performance. (There is an icon of rocket to the top left of your window).

  • Running Fortran under Windows 7 code produces different results each time.

    I run a FORTRAN code in windows 7 and it produce different results for different courses. Is this a problem of floating point or what? Is there anyone who knows a way to overcome this problem?

    original title: Code Fortran

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the MSDN Windows 7 forum.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • I want to fill track of Image with white people, but not the bounding box

    I want to fill track of Image with white people, but not the bounding box.

    I have several black and white pen and ink sketches that I want to scan to JPEG, make a record of the image in the drawing line and have "encompassing" transparent but keep the white background in the image.

    Is there a way to do this?

    You would need to expand the trace, and then remove the 'bounding box white' after tracing.

  • Bounding box does not object (Illustrator CS4)

    I don't know if this is a bug or a mistake on my part, but since last week, the bounding box for my objects really did match objects. It's really problematic when I try to turn the object using the bounding box handles.

    Occasionally, after I have transform the object covering the match again and will transform correctly. Sometimes it will stay off. If he refocus, undoing the changes back to the original size will cause the framework encompassing restore in his State do not match.

    Things, I tried to solve the problem:

    1. Reset bounding box
    2. Copy and paste the form to another document
    3. A new document from scratch (I thought it was possible I corrupted the file)
    4. Return the default keyboard shortcuts
    5. Restart Illustrator
    6. Rebooting my system

    To my knowledge, my system has not been last updated last week, or whatever again was installed. However, HE pushes the interview so there is a possibility that it has been updated and I don't know about it. The only programs open work in Illustrator is bridge, Outlook 2007, IE8, Explorer, InDesign CS4, Word 2007, Photoshop CS4, Acrobat 9 Professional, Dreamweaver CS4, PowerPoint 2007, Previewer and possibly FireFox 3. something (although not necessarily at the same time - usually about 7 of the above listed). My system is XP Professional SP3 with an Intel Core 2 Quad @ 2.66 GHz and 3.25 GB of RAM. The objects are not grouped, contain no clipping masks, contain no transparency masks and are not transparent traces. They are paths/simple forms, often of the rectangles.

    I've included some pics to explain better my problem. This first picture shows how the framework encompassing does not match the rectangle.

    MismatchedBoundingBox.gif

    The second image shows the process of transformation of the form through drag.

    TransformProcess.gif

    The third image shows the result.

    TransformResult.gif

    Thanks for any help you can provide!

    It is a display bug (?) that has been around for a while.  The corners of the rectangle enclosing space requirement and display then the bounding box must be established more then the object it contains.  That's correct, I think - but the bug occurs when you resize and she estimated the size of the bounding box, rather than the size of the object.

    The only solution for the bounding box to work is to zoom in order to have the corners of room bounding box to draw the size of the object.  Alternatively, look at your panel of transformation to manually resize your object.

    Would also report to Adobe so they know that we care about it being fixed: Adobe - feature request/Bug Report Form

  • Why the bounding boxes are different between the XI Acrobat Pro and Acrobat DC?

    Hello

    Firstly apologies if this been asked elsewhere, but so far I have failed to find a solution.

    I have Acrobat Pro XI and Acrobat DC, each on two different PCs using Windows 8. Why the function edit text & Images interprets the same PDF document differently when displaying the bounding boxes. In Pro XI he produced 7 inclusive about 7 decent size paragraphs of text only. In MS bounding boxes are reduced to only 3 each effectively covering most thick of text in the document. To quickly select 3 of 7 bounding boxes to remove them entirely from my PDF seems not to be possible in DC, where I appear instead of having to select large portions of the text instead and delete accordingly.

    I don't see where in preferences maybe you can change the 'sensibility' or 'threshold' to distribute a PDF file in smaller sizes (but more) bounding boxes. Is it possible to make DC behave like a Pro XI?

    Any help would be appreciated.

    Mark

    These boxes are the result of speculation, well enough. The algorithm behind

    He probably changed between versions, so the different results.

    There is nothing you can do about it.

  • How can you turn on and off this bounding box?

    Hello

    I work with a group of students in AfterEffects and showed students how to move an object.  There is a bounding box appears around the work of everyone with the exception of a student and for the life of me I can not understand how to market.  I'm probably using the wrong name for it, but I enclose a photo.

    Could someone point me toward putting in - should I use to activate it?

    Thank you!Screen Shot 2016-09-22 at 8.07.56 AM.pngScreen Shot 2016-09-22 at 8.08.01 AM.png

    This is the layer handles. See-> see the layer controls to turn it on. If the layer controls are on and you see her always, click on the compose window and choose View-> display options and see that the "handles" is checked.

  • Do I turn on the leaders, I lose guides, bounding boxes and anchor points.

    When I turn on the leaders, or open a file with them, it is not appear.  I can still do the guidelines and select them, so I know what they are.  I'm also losing anchor points and bounding boxes.  Any ideas?

    Have you tried to switch between views GPU and CPU? CTRL + E

    It may be a GPU problem... ?

    What is your system, the version of the application, etc.

  • I-2015 does not display of selections, guides and bounding boxes

    Illustrator does not appear selections, guides, or bounding boxes in MBP (2014 Retina) with Yosemite.

    None of the toggles work in the menus, keyboard shortcuts or playlists with the tools.

    The preferences were not reset - still no joy.

    A solution would be most appreciated!

    Try and disable the socket supported GPU.

  • Hi I need to move my cs5 to a different cpu and do not have the box with the product key

    Hi I need to move my cs5 to a different cpu and do not have the box with the product key

    Quickly find your serial number

    Mylenium

  • The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    haggyabeken,

    I'm afraid that you have come across the Rectangle Live bug, which is limited to MAC versions starting from 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked below.

    https://forums.Adobe.com/thread/1595973

    Thus, a switch for the Mavericks with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • Everytime I open a new Illustrator file, these leaders Council art and green bounding boxes are on the art map. How can I get green inclusive off the screen?

    IMG_4040.jpg

    I don't know how to get rid of them in a file that you have already opened, but I know why you get them. When you create a new file with a profile "Video and film", you will get the guides of film and television production.

    Try instead to create a new document with a «Basic RGB» profile

    Edit: OK, you can get the crosshairs and bounding boxes get out by going to the preparation of the Document > change work plans and then deselect these options:

    ... Always impossible to get the sovereign - things go, however.

  • When the bounding box and driveways handles?

    Today, I had updated Illustrator 2014 a.1 and I realized that the bounding box disappeared...

    It works great when two or more objects are selected, but for a single object it just disappeared...

    How do I get it back?

    Vectorminator,

    If this applies to the Rectangles Live, you may need to wait for a fix, but you can create normal old shaped rectangles and have the normal behavior of return; You can use the free script created by Pawel, see this thread:

    https://forums.Adobe.com/thread/1587587

    It may be a good option to have in any case.

  • Resizing Auto text in a bounding box (and remove the line break)

    I have a lot of certificates of completion of the course I create (using pre-made our graphic charts).  I set up some variables from my diapers and I use a data set to shoot in the person's name, the course title and date of a CSV file.  The text 'Name' encompassing that I created is set to a specific width and height (and must stay that way) with a font size of 94,22 pt; However, some names are REALLY long and are too big for the bounding box.  They dress up.  When I run the "data fusion", I need Photoshop to automatically resize the text in the bounding box so that it is not word wrap.

    For example, "Jane Doe" fits well in the box.  However, "Johnathan Cornelius Doe" is too long, and the word encapsulates.  Instead, I want Photoshop to the long name and simply its size down to fit properly in the lack of word envelope bounding box.

    I have about 200 of them to spend in Photoshop, print and send.  I really don't want to individually open each certificate to verify this last after that I have run through.  I just batch process and print batch.

    Is there a way to do this?  Please note that I have never made any script; so if this is the way it must take, I need to explain carefully and in simple terms.

    Thank you!

    OK, try this. Save the code in a text file with the extension .jsx below. Create an action that runs the script. Then, you can use this action with the batch command.

    #target photoshop
    var doc = activeDocument
    doc.activeLayer = doc.layers.getByName ('LastName')
    var ly = doc.activeLayer
    var before = ly.bounds[2]-ly.bounds[0]
    
    var amt = doc.width/before*100
    transText (amt)
    ly.translate (-ly.bounds[0], 0)
    
    function transText(amt){
        var idTrnf = charIDToTypeID( "Trnf" );
            var desc2 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref1 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref1.putEnumerated( idLyr, idOrdn, idTrgt );
            desc2.putReference( idnull, ref1 );
            var idFTcs = charIDToTypeID( "FTcs" );
            var idQCSt = charIDToTypeID( "QCSt" );
            var idQcsa = charIDToTypeID( "Qcsa" );
            desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
            var idOfst = charIDToTypeID( "Ofst" );
                var desc3 = new ActionDescriptor();
                var idHrzn = charIDToTypeID( "Hrzn" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idHrzn, idPxl, 0  );//259.646484
                var idVrtc = charIDToTypeID( "Vrtc" );
                var idPxl = charIDToTypeID( "#Pxl" );
                desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
            var idOfst = charIDToTypeID( "Ofst" );
            desc2.putObject( idOfst, idOfst, desc3 );
            var idWdth = charIDToTypeID( "Wdth" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc2.putUnitDouble( idWdth, idPrc, amt);//1050.143628
            var idIntr = charIDToTypeID( "Intr" );
            var idIntp = charIDToTypeID( "Intp" );
            var idBcbc = charIDToTypeID( "Bcbc" );
            desc2.putEnumerated( idIntr, idIntp, idBcbc );
        executeAction( idTrnf, desc2, DialogModes.NO );
        }
    

Maybe you are looking for