Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: Reference to external jpg (Via Email), 1 Attachments
Conf: (P-PDF) Developers, Msg: 109911
From: cow133
Date: 4/19/2004 05:37 AM

I'm sorry, I know this has been covered before, but I didn't understand the answer. Let me explain what I'm trying to do:

I have an intranet built on "WebSpeed" (from www.progress.com), and I want to generate invoices in pdf format, which must include the company logo and quality certificates. I can't figure out how to read binary images into WebSpeed and then put them into streams (possibly it can't be done at all), so I'm trying to use a file specification inside an XObject (this example attempts to load from the local filesystem, it's just a snippet for proof of concept):

6 0 obj
< /Subtype /Image
/Width 302
/Height 197
/ColorSpace /DeviceRGB
/BitsPerComponent 8
/F (jhlogo.jpg)
/FFilter /DCTDecode
/Length 0>>
stream
endstream
endobj

I understand that jpgs can easily be read throught the DCTDecode filter. The Xobject needs to be named in a resource dictionary:

/Resources << /Font
<< /F1 4 0 R >>
/XObject
<< /jhLogo 6 0 R >>
/ProcSet 3 0 R >>

And then scaled in a content stream:

q
302 0 0 197 0 0 cm
/jhLogo Do
Q

However I do all that, and like a previous respondent I just cannot get anything to show up at all. Can anyone help my?

Complete listing below (note line termination is line feed alone):

%PDF-1.3
%
1 0 obj
<<
/Type /Catalog
/Pages 9 0 R
/Outlines 2 0 R
>>
endobj

2 0 obj
<<
/Type /Outlines
/Count 0
>>
endobj

3 0 obj
<< [/PDF /Text /ImageB /ImageC /ImageI] >>
endobj

4 0 obj
<<
/Type /Font
/Subtype /Type1
/Name /F1
/BaseFont /Courier
>>
endobj

5 0 obj
<<
/Creator ()
/Subject ()
/CreationDate (D:20040416155740-08'00')
/Author (Jim McNeill)
/Title (UOM Example)
/Producer (Systex)
>>
endobj

6 0 obj
< /Subtype /Image
/Width 302
/Height 197
/ColorSpace /DeviceRGB
/BitsPerComponent 8
/F (jhlogo.jpg)
/FFilter /DCTDecode
/Length 0>>
stream
endstream
endobj

7 0 obj
<<
/Type /Page
/Parent 9 0 R
/Resources << /Font
<< /F1 4 0 R >>
/XObject
<< /jhLogo 6 0 R >>
/ProcSet 3 0 R >>
/MediaBox [0 0 612 792]
/Contents 8 0 R
>>
endobj

8 0 obj
<< /Length 134 >>
stream
BT
100 Tz
/F1 11 Tf
0 -11.5 TD
19 792 Td
() '
(01) '
(1) '
(33) '
(6332) '
(6963) '
(EAEACH) '
(kgKilo) '
(mMetres) '
(ydYards) '
ET
q
302 0 0 197 0 0 cm
/jhLogo Do
Q
endstream
endobj

9 0 obj
<<
/Type /Pages
/Count 1
/Kids [7 0 R]
>>
endobj

xref
0 10
0000000000 65535 f
0000000011 00000 n
0000000077 00000 n
0000000124 00000 n
0000000183 00000 n
0000000262 00000 n
0000000410 00000 n
0000000590 00000 n
0000000766 00000 n
0000000985 00000 n
trailer
<<
/Size 10
/Root 1 0 R
/Info 5 0 R
>>
startxref
1042
%%EOF

Click to open!jhlogo.jpg
Company Logo (8,486 bytes)


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.