Converting a PICT file to PDF
Converting a PICT file to PDF
- Subject: Converting a PICT file to PDF
- From: email@hidden
- Date: Thu, 11 Oct 2001 12:48:01 +0200
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 ?
Thanks for any kind of help,
Nicolas Normand.