Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Shadow generation in the PDF Language.

$
0
0

I am working on an application that needs to create PDF files from vector-based imagery.

 

There appears to be an extension to the language (which may be Mac-specific) that allows

paths to have drop-shadows; however, I can find no discussion of this feature anywhere.

I have checked the PDF reference, the addendums and waded through countless web

pages trying to find more information.

 

I can create files on the Mac which use the extension through Quartz 2D.  Please forgive

my ignorance in some of these matters, but I believe the relevant data from the PDF file is

the following (much is culled for simple viewing):

 

6 0 obj
<< /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] /ColorSpace << /Cs2 8 0 R
/Cs1 7 0 R >> /ExtGState << /Gs1 20 0 R >> /Font << /F1.0 13 0 R >> /XObject
<< /Im2 11 0 R /Im4 16 0 R /Im3 14 0 R /Im5 18 0 R /Im1 9 0 R >> /Properties
<< /Pl1 21 0 R /Pl2 22 0 R >> >>
endobj

 

21 0 obj
<< /Type /PropertyList /Style << /Type /Style /Subtype /Shadow /Offset [ 10.22150
-17.19072 ] /Radius 7.543859 /ColorSpace 8 0 R /Color [ 1 0 0 1 ] >> >>
endobj

 

I am guessing this "/Shadow" and its parameters control a vector-based shadow.

This is clearly not Mac-specific.  Viewers, even on the PC, recognize this and render

the file appropriately.

 

Although the example above is condensed, essentiallly it is drawing a filled rectangle

which has a red shadow beneath it.

 

Can someone give me some information on this feature, or at least point me in the right

direction to using any API to manufacture it?

 

Thanks,

 

Phil


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>