How do I properly convert Integers to Bytes

I'm writing a program that simulates a disk operating system. I'm have trouble storing the track & sector in the table. I can store all other information( filename, size) stored as Byte objects. When I try to store the track and sector which are Integers I get a smiley face and a blank space. What am I doing wrong? Help, Help
thanks
Spoon

Where's some code??

Similar Messages

  • How can i convert object to byte array very*100 fast?

    i need to transfer a object by datagram packet in embeded system.
    i make a code fallowing sequence.
    1) convert object to byte array ( i append object attribute to byte[] sequencailly )
    2) send the byte array by datagram packet ( by JNI )
    but, it's not satisfied my requirement.
    it must be finished in 1ms.
    but, converting is spending 2ms.
    network speed is not bottleneck. ( transfer time is 0.3ms and packet size is 4096 bytes )
    Using ObjectOutputStream is very slow, so i'm using this way.
    is there antoher way? or how can i improve?
    Edited by: JongpilKim on May 17, 2009 10:48 PM
    Edited by: JongpilKim on May 17, 2009 10:51 PM
    Edited by: JongpilKim on May 17, 2009 10:53 PM

    thanks a lot for your reply.
    now, i use udp socket for communication, but, i must use hardware pci communication later.
    so, i wrap the communication logic to use jni.
    for convert a object to byte array,
    i used ObjectInputStream before, but it was so slow.
    so, i change the implementation to use byte array directly, like ByteBuffer.
    ex)
    public class ByteArrayHelper {
    private byte[] buf = new byte[1024];
    int idx = 0;
    public void putInt(int val){
    buf[idx++] = (byte)(val & 0xff);
    buf[idx++] = (byte)((val>>8) & 0xff);
    buf[idx++] = (byte)((val>>16) & 0xff);
    buf[idx++] = (byte)((val>>24) & 0xff);
    public void putDouble(double val){ .... }
    public void putFloat(float val){ ... }
    public byte[] toByteArray(){ return this.buf; }
    public class PacketData {
    priavte int a;
    private int b;
    public byte[] getByteArray(){
    ByteArrayHelper helper = new ByteArrayHelper();
    helper.putInt(a);
    helper.putInt(b);
    return helper.toByteArray();
    but, it's not enough.
    is there another way to send a object data?
    in java language, i can't access memory directly.
    in c language, if i use struct, i can send struct data to copy memory by socket and it's very fast.
    Edited by: JongpilKim on May 18, 2009 5:26 PM

  • How can I convert stream to byte and byte to stream

    I got a IInputStream from BackgroundDownloader operation, how can I convert it to byte array? I try to convert it to buffer and after that to bytes, but it's always throw exception.
    function decryptStream(inputStream, totalBytes) {
    var reader = new Windows.Storage.Streams.DataReader(inputStream);
    var iBuffer = reader.readBuffer(totalBytes);
    var bytes = Windows.Security.Cryptography.CryptographicBuffer.copyToByteArray(iBuffer);
    Could I have examples about that?

    Hi Jeft,
    In my program, I have a BackgroundDownloader to download an image. When we have result, I will convert it to bytes array.
    if (p.hasResponseChanged && imageStream == null) {
    imageStream = operation.getResultStreamAt(0);
    if (!p.hasResponseChanged && imageStream != null) {
    decryptStream(imageStream, p['bytesReceived']);

  • How do I convert a double-byte encoded file to single-byte ASCII?

    Hello,
    I am working with XML files (apparently coded in UTF-8) which encoded in double-byte characters.
    The problem is the characters for end of line: 00 0D 00 0A
    This double byte end of line is causing a problem with a legacy conversion tool (which deals with 0D 0A). The file itself contains no
    accented/international characters, so in principle converting to single-byte should not cause any problems.
    I have tried to convert this file with tools like native2ascii and the conversion tools that are part of Notepad++ but without
    any luck - the "00 0D 00 0A" are still present in the output
    Can anyone point me to a tool or some code that can convet this file into single-byte?
    Thank you.

    Amiens wrote:
    native2ascii.exe -encoding UTF-16 -reverse INPUT.xml OUTPUT.xml
    gives 00 00 0 0D 00 00 00 0A
    so clearly that is not the required output.What you've got there is UTF-16 encoded text that's been converted to UTF-16. Get rid of the "-reverse" option and you should see the result you expect.

  • How to get the file size (in bytes) for all files in a directory?

    How to get the file size (in bytes) for all files in a directory?
    The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
    Furthermore the size is not retrieved correctly.
    How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
    Thank you
    Peter
    java.io.File f = new java.io.File("D:/todo/");
    files = f.list();
    for (int i = 0; i < files.length; i++) {
    System.out.println("fn=" + files);
    if (new File(files[i]).isFile())
         System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }

    pstein wrote:
    ...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
    Here is an SSCCE.
    import java.io.File;
    class ListFiles {
        public static void main(String[] args) {
            java.io.File f = new java.io.File("/media/disk");
            // provides only the file names, not the path/name!
            //String[] files = f.list();
            File[] files = f.listFiles();
            for (int i = 0; i < files.length; i++) {
                System.out.println("fn=" + files);
    if (files[i].isFile()) {
    System.out.println(
    "file[" +
    i +
    "]=" +
    files[i] +
    " size=" +
    (files[i]).length() );
    }Edit 1:
    Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting.   To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form.  It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
    Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Converting String to byte array

    Hi,
    There is a code for converting String to byte array, as follows:
         public byte[] toByteArray(String s)
              char[] c = s.toCharArray();
              int len = c.length;
              byte[] b = new byte[len * 2];
    for ( int i = 0 ; i < len ; i++ )
         b[i * 2] = (byte)(c);
         b[(i * 2) + 1] = (byte)(c[i] >> 8);
    return b;
    But this isn't doing the conversion properly. For example, for the � (euro) symbol, it converts to some other unreadable symbol. Also, same is the case for square brackets. Any idea why this' so? What's wrong with the above code?
    The encoding format is UTF-8.
    Thanks.

    > In fact, I tried with String.getBytes() too, but leads to the same problem, with those specific symbols.
    Did you try the String.getBytes(String charsetName) method?
    Both methods have been around since Java 1.1.
    It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of online documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
    Java� API Specifications
    Java� 1.5 JDK Javadocs
    Best of luck!
    ~

  • Convert integers to equivalent characters in string - NOT ASCII code character

    I have to output my data and associated string information to a string array and then to a spreadsheet file.
    I want to do this by converting integers (and other numbers) to an identical string of characters.
    I have tried Type Cast with a string constant as the type input but it DOES NOT WORK.  Instead, I get the ASCII character whose numerical designation matches the integer, e.g. integer "50" become capital "P".
    I want integer "50" to be string "50".
    Please advise and no, I do not want to make arrays of clusters.
    Solved!
    Go to Solution.

    I found my answer but only after searching for "Number" conversion rather than "Integer" conversions.
    In the Programming palette  - String Functions - String/Number Conversion - Number to Decimal String:
    "Converts number to a string of decimal digits at least width characters wide or wider if necessary. If number is floating-point, it is rounded to a 64-bit integer before conversion."

  • How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?

    How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?
    I assume there are already instructions on Apple.com someplace but haven't seen them yet… I have to one terabyte drives one the operating system the other is blank I want to start fresh I want to zero out both drives but I didn't want to make any mistakes
    I know I can use disk utility to 0 Out Dr., #2 that means I will have to take out the operating system hard drive out of my 2008 Mac Pro and put it into my 2009 Mac Pro to use the disk utility to zero out drive one the OS drive in my 2009 Mac Pro am my correct
    I just need a little bit a help I want to go slow so I don't make any mistakes with the sleds or with the erasing process which journaled to choose encrypted or not etc. etc.
    Furthermore is there instructions on the site on how to change the hard drive into a different sled because the sleds and my 2009 are different than my 2008 any advice
    Thank you

    I'm doing this because my friend told me that zeroing out the drive can nap bad sectors and also later for some kind of diagnostics usage of the drive or something like that he wasn't really clear
    My friend was really specific he said choose the option that writes zero's once over the drive that is plenty good enough I was inclined to use the maximum seven write ...I just want to make sure the drive has no bad sectors and that's it's it's zeroed out for possible future diagnostics usage or something that he said was usable later
    he also advised me to run a test on it but I don't have the software you mentioned or the software that he has… So I may have to take the drives over to his house unless you have some kind of free software that's easy to use that you could suggest that will not only zero out the drive but test the drive completely
    I am completely new to Mac I'm no dummy but at the same time I'm not super technically capable I mean I can surprise myself I'm pretty good but I need a good teacher… How expensive is this lifeguard software?
    Thank you

  • How do i properly erase an iphoto folder?

    unfortunately (and ironically), in my paranoia to not lose any photos, i've imported similar photos several times into iphoto. i then used iphoto diet, but it does strange things sometimes - in my experience, it doesn't always remove the proper duplicate (but the thumbnail), etc. so i've resorted to manually sorting each of 15K (ouch!) photos to remove the correct duplicate. i do this by sorting through the photos for different years. i've started working on 2004, and wanted to start with a clean slate and erase all the photos, then only import the orinigals i want, but iphoto 'residually' shows the saved thumbnails (i think they're thumbnails b/c they are only about 16kb, and don't open to full size - i get the 'white screen' that others have mentioned). i entered the iphoto folder (i know - a no no, but didn't know how else to erase 2004 photos) and deleted the 2004 folder.
    sorry for being so wordy - can you suggest a way to eliminate my 2004 photos in a way that would be iphoto-friendly ?
    thanks for any suggestions.
    -vince

    There are several ways to erase photos, slideshows and albuns from iPhoto.
    First of all, to make you more feel secure all you photos are actually in your iPhoto library- that means they have been copied to you pictures folder. Whatever you do with them, the originals are kept. I mean, if you have one photo in a certain album and if you erase it from that album, the original is kept in the Library and pictures folder. All iPhoto does is like an alias to the Library, so it is perfectly safe to erase an album or slideshow in iPhoto, since the real photos are in the Library, and the most real ones are still kept in the pictures folder on the finder.
    ..."how do i properly erase an iphoto folder?"- select it and press "delete" or on the "edit" menu--> "erase/delete/cut"... again... don't worry about the content of this folder/album, because they will remain either on the iPhoto Library and pictures folder on the Finder.
    Sorry to be so confusing...
    Hope I've been helpfull.
    Kisses from Portugal
    CV

  • Guide: How to rip and convert DVDs or other videos to iPod

    Hi guys, we ofter met problems in using iPod, such as when we meet with a beloved movies we are in trouble to enjoy it on our iPod. Thus I write this document that shows how to rip and convert DVDs or other videos to your iPod MP4.
    1. First of all, please download ImTOO DVD to iPod Converter at http://www.imtoo.com/downloads/dvd-to-ipod-converter.exe
    2. Install it and open your local DVD by clicking "Add DVD Folder" button under "File" menu.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31FZ6oHp3lEKFmPK-hzWXDKecAOVQRzIL6-9KjaiLbyLXfiGo-BqkoGtvlrUMzl4l4jagq2S6z7b7G6KKH 95thyCXsC4EtgTtirQuELGZZxQoSSAxk3UnPd4L85jC3rQcdkQ[/img]
    3. Click “Show Chapters” button to see all the chapters within the file.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31_FZ6oHp3lEKFmO0ylFD2qSpZXP_cqMtscE2WqThpAR5g09Bs9U35fi6b3uUeM6oDO-DPo51IxZo2GUj9o4uxpdpDu6evNlsGOq2moZ5kotKHhcSxiBzDgy2g[/img]
    4. Set output format: In “Profile” drop down list box, you may select output format. The software allows setting different output formats according to different files.
    Tips: by selecting iPod MPEG-4 Movie format (*.mp4) in “Profile” drop down list box, the software will produce iPod mp4 formats.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31_FZ6oHp3lEKFmPreyw1kYwIJpDTwM_a3gQURdsdtZTxYLYSCUkFGAZMv-5kWmqEvM3xV3NJ3QYlkVW0KoPzHuv7ClaSfNQUQaMdyNItZkgZxEW3MO9cilDaA[/img]
    5. Set conversion mode (Optional)
    After selecting certain output format, the right column will show its general standard. By clicking certain settings such as 'Zoom', 'Split', 'Destination' and ‘Title’ etc, you may set it.
    Please note: you can set "Bit Rate" by choosing the rate given, such as "512". Certainly, you can keep all the above options default without any change.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31_FZ6oHp3lEKFmMmPbg0rEpycrO9G5jwgdPpg9yGpkTI0havv96bJT7HYAH4PVu7lR4ESdVkO Ev5u-INctCxDm6iwLDLfadLmHS3bhlcQFwYMy2XIYVRMkGE7OpKq1J7AZy[/img]
    6. Start conversion:
    Finally, selected the chapter you want to convert and start conversion by right-clicking the chapter name and selecting ‘Rip Selected’ under the menu.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31_FZ6oHp3lEKFmMQKrsTLGjo2VB1_Ru7O-P1Wwc1G7tEx9ItpbTAHKre577ymbGupT2zuFu3c e774REhjfFDEHB-6zQ9kZj0dK2dD0wJDYkjW7mU7hNy3FQyrLlkuWYr2mH[/img]
    After a short while, you will get a file that is ready to be played on your iPod. But how do you add it to your iPod? Here is the way:
    1. Please click ‘Open’ button after the conversion is completed.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31_FZ6oHp3lEKFmPzJC1-X4F_jyEtPuPH09CS49w6mepw6jYUOMYuVFkqTUfZxH7VxKkEyNtEH sCDNqJfkmd9ICVL-EUtuvMkBV5bSA7IAxfqO0LT5diei4KmIVxkzBruxVI[/img]
    2. Find the converted file in the destination folder and pull it to your iTunes.
    [img]http://storage.msn.com/x1pbglk-vqL4BtU6DAW1-Bend4LzY31FZ6oHp3lEKFmNiayBbtoinszucPj5wjDWxTlGIqjIo988kyWKXT2NuPu1n0xSCu8yeV6o6N6gJcFFO5Y -MbPi4gw4oCHSH3Nq4pJ0tVcZ60Uf5YIW5xpllwzzouu8JRcnZ[/img]
    If you don’t have an iTunes yet, please download it freely here:
    3. Pull the file list under the iTunes to your iPod. Then you will see the file name under ‘Recently Added’ list of your iPod menus.
      Windows 2000   Windows9x/xp/me

    Thanks! But when I visit the site recently, I found the program was upgraded. Now it has 2 optimized output formats specially made for iPod 30G and 60G players! Thus it is easier and more convenient to use without complex settings as other software. Try it at http://www.imtoo.com/downloads/dvd-to-ipod.converter.exe
    Another good news: there was a new discount suite ImTOO DVD to iPod Suitethat contains both the DVD to iPod Converter and iPod Movie Converter. It saves newly $20! Hope this can do some help

  • TS1409 How do I mass convert all my videos in iTunes From FLV to MP4?!!

    My problem is a simple one that YOU will, sooner or later, face---else you already faced it.  It is the DREADED mixed media from You Tube.       HOW DO I MASS CONVERT MY ITUNES FLV VIDEOS TO MP4 VIDEOS.  If MP4 will play Video & Audio---why do I need FLV files?
    1.  I have an old APLINE IDA-X001 Digital Automobile Receiver that I have ported my iPOD Classic to via their Alpine Proprietary High Speed USB2 Cable.
    2.  I have 800+ You Tube music videos from the 80s (what can I say, WE ARE ALL ENTOMBED IN THE MUSIC OF OUR YOUTH and I am a couple of months older than Steve Jobs---Double Nickel or should I say YEAR ZERO of our lord Rock & Roll!!!).  When driving, I just want to hear the Audio Files from my iPOD.
    3. 90% of said You Tube videos are in Flash Video (FLV), 10% are MP4.
    4. You can only play FLV on outputs that have videos, MP4 videos can play in video mode else audio only mode---THEREFORE I NEED TO CONVERT all my FLVs to MP4s on my iPOD Classic (160GB).
    5. Yes, there are a handful of FREE Video Converter programs out there and the one I have AV8 will convert FLV to MP4 one file at a time...drip,drip,drip!!!
    6. I have 800+ Music Videos---I will have died from old age before my iPod is filled.
    7. My DESIRED END STATE is to flip a software switch and have all my iPOD FLV videos magically convert to MP4
    8. You Tube Download Modality:  I find a song I like and Download it to RealPlayer.  Once downloaded, I PAINFULLY convert it to Ipod (can't do more than 9 songs at a time). Once in iTunes, I sync it to my iPOD classic and bam---my videos are in my my iPOD.
    9.  Currently, the only songs that play on my iPOD are those I've purchased from iTunes.
    10. Whudda I Do?  The Apple Tech guys haven't a clue. Also. If I can only do it manually (I've got movies mixed in as well), how do I set up an MP4 folder and then only transfer that folder on to my iPOD?!!!

    The sync process for contact information, calendar events and bookmarks is bidirectional.
    http://docs.info.apple.com/article.html?artnum=306071
    The sync process for iTunes content and photos transferred from your computer to the iPhone is in one direction only and can be synced with iTunes on one computer only.
    iTunes includes an option to transfer content purchased from the iTunes Store only from an iPod or iPhone - not for content acquired elsewhere that was transferred from iTunes to your iPhone.
    You need to transfer your iTunes library from your Windows PC to your Mac.
    http://docs.info.apple.com/article.html?artnum=304721
    http://www.apple.com/support/switch101/

  • How to save a value in a byte array, retrieve it and display it?

    Hi,
    I am doing a project for my data structures class that involves saving a value (given in String format) in a byte array (our 'memory'). Initially I just tried casting character by character into the byte array and casting back to char[] for retrieval (using .toString() to return what's supposed to be the original string), but this did not work. I tried the .getBytes() method, applying it to the string and then trying to recover it by placing the contents of the 'memory' in a byte array and applying toString(), but that didn't work either. I looked a bit and found this class, CharsetEncoder and CharsetDecoder. I tried to use these but when I try the compiler tells me I cannot instantiate CharsetDecoder because it is an abstract class. At this point I'm at a loss as to what I can do. Is there any way to place a string in a byte array and then recover the string in it's original format? For example, I might save a value in my particular class of "456". But when I try to recover the value from my 'memory' i.e. the byte array, it comes out like [gnue@hnju.... or something similar. I need it to output the original string ("456").
    Below is my code as it is right now, for the methods setValue and getValue.
    Thanks!
    public void setValue(String value) throws InvalidValueException {
         //… stores the given value in the memory area assigned to the variable
              if(this.type.isValidValue(value)){
                   bytes = value.getBytes();
                   int i,j,k;
                   int l=0;//might be wrong?
                   int ad=address-(address%4);
                   mem.readWord(ad);
                   reg=mem.getDataRegister();
                   if((address%4)+bytes.length-1<4){
                        for(i=address%4;i<address%4+bytes.length;i++)
                             reg.setByte(i, bytes[i]);
                        mem.setDataRegister(reg);
                        mem.writeWord(ad);
                   else if((address%4)+bytes.length-1>=4){
                        if(address%4!=0){
                             for(i=address%4;i<4;i++){
                                  reg.setByte(i, bytes);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                             ad+=mem.WORDSIZE;
                        while(ad<address+bytes.length-(address+bytes.length)%4){
                             for(j=0;j<4;j++){
                                  reg.setByte(j, bytes[j+l]);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                             ad+=mem.WORDSIZE;
                        if((address+bytes.length)%4!=0){
                             mem.readWord(ad);
                             reg=mem.getDataRegister();
                             for(k=0;k<(address+bytes.length)%4;k++){
                                  reg.setByte(k, bytes[k+l]);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                   else
                        throw new InvalidValueException("The value passed is not valid.");
         /** Gets the current value of the variable.
         @return current value converted to String
         public String getValue() {
              //… returns the current value stored in the corresponding memory area
              //… value is converted to String
              bytes=new byte[this.getType().getSize()];
              int i,j,k;
              int l=0;//might be wrong?
              int ad=address-(address%4);
              mem.readWord(ad);
              reg=mem.getDataRegister();
              if((address%4)+bytes.length-1<4){
                   for(i=address%4;i<address%4+bytes.length;i++)
                        bytes[i] = reg.readByte(i);
              else if((address%4)+bytes.length-1>=4){
                   if(address%4!=0){
                        for(i=address%4;i<4;i++){
                             bytes[i] = reg.readByte(i);
                             l++;
                        ad+=mem.WORDSIZE;
                   mem.readWord(ad);
                   reg=mem.getDataRegister();
                   while(ad<address+bytes.length-(address+bytes.length)%4){
                        for(j=0;j<4;j++){
                             bytes[j+l] = reg.readByte(j);
                             l++;
                        ad+=mem.WORDSIZE;
                   if((address+bytes.length)%4!=0){
                        mem.readWord(ad);
                        reg=mem.getDataRegister();
                        for(k=0;k<(address+bytes.length)%4;k++){
                             bytes[k+l] = reg.readByte(k);
                             l++;
              return bytes.toString();

    You can certainly put it into a byte array and then construct a new String from that byte array. Just calling toString doesn't mean you'll automatically get a meaningful string out of it. Arrays do not override the toString method, so the use the one inherited from object.
    Look at String's constructors.

  • Converting Japanese two Byte Character...

    Hi,
    I am doing a Scenario outbound from R/3.
    I am triggering the message via proxy using japanese language and sending to XI.
    In XI, we are getting the Mapping Error.
    Some records in the message contains single byte characters and some records having double byte characters.
    For single byte characters, XI is able to generate the target structure in the Mapping. But it is not able to convert the double byte characters to the target structure.
    Can any one help me to resolve this issue....
    Thanks in advance...
    Regards,
    Vasu

    Hi,
    Japanese data are Shift JIS encoded ? Maybe changing the encoding (or encoding declaration) could help ?
    Chris

  • How do I save/convert IMovie clips to be able to play in Windows Media Player?

    I am new to IMovie and have a new MacBookPro Retina. I have made several movies and want to be able to share them with friends on their PC. How can I save/convert them for them to play them in Windows Media Player?

    file/share/ and select 'file' again.. creates a mp4, which is compatible with any player software.
    or, in case ....
    If want to 'convert' older exports, with a mov or m4v of whatever suffix, use he free tool Mpeg Streamclip, open the file, choose direct 'Save as' again, and select in the drop-down menu mp => NO conversion, just 're-wrapping', blazing fast and lossless ...

  • How to edit a converted Word Document from a PDF file

    how to edit a converted Word Document from a PDF file

    Hi Edit Converted Word Doc,
    What's happening when you try to edit the file? Have you tried triple-clicking in the text block that you want to edit?
    Please let us know what sort of trouble you're running into. It would also be helpful to know how the PDF file was created, and what version of Word you're using.
    Best,
    Sara

Maybe you are looking for