Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Removing margins from RTF text in UIWebView

Posted on 2012-09-11
8
Medium Priority
?
2,242 Views
Last Modified: 2016-02-10
Hello, Experts:

I'm loading an RTF file into a UIWebView. The RTF file loads up inside the UIWebView but it contains margins and I want to remove the margins and fit the text snugly within the view. I've set the margins in the RTF file to 0,0,0,0 and yet they still show up in the UIWebView. Can anyone tell me how to get these margins removed?

Thank you for your help.
0
Comment
Question by:pdlarue
  • 4
  • 4
8 Comments
 
LVL 15

Expert Comment

by:Hamidreza Vakilian
ID: 38389971
Can you provide your project source including the rtf?
0
 

Author Comment

by:pdlarue
ID: 38392532
Hi, Programmer-x:

I sent it to your email.

Thank you.
0
 
LVL 15

Expert Comment

by:Hamidreza Vakilian
ID: 38393205
Would you mind sending it to:
Xerxes235@yahoo.com
0
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 

Author Comment

by:pdlarue
ID: 38395690
Hi, Programmer-x:

I sent it to your yahoo address as requested.  After considerable reading and changing my frame of reference, I decided to try an html file instead.  That was sooooooo easy.  I wonder why the more obvious file type selection for new file is .rtf, which caused me to spend way too much time looking in the wrong direction.

For those poor souls who find themselves in the same place I was, here is what I discovered:

Creating Help Files

Converting RTF files to HTML in TextEdit

I'm keeping this question open in case you know of a way to remove the margins from an rtf file.

Thanks again.
0
 
LVL 15

Accepted Solution

by:
Hamidreza Vakilian earned 2000 total points
ID: 38398393
Use this rtf file instead:
http://5.9.197.49/HelpFile.rtf

If you open your old rtf file with binary text editor you see it has a code like: \margl1440 this refers to left margin you have to set that to \margl0 so no margin for left side of the document. also set margr margt margb to zero for right, top and bottom margin.
0
 

Author Comment

by:pdlarue
ID: 38399046
I feel like being generous!  You're great!!!

:-)
0
 

Author Closing Comment

by:pdlarue
ID: 38399050
He's good
0
 
LVL 15

Expert Comment

by:Hamidreza Vakilian
ID: 38400220
You're welcome.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

     Intro      In this article, I will show you how to parse a JSON in Swift using an open source library called SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON). If you haven't heard of a JSON before, it stands for JavaScript Object Notation…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question