quartz

PDF Quartz Rendering quality

On the iPad, I need to render a large pdf (more than 1gb). For this I use Quartz. Now everything works fine except the quality of included pdf in my pdf. An image will explain everything. This is the pdf document: http://dl.dropbox.com/u/5809971/PDFRender/book.pdf This is the ipad rendering (simulator and device are identical): http:...

Wait for Quartz job to finish before re-running

I have a repeating quartz job that takes a variable amount of time to run. I don't want to have multiple executions of the job running simultaneously. Is there a quartz way to wait for the job to finish before starting it again, or should I just use a static variable in the job to keep track of whether or not the job is running? ...

Expiry Notification at Intervals -- How do I avoid repeated notices for the same entry?

I am implementing a J2EE application that has an expiry-style license, and I would like to send e-mail notification to different customers as the customer's license approaches expiry. I'd like to be able to do something like notify at, for example, 90/60/30 days until expiry, but obviously I don't want to accidentally send repeated noti...

quartz.net abstract base class

This link suggests to create an abstract base class that can read the job data map information for Quartz.net and each of the jobs will derive from this base class. http://quartznet.sourceforge.net/faq.html#howtochainjobs Can someone provide me a sample of this base class because I am not sure how to retrieve the job details in the bas...

Animated UIView frame change causes short flash of previous content before re rendering

I've got several UIViews that have a layer class of CATiledLayer because they need to be zoomed using UIScrollViews. I use Quartz to render some PDF pages inside said UIViews. Everything is fine until I try to animate said views frames on page rotation. The animation is fine, the contents of the view gets scaled quickly and cheaply to m...

Make an image black and white?

Hello everyone! I have another quartz 2d (iphone) question: How to change all the colors of an ImageView to black and white and leave only red ??? DD ...

How exactly to make a CGImageRef from an image on disk

I've looked around everywhere to no avail. I'm doing some image loading in a thread and since UIKit is not thread safe I'm going to have to store the images as CGImageRefs but I can't figure out how to do this. I haven't played with any of the Quartz stuff before so it's confusing me. Basically I just need to load a JPG from the disk int...

iPhone programming Quartz Slow

Hi there! I'm making a game which requires multiple images to be drawn on the screen. The code I'm using for this is: - (void)drawRect:(CGRect)rect { for (i=1;i<=totalImages;i++) { if (imageExists[i]) { [image drawAtPoint:CGPointmake(imageX[i],imageY[i])]; } } } This drawRect is called by a function: ...

Pdf full text search on iPad with Quartz 2D

Hi guys :) I am trying to implement full text search using Quartz 2D but it's a nightmare. I can "extract" text from pdf page using PDF Operator (TJ and other...) CGPDFOperatorTableRef myTable; myTable = CGPDFOperatorTableCreate(); CGPDFOperatorTableSetCallback (myTable, "BT", &op_BT); CGPDFOperatorTableSetCallback (myTable, "Td",...

Problem with using quartz 2d to draw a PDF

I have problem with quartz 2d to draw a pdf, I have it up and running fine but I am not so sure how to progress to the next page Here's the code -(void)drawInContext:(CGContextRef)context{ CGContextTranslateCTM(context, 0.0, self.bounds.size.height); CGContextScaleCTM(context, 1.0, -1.0); CGPDFPageRef page = CGPDFDocu...

Extracting thumbnail image from CGPDFPageRef

I am attempting to create thumbnail images for a CGPDFDocument. In the PDF Document Parsing section of the Quartz Programming Guide, there is the following code: CGPDFDictionaryRef d; CGPDFStreamRef stream; // represents a sequence of bytes d = CGPDFPageGetDictionary(page); // check for thumbnail data if (CGPDFDictionaryGetStream (...

iPhone Choking on Certain Image Formats

My app allows upload of an image from the camera roll. Some images are causing the app to crash when I attempt to save them to my documents directory prior to upload. I'm converting the image to a PNG prior to saving, but that hasn't helped. Here's the error... Tue Aug 31 20:39:13 localhost XXX[76409] <Error>: CGBitmapContextCreate: ...

Quartz jobs not running

Working with Java Quartz, I was able to schedule one job. Then I tried something like the following code to be able to add an other job. Now neither seems to trigger at the defined time. What am I doing wrong? I want to use approach like following, not xml configuration. scheduler = StdSchedulerFactory.getDefaultScheduler(); Jo...

Java Quartz Cron Trigger

Hi, I am using a Quartz Cron trigger in my java program. The Cron expression I used is 0 0 * * * ? Now I wanted a scheduler to execute once an hour. To test the same started my jboss server and after that I reset my windows time to something like 5:59:45 and at 6:00:00 the scheduler did not fire. Now the next time I first adjusted th...

Getting text position while parsing pdf with Quartz 2D

Hi guys, another question regarding pdf parsing... Just read PDF Reference version 1.7 "5.3.1 Text-Positioning Operators" and I am a little bit confused. I wrote some code to get transformation matrix and initial text position. CGPDFOperatorTableSetCallback (table, "MP", &op_MP);//Define marked-content point CGPDFOperatorTa...

UILabel with some effects

Hi, Can anyone help me how could I achieve an effect like this image sample image on a UILabel. As you can see there some like a stroke/bevel effect on the label. I got this image from a clock app so it means that its not a static image. Thanks in advance.. ...

Grails - Quartz

Hi, I am trying to use the Quartz plugin for Grails to schedule a job in a web app I am working on. Using the RAMstore worked fine, but I need the job to persist in our SQLServer database, which has caused problems... I have changed the jdbcStore variable in QuartzConfig.groovy to true, set def volatility = false in the job file, and...

iPhone - creating Quartz paths on vector app?

I dream of being able to use Illustrator to create my vectorial objects and export them as quartz paths. Is that possible? It needs to be as Quartz paths because I would like to be able to fill the paths with colors, gradients, etc. How do I do that? Is there a way to export (?) from illustrator or such apps and import paths on Xcode t...

How to embed links in a Quartz PDF View

I am using Quartz to display a PDF if my iPad app rather than a webview as I dont link the borders and drop shadow effects the webview adds. Can I still use embedded links in the PDFs? If so do I need to do anything special or will they just work? ...

Ipad application crashed when invoke CGContextDrawPDFPage

Hi everybody, I have a pdf document with 1000 pages and I am drawing them using CGContextDrawPDFPage function. But on page 466 application crashed. Here is my page drawing code... NSLog(@"%@",@"Before drawing pdf page."); CGContextDrawPDFPage(context, page); NSLog(@"%@",@"After drawing pdf page."); This is Console output: 20...