How to display.xls, pdf, .doc files in UIImageView within a UIScrollView.

Hi,
I am new to iPhone programming. I need some help.
I want to display .xls, pdf, .doc files in UIImageView within a UIScrollView programtically how can i do this. What is the procedure.
Pls. provide me a sample application.
If anyone knows pls. respond it would be of great help for me.
Thanks in Advance,
Regards,
Sreelatha.

Hi Sreelatha. The best example code for your purpose is the Scrolling sample app I referred to previously. The word Scrolling in that post is a link to the download page. I think that code will answer all your questions about how to init a UIImage, then use it to init a UIImageView, and then position the UIImageView frame in a UIScrollView. Two cases are demostrated: 1) Scrolling horizontally through a series of images; 2) Scrolling both H & V over a single image which is several times larger than the window.
You might also be interested in the PageControl sample app in case you want to add a page control to your scroll view.
Reading your last post again... I sure hope we've been discussing images (like jpegs?) in this thread. This isn't about reading and rendering the actual xls, pdf and doc files, is it?? Of course the iPhone handles html beautifully, so for example, an html representation of a doc file would play nicely. But in that case you'd want a UIWebView, not a UIImageView.

Similar Messages

  • View Doc (pdf, image, .doc) imported as BLOB files in UIImageView within a UIScrollView.

    Hi,
    I am new to IOS programming and after researching on topic i found post saying it is possible to view BLOB file in uiimageView.
    I have already done sucessfully for BLOB file of Image. but i can not view pdf file, even if i got NSData.
    /****** from SP ****/
    Insert TestBlob(tbName, tbDesc, tbBin) Select
    'Test.pdf','PDF file', BulkColumn from Openrowset( Bulk
    'C:\blob\udoc\81.pdf', Single_Blob) as tb
    /****** from my App *******/
    NSString *strImage; // String has BLOB file from DB
    NSData *imageData = [self dataFromBase64EncodedString:strImage];
    UIImage *image = [UIImage imageWithData:imageData];
    UIImageView *m_oImageViewer = [[UIImageView alloc]init];
    m_oImageViewer.image = image;
    m_oImageViewer.frame=CGRectMake((self.view.frame.size.width/2)- 250,60,500,500);
    [self.view addSubview:m_oImageViewer];
    -(NSData *)dataFromBase64EncodedString:(NSString *)string{
    if (string.length > 0)
         NSString *data64URLString = [NSString stringWithFormat:@"data:;base64,%@", string];
        NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:data64URLString]];
        return data;
    return nil;
    Please help me. i have already viewd Image but PDF comming empty. i do not want to edit or do anything only user should be able to view uploaded Doc from IPD App. and Doc can be image, pdf or .doc or excel sheet. i get BLOB file for all file types which i pass to my App.
    IS what i am doing is correct? as i imagine BLOB is common for all file Types. still i can not see pdf file(i have not tried other file formate only .png and pdf).
    Please guid me if i am missing anything.

    Hi Sreelatha. The best example code for your purpose is the Scrolling sample app I referred to previously. The word Scrolling in that post is a link to the download page. I think that code will answer all your questions about how to init a UIImage, then use it to init a UIImageView, and then position the UIImageView frame in a UIScrollView. Two cases are demostrated: 1) Scrolling horizontally through a series of images; 2) Scrolling both H & V over a single image which is several times larger than the window.
    You might also be interested in the PageControl sample app in case you want to add a page control to your scroll view.
    Reading your last post again... I sure hope we've been discussing images (like jpegs?) in this thread. This isn't about reading and rendering the actual xls, pdf and doc files, is it?? Of course the iPhone handles html beautifully, so for example, an html representation of a doc file would play nicely. But in that case you'd want a UIWebView, not a UIImageView.

  • How to attach a PDF / DOC file to quotation and refer to subsequent docmnt.

    Dear all,
    How can we attach a PDF or Word Document to Quotation Header and make it flow to Sales Order, Purchase Requisition generated from Sales order, Purchase Order, Outbound Delivery and Invoice documents.
    I can attach document at header by assigning a parameter value in User Profile (SU3). But it is not flowing down to Sales order and other documents.
    Your suggestions are most awaited and will be highly appreciated
    Thank you
    Raghu Ram

    Is there a way we can have the 'services for objects' icon show up in transactions such as VK11 and VK12. I have written to OSS and I am waiting for their response. Just trying all avenues for answer.
    Transactions VD01/VA01.... are all fine. But it is pricing master that is missing the ICON. The parameter id is set to SD_SWU_ACTIVE.

  • How to display a pdf document in an ADF Task Flow?

    I have a requirement where I need to display a pdf doc in RHS task flow, upon a linked clicked on LHS task flow. Passing the pdf doc name is what I know already. All I need to know is, how to display the pdf doc in a task flow.
    Remember, I don't want to display this as a "POP-UP".
    Appreciate help on this!
    Edited by: Yousuf Baig on Mar 9, 2013 9:01 PM

    try like this...
    <af:panelSplitter id="ps1" orientation="horizontal"
    <f:facet name="first">
    <f:facet name="second">
    <af:panelHeader
    <af:region....(have a fragment and use fileDownloadActionListener)
    </af:panelHeader>
    </f:facet>
    </af:panelSplitter>

  • How to display a pdf file in jsp

    hi,
    How to display a pdf file in jsp iam having a class which will return fileinputstream of the file object. the pdf file is in server.
    regards
    Arul

    A JSP is a combo of HTML and Java, so you can't really "display" a PDF file in a JSP.
    You can provider a href link to the PDF file in your JSP.
    You can use some utility package to read the contents of the PDF, pull certain things out of it, and display that in your JSP as html
    In a servlet you can set the content type to application/pdf and write the binary data of the PDF back to the browser. Once the browser finishes reading in the data it should open the PDF.

  • How do I export a .doc file to my online adobe account into a .pdf file?

    How do I export a .doc file to my online adobe account into a .pdf file?

    Hi tennisknight,
    The online Adobe account you are referring to, is it Acrobat.com cloud?
    You need to purchase a subscription for PDF Pack and then sign in to : https://cloud.acrobat.com/
    Select the files saved in 'Acrobat.com' and then click on the 'Create pdf' tab to convert the selected doc files to pdf.
    Alternatively you can download the .doc file from the online account and use Adobe Acrobat to convert it to pdf.
    Regards,
    Rave

  • How to convert Ms Word (.doc) file to Protected pdf

    Hi all,
    Is anybody out there could help me on how to convert Ms Word (.doc) file to protected pdf file using java? May be there are some jar file I need to download or any tools you used before? Thanks in advance... =)

    Hi all,
    Is anybody out there could help me on how to convert
    Ms Word (.doc) file to protected pdf file using java?
    May be there are some jar file I need to download or
    any tools you used before? Thanks in advance... =)Hi All,
    Thanks for your replies..I think i almost find the solution. I found 2 options to do this. They are :
    1. Get Adobe Acrobat and it's SDK (has to buy)
    2. Get OpenOffice 2.0.4 and it's SDK (opensource)
    So, i do option 2. I install them in my system.then i call them from my ide. Then i follow the code from this link..
    http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav_1.html
    Thanx.. =)

  • Cannot open .xls or .doc files

    I have office 2008 updated to the latest version operating on a mac osx 10.5.8. I cannot open xls or doc files. I get the messages "file cannot be opened" and "file blocked".
    Have tried
    - opening via right click and through the programs themselves
    - installing updates
    Any suggestions welcome.

    Hello,
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office. Please post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums
    Good luck...

  • How do I open pdf docs in Safari 5.1.5?  Online suggestions have not worked.

    How do I open pdf docs in Safari 5.1.5?  Online suggestions have not worked.

    Back up all data.
    In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combinationshift-command-G. Copy the line of text below into the box that opens, and pressreturn:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    If you still have the issue, repeat the above steps using this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How to display a pdf using outlook

    How to display a pdf using outlook

    You would normally right click on the PDF and select to open it with Acrobat. You have to have Acrobat or Reader installed on the machine.

  • How I can send pdf document  file in I pad

    How I can send pdf Document file in I Pad

    A simple and popular way to copy files and share files amoung your devices.
    https://www.dropbox.com/
    Using iTures to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- The swiss army knife of remote file connect
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    Windows File server
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8

  • How do I install PDF maker files

    Every time I try to convert a word file to PDF, I get a messarge indicating that I need to install PDF maker files. The message also tells me to run repair, which is not effective.

    Very good idea. Looks like the tech world will allow cats to be skinned in 
    more than one way. Thanks, agaiin.
    In a message dated 10/28/2014 11:27:39 A.M. Eastern Daylight Time, 
    [email protected] writes:
    how  do I install PDF maker files
    created by a C student (https://forums.adobe.com/people/aCstudent)  in 
    Creating, Editing & Exporting PDFs - View the full  discussion
    (https://forums.adobe.com/message/6875700#6875700)

  • How can I un-pdf a file?

    I made a pdf of a file which I can no longer find.
    I do have the pdg.
    How can I un-pdf the file?
    -Govan

    I made a pdf of a file which I can no longer find. I do have the pdg. How can I un-pdf the file?
    Erhm ... you made a PDF and you have a PDG? You mean you have a PDF? And you want to go from the PDF you have to the Pages document you do not have?
    If that is indeed what you want, then what you want is not possible. The source data structures of your Pages document are not part of your PDF.
    What you can do, though, is to try to extract the Unicode plain text from your PDF. Then you can place that Unicode plain text back into a new Pages document.
    For illustrations and images in your PDF you can place the pages with these illustrations and images in your Pages document, and then crop the pages to leave only the illustrations and images you want, leaving out the typographic composition.
    Best,
    Henrik

  • How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document

    How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document? (I checked with Acrobat XI pro but no use

    You cannot in Adobe Reader. You can try in Acrobat, but first you must try to run OCR (Text Recognition). I have never tried OCR on a script font.

  • How to display a pdf file

    hello,
    I want to display a pdf document, but I don't find anything which could really help me...
    I want to parse the pdf file into a jpanel or something like that and then displaying that jpanel.
    has anyone please any idea how I could do that? how do I get the pdf file into the jpanel? examples would be very great...
    bye

    You can visit http://itextdocs.lowagie.com/
    perhaps this web can help you to display pdf file..
    and..I find an example for this...
    see the linked:http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/HelloSystemOut.java
    but I don't know if it is really what that you wanna get...
    best regards.

Maybe you are looking for

  • How to Create a PO

    Hi experts, What are the Minimum input fields need to be entered when 1. Creating a PO with Account Assignment category(at Item level) = SPACE. 2. Creating a PO with Account Assignment category(at Item level) = 'M'. 3. Creating a PO with Account Assi

  • ITunes stops working when it's not the active window and connected to the internet

    Hi, I have a problem with iTunes where it crashes, only when the wifi is on and connected to a network. Usually it occurs when I click onto another application outside of iTunes. I've tried reinstalling both iTunes and the Apple Application Support b

  • IOS 4 - no longer able to merge calls on a 3G

    Since the upgrade to IOS 4, my iPhone 3G refuses to merge calls. When I push on 'merge' it simply switches from on line to the other...

  • How "Assigned" value calculated for WBS in CJ30?

    Dear all, I have got a problem with the Assigned value in CJ30. The problem is that the value in column "Assigned" of CJ30 disappeared after I settled the cost of the WBS to another WBS which has no budget control activated (no budget profile assigne

  • Just bought FCP, there is no option import imovie project...help!

    This is my first contribution to these discussions. I just bought FCP. In my trial version there was an option under file>import>import imovie project But in the bought version there is no such thing. How is this possible? Can anybody help me, becaus