• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting a PICT file to PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a PICT file to PDF


  • Subject: Re: Converting a PICT file to PDF
  • From: Chris Gehlker <email@hidden>
  • Date: Thu, 11 Oct 2001 07:37:36 -0700

On 10/11/01 3:48 AM, "email@hidden"
<email@hidden> wrote:

> Hi all,
>
> I am trying to convert some PICT files to PDF for inclusion to latex
> documents using TeXShop. I first used AppleWorks to "print" and preview
> them, and it worked quite well except for the overall graphic size which
> has to be some printer paper size (A4 or whatever). As I don't know how
> to clip A4 PDF graphics, I defined a custom page size in a printer
> description PPD file and reprinted them using this custom paper. It
> worked.
>
> Unfortunatly, I have many PICT files with various sizes and I don't want
> to define a custom page size for each of them. What I tried next was to
> initialize a NSImage with a PICT file, put it in a NSImageView subclass
> instance (with a redefined drawRect:) and use NSImage's
> -dataWithPDFInsideRect: or NSPrintOperation's +PDFOperationWithView:.
> Both ways give a bitmap PDF result and I can't figure how to get a
> vector PDF.
>
> Am I doing something the wrong way ? Am I expecting too much from
> NSPICTImageRep ? Do I have to write a PICT parser ? Can I do what I want
> from AppleWorks ?

I don't know much about AppleWorks. I think a PICT transcoder is a lot
easier to write than a PICT parser since you can let QT Image
(de)compressors do all the grunt work. There is a general movie transcoder
that works for stills in the code on MacTech's site. Check out Vol 17, Issue
2, "Honey, I Shrunk the Kids". It's Carbon, Windows and Classic. If you need
a Cocoa transcoder, contact me next week. I should have one finished by
then.

Oh, If you have a QT Pro registration #, $30 from Apple, you can use the QT
player as a transcoder.
--
Adults are obsolete children.
-Dr. Seuss, humorist, illustrator, and author (1904-1991)


References: 
 >Converting a PICT file to PDF (From: email@hidden)

  • Prev by Date: Re: Questions about multithreading
  • Next by Date: NSBrowser
  • Previous by thread: Converting a PICT file to PDF
  • Next by thread: more 'new to cocoa' problems... typo fix!!!
  • Index(es):
    • Date
    • Thread