PDF zooming & quality

I have a problem, I'm not a programmer but I try to do some app for fun.
I try to create a pdf viewer, I create a UIView class like this:
[CODE]   - (id)initWithFrame:(CGRect)frame {
        self = [super initWithFrame:(CGRect)frame];
        if (self) {
            self.backgroundColor = [UIColor clearColor];
            NSString *pathToPdfDoc = [[NSBundle mainBundle] pathForResource:@"myPDF" ofType:@"pdf"];
            NSURL *pdfUrl = [NSURL fileURLWithPath:pathToPdfDoc];
            document = CGPDFDocumentCreateWithURL((CFURLRef)pdfUrl);
            currentPage = 1;
        return self;
    -(void)drawRect:(CGRect)inRect{                
        if(document) {
            CGPDFPageRef page = CGPDFDocumentGetPage(document, currentPage);
            CGContextRef ctx = UIGraphicsGetCurrentContext();
            CGContextSaveGState(ctx);
            CGContextTranslateCTM(ctx, 0.0, [self bounds].size.height);
            CGContextScaleCTM(ctx, 1.0, -1.0);
            CGContextConcatCTM(ctx, CGPDFPageGetDrawingTransform(page, kCGPDFCropBox, [self bounds], 0, true));
            CGContextDrawPDFPage(ctx, page);   
            CGContextRestoreGState(ctx);
    -(void)increasePageNumber {
        size_t pageCount = CGPDFDocumentGetNumberOfPages(document);
        if (currentPage == pageCount) {
            // do nothing
        else {
            currentPage++;
            [self setNeedsDisplay];
    -(void)decreasePageNumber {
        if (currentPage == 1) {
            // do nothing
        else {
            currentPage--;
            [self setNeedsDisplay];
[/CODE]
now I try to add zoom but without luck, fro zoom I create a layer:
[CODE]
    -(void)viewDidLoad {
        CGRect frame;
        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
            frame = CGRectMake(0, 0, 960, 1024);
        else{
            frame = CGRectMake(0, 0, 320, 460);
        tiledLayer = [CATiledLayer layer];
        tiledLayer.delegate = self;
        tiledLayer.tileSize = CGSizeMake(1024, 1024);
        tiledLayer.levelsOfDetail = 200;
        tiledLayer.levelsOfDetailBias = 200;
        tiledLayer.frame = frame;
        myPDFView = [[viewPDF alloc] initWithFrame:frame];  
        //[self.view addSubview:myPDFView]; 
        [myPDFView.layer addSublayer:tiledLayer];
        CGRect viewFrame = self.view.frame;
        viewFrame.origin = CGPointZero;
        scrollView = [[UIScrollView alloc] initWithFrame:viewFrame];
        scrollView.delegate = self;
        scrollView.contentSize = frame.size;
        scrollView.maximumZoomScale = 5;
        [scrollView addSubview:myPDFView];
        [self.view addSubview:scrollView];
    - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
        return myPDFView;
    }[/CODE]
but when I zooming i lost quality...how can I adjust it?

Open the PDF file in Preview, located in the Applications folder.  Drag the thumbnail onto the Keynote slide. If thumbnails are not showing, click the side panel options button directly underneath the red close button top right in Preview.

Similar Messages

  • PDF zoom article x resolution quality

    Hi,
    I have tried the new resource to apply zoom in articles with overlays, but my texts (with scrollable) are coming worst when I zoom in the page.
    Is there any way to better the quality resolution to vector objetcs using PDF zoom features.
    Regards

    That is expected behavior. All content in the overlays gets rasterized.
    This is still a major improvement, IMO, and we'll all have to be patient as Adobe continues to work to improve these tools and the output.
    Bob

  • Lower PDf graphics quality after upgrade from v8 to v9

    Some PDF Graphic quality is poorer whne using the new Acrobat compared to version 8.
    I recently purchased Acrobat 9 Pro extended as part of the TCS2 and installe dhtis on a new machine. The installation replaces Acrobat 8 professional installed on a different machine.
    I have checked the job options in detail on each machine and they appear to be identical.
    The problem is most notable in a graphic header which appears on the first page of the Word document template from which the PDF is generated. The file is an imported PNG with a complex blue gradient band and the company logo across the top of the page. The band is underlined by a thinner grey band which fades vertically to white. In the resulting output, blue colors show too bright and quite different to the original PNG graphic. The grey band does not fade smoothly and appears as separate bands.
    My colleague has installed Acrobat 9 on the same machine as the previous Acrobat 8 installation and is experiencing the same issue.
    I have tried generating a PDf with an old known good file base don the same word template and the result  is the same so this probably rules out the Word template. Older PDFs generated with the v8 Acrobat do not do not display this way and i still can generate PDFs using the old machine and version 8 Acrobat without any problems.
    Can anyone suggest how i might progress with this?

    There are no display problems because i can satisfactorily generate the file using the Print option and selecting the AdobePDf printer.
    I have set the Color Management Policies of the joboption to Convert all Colors to CMYK from Leave Color Unchnaged and this seems to improve the quality considerably so i'll stick with that. Some gray color gradient doesnt seem to convert smoothly and shows as varying bands of shades of gray but i can live with that, unless i can find a setitng that handles that.

  • PDF Preview quality is horrible for iPhoto book!

    I created an 82 page iphoto book with several photos and some text and when I preview the order in PDF the quality is distored in various ways every time I try it! I even did a software update and reconfigured iphoto! And the problem then is that this PDF quality is what is meant to be your final product once it is ordered!

    Boot into Safe Mode and try again.
    Regards
    TD

  • INDESIGN PDF TEXT QUALITY

    I have been using Indesign for quite a while but I have noticed recently that when I export an Indesign document to a PDF the quality of Just the Text is really poor. I have been messing around with the Transparency Blend Space, but have made sure that the blend space of the document is RGB and that the text is black RGB, this doesn't seem to help at all. This has never happened before. Can anybody help? My email address is [email protected]

    Can I just say, it's always been my understanding that the PDF standards and presets have always been there as a guide only. You should check all the settings to see if they conform to your printers. And you should try to get joboptions from your printers to create pdfs that work with their hardware/software etc.
    The text showing up poor in the PDF, could be Transparency problems, but unlikely if it's still highlightable. It could be down to a damaged font, or fonts not embedding correctly or something.
    There are other ways to create a PDF.
    File>Export>PDF
    File>Print> Choose Adobe PDF from drop down menu.
    Print to postscript and distill the postscript file.
    These are all ways to create pdfs and if you're having problems with one method you should try another to see if it's the same issue.
    This is a way to narrow down problems.

  • Loss in pdf output quality

    Hello
    I have just 'upgraded' my computer.  I used to work on XP, now I'm on W7.
    When I create a pdf the quality of eps and png files is greatly reduced in quality.
    This applies if I use Adobe pdf or cute pdf.
    I have attached a file:

    Error7103 wrote:
    Vector EPS or raster EPS?
    Rendering directly to PDF, or to PS then Distilling?
    What settings for PS/PDF printing? (esp resolution & down-sampling)?
    What settings for Distilling?
    Doing any Acrobat post-processing? (optimizing?)
    ps - I don't see any difference. Did you post both?
    Error7103, you are a true God of this forum.
    Distilling it did the trick.
    Funny how I didn't figure this out on my own, but that's the problem with being a one man department I suppose.

  • Safari 7 PDF Zoom Level

    Since upgrading to Mavericks Safari no longer remembers my previous PDF zoom level.  I am using Safari's build in PDF viewer, not Acrobat.  Prior to Mavericks Safari would remember my last zoom level (I prefer Actual Size).  Now PDF's always open in Automatically Resize mode and fill the width of the screen.  I open a lot of PDF's in the browser and it is rather annoying to have to manually change the zoom level every time.  Anyone else having this issue or know how to fix this?  Thanks!

    Moreover, automatically resize fits page to the width of window. This is the most stupid thing ever, considering my display is 1920*1080. It feels like every single letter is the same size as my eyeball.

  • Settings for pdf-output-quality of WebApplication Designer Diagrams

    Dear All!
    Is it possible to set-up the quality of pdf-output-quality of WebApplication-Designer Diagrams. If we are using 10pt Chars the pdf-Output no longer readable.
    thank you for your comments..

    Carsten,
    I looks like you posted in the wrong Forum.
    Greetings,
    Ed Wenmakers.

  • PDF Zooming issue

    Despite the fact that I have created all articles in PDF,
    that I have checked the box "PDF zooming" in the Viewer Builder
    In the Developer Preview.ipa (loaded on my iPad), zooming works only on a few pages out of 85.
    Where is the problem ?
    Thank you

    Ok now.
    I think, I found the culprit.
    After minimizing my test case to 1 article and an InDesign file with no contents, just a blank page, I found one difference between my problem file and my new files that work without problems (= zooming is enabled):
    My problem file was created in InDesign CS5 v7.04 and then worked on in 7.5.5 v7.5.3.
    After exporting to IDML from InDesign CS5.5, reopened and saved again as InDesign CS5.5 file the problem was gone.
    Zooming was no problem any more!
    Uwe

  • Interactive pdf, pour quality

    Hello!
    I'm making an interactive pdf with a little movie in it.
    When I export to interactive pdf the quality of de movie is terrible.
    I've tried swf and mp4 files. The export settings are put on no compression, 300dpi.
    When I preview the imported file in a browser, it lookes perfect, but when I export to pdf it lookes terrible.
    I'm using CS6, Acrobat 10.1.8
    I hope somebody can help.
    Many thanks,
    Chutney

    I edit my raw HD video file in Windows Movie maker and save it as H.264.MP4. Then I run it through Adobe Media Encoder to a .f4V file.
    I place just a tiny frame to hold the video in the top left of the page (anything too big and it will look terrible if used on an iPad as there's very little to see interactive pdfs on ipads to this date).
    Open Media window and select no poster, controller tick to show SkinOverAll and at the bottom right corner click the middle options for exporting interactive pdfs and tick play in floating windw, Max and centre will be greyed out.
    This will be your best option. the video will play when the user clicks the page, in its own floating window. the user can enlarge the floating window. In fact they will have to enlarge it because I do not believe Adobe has programmed this function adequately. It should come up in MAX size to fit within your page boundary.
    I feel your pain. I've just started a thread on a similar issue regarding interactive floating windows.
    Best of luck with your work! I hope this helps you out today for your deadline. Its a pity someone from Adobe can not provide proper assistance to you.

  • Print to PDF- Improve Quality

    Is there a way to improve the quality of the standard print to PDF function? I wanted to save a web page as a PDF, and noticed that with a certain website when I print to PDF there is some streaking in the font. The file size is also very small, only 200k for a 2 page PDF. I do have Adobe Acrobat, but prefer to avoid it if I can.
    Thanks,
    Alexander

    Can you provide an example of "streaking in the font"?

  • HP LaserJet 1018 .pdf print quality

    When I print a .pdf, the print quality is very poor with a faint print density and imprecise edges.
    I am running Windows 7 32-bit.
    Anyone else have this issue?
    Other print requests (.docx, .xlsx, etc.) are better, but not up to the same standard as when I ran XP.

    Hello dpop75, and welcome to the HP Forums.
    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at the LaserJet Commercial Forums.
    I hope this helps!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Problem with PDF output quality

    We recently upgraded to CS4 Suite Design premium and i am having problems getting illustrator to print high quality output.  I have a file created in illustrator which contains 300dpi tiff images created in photoshop (CMYK colorspace in both photoshop image and illustrator file)  when i print this file to pdf everything looks hi-rez except these images.  i have attempted adjusting all the obvious settings in the print dialoge box including:  Output/Printer Resolution, Graphics/Postscript level, Advanced/overprint and transparency flattener options/custom settings.  and nothing has worked.  Other things i have noted, is that in the print dialog box the only presets listed are Custom, Default and Default Web/Video/Mobile.  I have looked through the online help files and found the info on how to add "High Quality Print" to my adobe pdf presets, however it doesn't work.  furthermore i have tried the instructions here: http://help.adobe.com/en_US/Illustrator/14.0/WSA79FA899-BC95-401e-BD44-5B26BC31B369.html  where it says to move the files from "Documents and Settings\All Users\Application Data\Adobe\Adobe PDF\Application Support\Adobe PDF"  however there is no folder called "Application Support" on my system.  I have run out of ideas.
    The odd thing here, is that i can take the AI file into photoshop, and print a "High Quality Print" from photoshop with no problems, but i'd like to remove this step to speed up my workflow.
    I've attached both the high-quality pdf output from photoshop and the low-quality pdf output from illustrator for reference. (look closely at the logo's)

    Figured it out myself! yay!  (only took my entire moring)
    The solution:
    Dont print to PDF!
    SAVE AS COPY, then select Adobe PDF and click SAVE, this will bring up a dialog box with the options you need (including the "High Quality Print" Adobe PDF Preset)
    This was not clear in any of the instructions i read

  • Can you set PDF zoom level when exporting from ID?

    I do many documents for proof and regardless of how the end user is going to view them, I like them to open as a full page ("Fit Page" zoom level) - I want the viewer to get the overall impact of the layout before they see just the top half or upper corner.
    Right now, I export from ID and have to manually set the zoom level  in Properties from within Acrobat Pro. Is there ANY way to set a default export zoom level to save this step, which I have to do many times on most days?

    Only if you export using File > Export > Adobe PDF  (Interactive). Not if you're using File > Export > Adobe PDF (Print),

  • Print PDF Pages quality not high enough

    I'm pretty happy with using Aperture to design relatively simple photo books. Its great to stay in one tool. But I'm not happy with how it exports JPGs from the book I designed. Don't think its a problem with my automator workflow file either.  I'm using a custom 10x10" theme and sending JPG's to Black River Imaging for book publishing, I'm not using Apple's books, so I have to get my designed book into JPGs, somewhow.  So I modified the print pdf to jpg folder automator script to bump to 300 dpi, RGB, using the sRGB color space and a "best" quality.  The pixel counts are coming out correct, ditto for color space, but the file size is too small and the sharpness just isn't there in the files.
    I did an experiment where I exported the individual JPG images for a book page and brought them into Photoshop. Resized the images based on where they went into the page layout and re-implemented the page layout in Photoshop, saving as JPG-12 optimized. Results?
    Aperture - 733 KB for a 10x10 300 dpi page
    Photosho - 2.1MB, and yes, viewed at 100% obvious differences to detail.
    Its a bummer. Making the photo books within Aperture is much, much easier. But I'm not happy with the "print PDF to JPG pages" flow.
    Do I have any way of fixing this?

    Screen capture of my Automator script.  Notice I'm asking for 300 dpi.  I'm getting 72.  However, instead of 10" as I expect, I get 42.3", and this still equals the correct 3,000 pixels per side, so that is good.  But why?  And if that is messing up can I be sure I can trust the compression setting?
    Image file at http://mercphoto.exposuremanager.com/scripts/expman.pl?rm=view_photo&photo_id=jp g-automator_13_2&dir=galleries/13/2&file=jpg-automator_full.jpg

Maybe you are looking for

  • PR - Multiple Line Item

    Hi Experts, I am new to Ecatt.            I am creating the Test Script for a PR (ME51N) creation. I was sucessfully done for the single line item, but i was strucked when there is more line items. Experts, i need your guidance for proceeding. I reco

  • Oracle Development Survey on Data Warehouses: How Does Yours Compare?

    At the start of most data warehouse projects, or even during a project, I am sure you as customers try to find answers to the following questions to help you plan and manage your environments: * Where can I find trend and comparison information to he

  • Weblogic Integration 2.1  problem

    <b>I have installed Oracle 9.X then installed Weblogic 6.1 and then installed Weblogic Integration 2.1 after instalation i have started Weblogic server by clicking wlintegration2.1/config/bpmDomain/startWeblogic.cmd Then i am getting this problem</b>

  • Photoshop Premire Elements crashing - application hang How do I fix this?

    Greetings, I have been having problems with my PSE 11 crashing when I try to open an image. I have tried several images even ones that I've worked on in the past. I've looked in the MS Event Viewer and it says: "Application hang". So, any thoughts on

  • Deploy standalone OC4J problem

    I'm pretty new Jdeveloper So Please help me. I'm very strange about my deploy. I downloaded OC4J in c:/Oc4J, and I did ADF Runtime Installer for Standalone OC4J. I can deploy my local host sucessfully. So now I tyied to deploy to our compuany server.