Low quality pdf generated

i want to create pdf from uiview but the quality of generated pdf is poor.How can i create high quality pdf.

Here is my code to create pdf of UIView.
- (IBAction)drawPdf:(id)sender {
    // Creates a mutable data object for updating with binary data, like a byte array
    NSMutableData *pdfData = [NSMutableData data];
    // Points the pdf converter to the mutable data object and to the UIView to be converted
    UIGraphicsBeginPDFContextToData(pdfData, self.view.bounds, nil);
    UIGraphicsBeginPDFPage();
    CGContextRef pdfContext = UIGraphicsGetCurrentContext();
    // draws rect to the view and thus this is captured by UIGraphicsBeginPDFContextToData
    [self.view.layer renderInContext:pdfContext];
    // remove PDF rendering context
    UIGraphicsEndPDFContext();
    // Retrieves the document directories from the iOS device
    NSArray* documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);
    NSString* documentDirectory = [documentDirectories objectAtIndex:0];
    NSString* documentDirectoryFilename = [documentDirectory stringByAppendingPathComponent:[NSString stringWithString:@"createdPDF.pdf"]];
    // instructs the mutable data object to write its context to a file on disk
    [pdfData writeToFile:documentDirectoryFilename atomically:YES];
    NSLog(@"documentDirectoryFileName: %@",documentDirectoryFilename);
    UIImage *currImage = [self imageByRenderingView];
    NSData *data=UIImagePNGRepresentation(currImage);
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"pngFile.png"];
    BOOL save=[data writeToFile:filePath atomically:YES];
    NSLog(@"BOOL = %@", (save ? @"YES" : @"NO"));
//    NSLog(@"path :%@",filePath);

Similar Messages

  • Built-in PDF viewer could better render low quality PDF using the recognized text

    I've been a little frustrated with this. When I view a low quality PDF on a university website, zooming in/out on firefox (v34.0 and v35.0.1 on linux is what I've tried) proves that the quality could be drastically improved. The original fonts looks like the pdf-lowqual.png file below: (unable to upload images on here)
    http://i59.tinypic.com/169kkcw.png
    While zooming in or out, the font displays as normal "hypertext" or whathave you before going back to looking ugly again, as seen here:
    http://i61.tinypic.com/2gvptw0.png
    Is there a way to permanently display the recognized text with local or internet fonts? I assume the text is recognized as that is what allows one to select text.

    [[Use the Adobe Reader plugin to view or download PDF files]] or [[View PDF files in Firefox without downloading them]] are the current offerings for viewing pdfs in Firefox.
    However, there are alternatives like embedding fonts into the pdf. I do also know that there are web safe fonts with similar function: [http://en.wikipedia.org/wiki/Web_typography#Web-safe_fonts]

  • Keynote exports to low quality PDF file

    I exported my presentation to PDF file which looked perfect on my laptop screen. But when the presentation was projected on a large conference screen it looked awful - not contast and not well-readable. Does anybody know how to increase the quality of the PDF file?
    I use Keynote 3 and I am a new user.
    PowerBook G4   Mac OS X (10.4.6)  

    The default setting for resolution is low. You should be able to change the resolution of the presentation in the first tab of the inspector. Try bumping up the resolution and then exporting as a pdf.

  • Low quality pdf

    when I convert indesign file to pdf , the quility is very poor , I did pdf preset to high quility and still ,also when I print and view from indesing file the quality look bad too , but for some reason the user claim even the quality look bad in indesign , in the past she has converted it to pdf and it look betters , just wanted to veryfy is this is true or not , please help ...  

    the file is a v8.indd fie and the picture in indesing are blury you can hardly see it , so when converting to pdf it looks the same

  • How to generate high quality PDFs?

    Hello everyone,
    Before I am told to use Google or search this forum for answers to my question, let me say that I have already done that. Unfortunately, I haven't found a solution.
    My problem: Microsoft Word produces low quality PDFs rendering my work useless. The PDF fonts look nothing like those in Word, nor does the spacing. The same problem appears when I try to archive a word file, which is shown perfectly in the Preview box, as a PDF file. This makes me think that the PDF generator engine in OS X has a problem.(?)
    The only solution I have found: InDesign - the abundance of quality choices allows for a high quality PDF generation.
    Now, is there really no other way to generate high quality PDFs from Microsoft Word or the Preview? Do I have to recreate all my files in InDesign to ensure a high quality PDF output?
    I thank you for your time and answers beforehand!

    CarmeloX,
    you can use Photoshop 7 and PageMaker 7 (with two updates). Really no problem
    in Windows XP. Probably a problem in newer operating systems.
    Photoshop 7 is equipped with a very reasonable Color Management System.
    For PageMaker you'll need a Postscript driver and Distiller. Please ask here:
    http://forums.adobe.com/community/pagemaker_general
    This combination works perfectly, unless you want to handle so called  live transparency.
    Standard on/off transparency (PostScript) is fully supported.
    Then it's possible to create perfect PDFs for inkjets, wide format inkjets, toner printers
    and offset printing (PDF/X-1a for instance).
    Almost all docs here were made with Photoshop CS2 (or older versions), PageMaker 7,
    MathType and the PostScript editor PSAlter for technical illustrations:
    http://docs-hoffmann.de/howww41a.html
    Only recently I had converted everything into InDesign CS2 and newly converted to PDF.
    I've installed as well CS6 (Photoshop, InDesign, Illustrator), but mostly I'm using CS2.
    By the way - here you are not directly talking to Adobe ...
    Good luck and best regards --Gernot Hoffmann

  • The pdf font quality changes if another pdf file is open, for pdfs generated by Latex Beamer

    Hi There,
    I create pdf presentation files using Latex Beamer. I see a strange behavior when I open the file with Adobe reader to read it. If another pdf file is already open, the quality of the font is good but the shadow of the boxes disappears. If no other pdf file is open, the shadow box is good but the font has a low quality.
    Does anyone know about this problem?
    Thanks
    Kaveh

    Kaveh,
    I am having a similar issue with PDFs i create from Photoshop and added links in Acrobat.  The quality of the text was changing on me and I hadnt realized it was when I had more than one PDF open.
    Please let em know if you come to any resolution on this.
    Thanks,
    Jamie

  • All my pdf files can be printed in low quality on my Brother printer but can't print in high quality in the printer menu.

    My problem is that all my pdf files can be printed when I choose "low quality printing" in my Brother printer menu but cannot be printed in "high quality". When trying to print in high quality, the documents load in the printer tray and it says 1 document then disappears and 0 document printing is showing. I have some pdf files that I want to print in color in high quality and black and white but I'm unable to do so. It only prints in low quality for both color and black and white.

    Hello,
    1. Please make sure that your Reader is updated to 11.0.09. Go to Help -> Check for Updates.
    2. Also, please check if there is any new update available for your Printer Driver.
    Regards,
    Anoop

  • PowerPoint 2007 Notes Pages to PDF = low quality

    We're battling a problem here where, when printing a presentation's notes pages from PowerPoint 2007 to PDF, the result has very jagged, low quality font edges. However when printing the same presentation from PowerPoint 2003, the fonts are smooth and perfect. The same result occurs making a PDF with PDF Creator, Nuance PDF Professional 5, etc. BUT, when we print the presentation's notes pages directly to the printer (a Xerox 6060 in this case), the presentation looks perfect as well.
    Because of this, I can't tell where to start looking for help, here or Microsoft. I want to think that PowerPoint 2007 is outputting garbage to the PDF Maker, but like I said, when I print the notes pages directly to the printer, it looks fine.
    Is there anyone experienced out there that can help shed some light on this issue please?

    I assume that 2007 and 2003 of PPT were on different machines. I suspect it is either in the setup of PPT or you are not embedding fonts in the PDF. Be sure you are NOT using the Standard settings file, but select Print or Press.

  • Print PDF - really low quality?

    Is there a way to adjust the quality settings of the PDFs that are output by selecting from the PDF menu on the print screen?
    Whenever I do that the PDFs come out really really low quality. I would like them to be as close to the originals as possible, just in PDF form.

    Hi rbi,
    Thanks for the response.
    I've done it from a bunch of different applications. Today I tried it from MS Word 08 and MS Excel 08. I'm using the PDF -> "Save as PDF..." option from the print dialogue box. I also have the Acrobat PDF printer and that looks fine but it takes MUCH longer to print (it usually sticks on "Starting Distiller job" for a long time).
    Thanks,
    Ben

  • PDF Files Appear Low Quality

    I often use Adobe Reader on my Android tablet to read ebooks I have saved as PDFs. I've noticed that often after reading the first few pages the pagws start appearing as what looks like a low quality JPG. This only appears on Reader for Android, and changes back to high quality if I zoom in the page, that would suggest to me that it is caching the pages in a less than desirable way.
    It would be great if this is changed as the compression artifacts are quite annoying, particularly on the larger screens found on tablets. If it helps at all I'm on Android 4 ICS.

    A very good example I've found is the "How to use Adobe Reader' PDF included with the latest version, which appears particularly low quality, especially if I click a web link on it then switch back to reader.
    It happens on all PDF's, with minor compression artifacts appearing around the text and the white background changing to a slightly yellowish tint. If you believe it would help then I'm very happy to send one of the documents I have, but as I've said the problem is with all documents.
    My tablet is a HP Touchpad that I've installed Android on.

  • Poor quality PDF output

    Hi,
    I have noticed that the PDF output when using Rome on Windows is quite poor and is far inferior to an outputted PDF from a Mac.
    When you use a drop shadow on a piece of text it is displayed in low quality (even if the high quality option is selected on the filter).  This is not the case if you generate an interactive PDF on a PC where the text is smooth and crisp with a beautiful drop shadow.

    Hi Mike,
    What version of CRJava runtimes are you using?
    We have recently released a new version of the ruintimes, try upgrading to 12.0.18. download here.
    http://scn.sap.com/docs/DOC-29757
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place

  • Is it possible to create a script to produce a high res and low res pdf and jpeg from Indesign at the same time

    Hi, I'm just wondering if there is a way to automate a long process I have to do to create assets for my job.
    I have a single page InDesign 6 file which I have to output three ways:
    A low res pdf without bleed or trims
    A high res pdf with bleed and trims
    A low res jpeg downsized to 2% of original size.
    If anyone knows if this is possible I'd love to hear from you.
    Thanks in advance

    Automation requires creating your own IDML script for output. Scroll down on this page to the section on Scripting resources. The text is a bit confusing. It says InDesign CS5 Scripting resources, but then the paragraph for that section says the PDF files are for CS6. I haven't read through these, I just found them by searching for "indesign automation". It does say in part that is can be used for preparing files for printing, so once you figure it out, it should be a single click option to do all three steps.
    You can do them now with the menus you have, assuming you also have Acrobat Pro installed. With any document open, choose File > Adobe PDF Presets, and choose either from the prebuilt defaults, or create your own in the Distiller. However, I don't see a way in the Distiller settings to choose whether or not to include bleed and marks, so I'm not really sure how you'd have them on for one and not the other. As far as JPEG output, that can be chosen under Export. You get a choice to set a resolution and JPEG quality level, but not a size, so the output will be the dimensions of the document.

  • Low quality graphics from screenshots

    I did some full screen screen shots to use in Keynote (using apple + shift 3). These are pict files which look perfectly fine when I open them in preview. I then dragged and dropped them into Keynote, and both in preview mode and when I play the show, the graphics appear fuzzy and low quality - as if they are JPEGs converted to the lowest quality setting.
    Any fix for this? Other than that KN works great and its easy to use. But these graphics are really bad.
    [ Imac G5/ 20 in / 2 g ram : monitor at 1680x1050]

    Why are they saved as picts? I save mine as PNG and they look fine in Keynote. You could also use TIFF or PDF and those should look pretty good too. I think the problem is that other images scale much better than pict does.
    If you want to try changing the format, instructions are here.
    http://textsnippets.com/posts/show/131
    Two tips, if you JUST need to capture a window (so that you can show JUST the area in the window of the tool you're working on) use appleshift4 to turn the cursor into a cross hair then mark off the area you want captured. Also, appleshift4 and THEN pressing space will turn the cursor into a camera so that you can capture the full window without worrying about missing any edges.

  • Low quality warning

    I have a calendar made in iphoto 9.  When trying to save to PDF or previewing a low quality warning, which I can only partially read, appears and the rest of page is blank.  I have checked the photos on the page and replaced them.  I don't understand why this is happening.  I have saved this same calendar before as a PDF with no problems.  I recently made a few changes, but not on the page that the warning is appearing on.  There is a red alert icon on one of the calendar pages and oddly it has moved.  It was on one month and now it's on another month.  I don't want to redo the entire calendar.  Please help.  Thanks.

    Have you previewed this way -
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    what is the physical size and what are the pixel dimensions of the photo with the low quality warning?
    LN

  • Low-quality copy (to the clipboard) in Keynote and Pages

    Hello,
    I am running Keynote 6.5 under OS 10.10 on MacBook Air. Just after updating to Yosemite I have noticed that if I copy (command-c) something from Keynote (say, some text, or a graphic) and try to paste it outside (in Preview, or in Word) I get a low-quality image (bitmap rather than vector). It was not like this before. Also, I have verified that this problem is limited to Keynote and Pages; i.e., copying something out of (e.g.) Powerpoint works perfectly (vector image).
    Anyone can help?

    I can confirm this is also a problem with Numbers. Anything copied out of the iWork apps appear to lose the ability to be pasted as a .PDF, even in applications that can accept the higher quality .PDF format. (In looking into it, there's additional weirdness I'm seeing related to iWork and the clipboard, but that's for elsewhere).
    At this time, the only possible thing you can do to get high quality output from Keynote is to Export as a PDF, then open that and crop it.
    Just to help a bit more, when you check Preview for how to crop a PDF, the help is incorrect. The command you're looking for is not
    Choose View > Show Edit Toolbar,
    it's
    Choose View > Show Markup Toolbar
    However, I haven't tried to see if you can get PDF's without backgrounds... checking now
    I've also confirmed that Keynote '09 can still produce .PDF's from copied content. And, I am using a MacBook Pro.

Maybe you are looking for

  • How oracle decide whetehr to use index or full scan (statistics)

    Hi Guys, Let say i have a index on a column. The table and index statistics has been gathered. (without histograms). Let say i perform a select * from table where a=5; Oracle will perform a full scan. But from which statistics it will be able to know

  • Can I print a PDF form that has fields that have been overfilled?

    The form is set up as an evaluation and the field has been filled out past the viewable area so it turns into a scrollable field. I'd like to print so all of the text prints from each form field.

  • Help with queries in a JSP to MS Access DB

    I'm trying to use a JSP to query an MS Access database: If I create the following query in MS Access it works no problem: SELECT * FROM EMPLOYEE_VACATION WHERE Department="Laboratory"; If I try to duplicate the query in my JSP as shown below: ResultS

  • Panasonic Viera

    We have a Panasonic Viera 42" bought in December 2010. This morning when it was turned off, it was fine. Tonight when my husband went to turn it on, there is no sound on any of the stations. It is not on mute, we have turned it off and on several tim

  • Spatial Index Fragmentation

    Hello, We are facing a problem with spatial query performance on 10.2.0.5. Apologies for limited information, I am still gathering information, but thought of asking this upfront. What we have noticed is that queries involving SDO_ANYINTERACT runs sl