FrameMaker Transparency in PDFs
Tutorial
www.front–runner.com 2017/04/17 Copyright © 2017 AG Information Systems Ltd. (referred to herein as GEO F/X). This documentation cannot be reproduced in full or in part by any means without the prior written consent of GEO F/X. GEO F/X provides this documentation as is without warranty of any kind, express or implied, including but not limited to implied warranties of appropriateness for specific purposes or merchantability. In no event or under any circumstances shall GEO F/X or its suppliers or distributors be liable for any damages whatsoever, including and without limitation, damages resulting from business loss, which may arise from the use or inability to use this documentation, even if GEO F/X, its suppliers or distributors have been previously advised of the possibility of such damages. Since some states do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.
AG Information Systems Ltd. GEO F/X Division Arnis Gubins Adobe Community Professional FrameMaker [email protected] ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFrameMaker Creating transparencyinPDFswith eeecs . References . Summary Blend mode in transparency . Blend mode intransparency Transparent images . images Transparent Additional background fillsandtransp How to create a transparent coloured coloured How tocreateatransparent an image . an image An easier way: EPS format . An easierway:EPSformat . example JPG image Radial gradient effect (Type 3) . Radial gradient (Type3) effect Linear (axial) gradient effect(Type2) Linear (axial)gradient Using EPS files as an alternative way Using EPSfilesasanalternativeway otcitTx rms etrwy . way Abetter Frames: Postscript Text Making thepostscriptcode textdisa Adding thetexttotransparentfra r tot . itout Try aborder Enhanced examplewith How this works . works How this Setting up transparency inFrameMaker uptransparency Setting How to do this . dothis How to hti eurd . What isrequired Examples ofeffectsvaryingexponent xmlso fet ayn xedpoete . Extendproperties varying effects Examples of Examples using two colours . twocolours Examples using Examples ofeffectsduetovaryin Examples ofeffectsduetovaryin Re-using postscript code . code postscript Re-using Turning on/off . Turning on/off Tips to make this easier . thiseasier Tips tomake How to usepdfmarksinFr How to /SetTransparency . /SetTransparency dmr oe . codes pdfmark . file(s) Edit joboptions Table ofContents ...... ameMaker . ameMaker . background textframethatoverlays . rnyefcs . arency effects ...... pa . ppear . g exponent . g exponent . g coordinates . e . . me ...... N . N ...... 21 . . .16 . .24 . .3 . .23 . . . .11 ...... 34 ...... 35 . . .26 . .21 . .18 . .12 6 . . .27 . .25 . .19 . .17 . .12 5 . . .28 . .11 ...... 2 ...... 29 ...... 2 . . .10 .....2 . . . . 36 . . .30 . .17 5 . .5 .2 2 i ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. ii Creating transparency in PDFs with FrameMaker
This tutorial shows you how to create transparency effects in PDFs gener- ated from FrameMaker. The steps described can be automated with script- ing (either Extendscript or Framescript) to make the whole process easier. The scripting approach also would make it possible to easily allow trans- parency of images and to more easily utilize further effects such as gradi- ents and the various colour-blending modes available. Are you interested in how to create effects like these?
FM Transparency? Lorem ipsum do pland sit amet, con sectetur a dip sching elit. I ped diam non nu my e plusmode tempor in cidunt ut labore et dolore. Oh magna alip quam erat volu pat. Ut dernime ad minim veniam, quis no strud exercit libration ullamcorper suscipit lab oris nisi ut aliquip ex ea commodo consequat. Duis autem vel eum irure dolor in reprehendert in voluptate velit esse molestaie consequat, vel illum dolore eu fugiat nulla pariatur. At vero eos et accusam et iusto odio blandit praesent luptatum delenit aigue duos dolor et molestias exceptur sint dupic non
AG Information Systems Ltd. - GEO F/X Division ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. pdfmark pdfmark SetTransparency sparency has to be added at the be has to added at sparency r all, is built on an opaque colour colour opaque an r all, on is built transparency control turned off. So aging model and postscript itself itself postscript and model aging that it’s going to have to allow trans- do pland sit amet, con con do pland sit amet, FM Transparency? sectetur a dip sching elit. I ped diam a dip sching sectetur in e plusmode tempor non nu my Oh magna dolore. et ut labore cidunt Ut dernime ad pat. volu alip quam erat exercit quis no strud minim veniam, oris lab suscipit ullamcorper libration Lorem ipsum Lorem You’ll first need to let Distiller know know let Distiller need to first You’ll back on. to turn it have you now parency to be created. Postscript, afte Distillermodel,has the default so by How to do this How doesn’t support transparency, the tran transparency, support doesn’t the using Distiller by stage creation PDF What is required items: following the with work will need to You • workflow file(s) PDF used Distiller in your joboptions/settings • effects. EPS files PS or various custom with to create editor Text As FrameMaker uses a postscript im uses a postscript FrameMaker As operator. operator. use a either must one FrameMaker, into insert operators pdfmark To PostScript text frame or import an EPS file containing the appropriate codes. pdfmark Edit joboptions file(s) Edit frame that overlays an image overlays that frame How to create a transparent coloured background text text background coloured a transparent create to How 2 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 3 FrameMaker with PDFs in Creatingtransparency effects. render the transparency 7.0 orgreater to actually Distillerversionusing a of Note: You need to be be to need You .Thenfrom themenu, select 2. Start Distiller and select the joboptions/settings that file you typi- 1. 4. Check the Compatibility settings. They should be at Compatibility the be should Check least They settings. 4. If you donot have Acrobat the full installed, then inFrameMaker, 3. (PDF 1.4) used for creating your PDF. Then click on the Settings tab: Default Settings Settings tab: cally to use create your PDFs. select Print > Printer: Setup button> Properties button > Adobe button PDF > Properties button> Print >Printer: Setup . . Select the. joboptions Select that file istypically Settings >EditAdobesettings...PDF Edit... button. Acrobat 5.0 ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. Text . true and select the button). parameter to parameter SaveAs Open , select the file and then hold hold , select file then the and file using a text editor or or editor file a text using ur local settings folder, typically ur local settings folder, ve this file as a called File > Open ( /AllowTransparency in the default location presented to you. to presented location in the default g FM as the editor, use g FM as the editor, text mode Transparency.joboptions format). To those with more knowledge of PDF creation (perhaps you’ve taken one one taken you’ve (perhaps PDF creation of knowledge more with those To be wondering may courses), you excellent of Shlomo Perets/Microtype Transparency.joboptions FrameMaker in FrameMaker down the shift key when clicking on the the on clicking when key shift the down Only... Note: C:\Users\
©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. ).
©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. on — val- and ), or hue-sat- or ), Height 1 1 1 setrgbcolor 1 1 setcmykcolor e-existing graphics state state graphics e-existing ). You also could add stroke stroke add could also You ). /ca .5 -size it without having to worry to having without -size it g the rest of the graphics in the the graphics of g the rest sed, the location and size of this this of size and location the sed, script code to define size and loca- define code and to size script the postscript frame. Let’s examine examine Let’s frame. the postscript at local changes can be made to the the be to made can local changes at k. This information can then bek. This information Enhanced example with a border with example Enhanced match a colour). White is defined White as a colour). match ; in hue-lightness-saturation, FM it’s so cally defined variables called defined variables cally is relative to the frame itself. This means that that means This itself. frame the to relative is pops that back off and puts things back to the the to back things puts and off back that pops operators in line 1 and 7 respectively, encapsulate encapsulate 7 respectively, in line 1 and operators pushes a copy of the pr of a copy pushes sethsbcolor ) with a different value to give an enhanced border border enhanced an give to value a different ) with grestore gsave grestore /CA ), Cyan-Magenta-Yellow-blacK ( ), Cyan-Magenta-Yellow-blacK and setgray in this example. gsave Width When a postscript text frame is proces frame text a postscript When the stac onto pushed are frame text retrieved to be used in defining the from order] [in that respectively width and the height 3 pull frame such things as the area lo load those into and stack to fill. Lines 2 and gsave /Height exch def /Width exch def pdfmark [ /ca .5 /SetTransparency 1 1 1 setrgbcolor 0 0 Width Height rectfill grestore The How this works this How The magic is in the pdfmark code in what everything means. everything what Line 4 sets the fill transparency to 50% ( 50% to Line 4 sets the fill transparency effect by drawing a rectangle.[see rectangle.[see a drawing by effect page 11] page Line 5 defines the space specific the and colour to be this used. colour In also could use gray- You White. give set to colours case, Red-Green-Blue ( scale unto a stack. The a stack. unto the contained code (lines 2-6), sothe th contained affectin without environment graphics document. The way they were before creating the transparency. the creating before were they way so environment, standalone own its frame creates text Each postscript everything specified within you can move the frame around and re post the in used values specific about tions. the order is different if trying to is different the order the hence 100% blue, and 100% green 100% red, transparency ( uration-brightness ( uration-brightness ues will always range from 0 to 1. 0 to from range ues will always 1 2 3 4 5 6 7 All dimensions in dimensions All Note: postscript code are in postscript code are point units. 10 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 11 FrameMaker with PDFs in Creatingtransparency 10 9 8 7 6 5 4 3 2 1 Line 9drawsLine the outline (border) of frame inyellow with awidth of 5pt. blue). 8changesLine thecolor to Yellow width the of 6sets Line both defines the shape and fills it. line (75% in this case) by including case) line (75%inthis the 4nowLine addsadifferent level of opacity for therectangle/frame out- angle outline (border) using the 4. Change the text frame to a Postsc a to frame text the Change 4. 6. Go to your Body page. toyour Go Body 6. Copy thepostscript text frame to theclipboard. 5. frame (0,0)to thewidth and arectangle 6specifies toLine filled be .Copy and paste thesample into code 3. Create text anew frame. 2. toyour Go Reference page (Postscript) 1. out it Try the to Analagous grestore Heightrectstroke 0 Width 0 1 0 setrgbcolor Heightrectfill 0 Width 0 5 setlinewidth 1 1 setrgbcolor pdfmark /SetTransparency 0.75 [ /ca.4/CA def exch /\Width def exch /Height gsave transparency). The following codeaddsayellow 5p of instructions. set modified You can adda bit of embellishment by Enhanced example withaborder ae7. page the ps_code paratag, asmentioned earlier). rectfill operator, the the line to at use 5pt. height of theframe. The specified linewidth andspecified colour. (i.e. 100% red, 100%green and 0% t border with 75%opacity (25% itfaea hw nse 7.on ript asshown frame instep rectstroke starting from the origin of the text creating aborder using a effect /CA the text frame (and tag it with key and value ( value and key operator draws the rect- the draws operator rectfill 0.75 operator operator ). ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. of: stacking order ent text frames (call it Content?). (call it frames text ent text frame to the same size as the the to same frame text •image on the bottom, bottom, the on •image • in the frame postscript middle • content textframe on top. with the graphic. the with To get the appearanceTo of text in a transparent frame, you now have to add another text frame to the anchored frame to hold your content. the postscript will re-size need to You and up when setting convenient is more pages the Reference on Working frame. the text postscript on frame text the content superimposing 1. pages. the Reference to Switch 2. Create a Reference page for the cont 3. Create a text frame and set the Fill to None. Adding the text to the transparent frame the transparent the text to Adding frame text the content overlay is to final The step frame. text final content the keeping frame text the postscript over 7. frame anchored the from frame text postscript original the Delete 8. frame. the anchored into frame new text the Paste 9. desired. as Resize 10. SaveAsPDF (check that the joboptions Transparency are used). 11. look like this: should now The PDF 12 transparency Creating in PDFs with FrameMaker Tips to make this easier ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 13 FrameMaker with PDFs in Creatingtransparency 6. Note on the Dimensions panel, the the panel, Dimensions Note onthe 6. 4. Enter and format your content and and content your format and Enter 4. 5. Select the text and frame the theProperties open Select window ( 5. text frame, e.g. frame, text as required, e.g. as required, e.g. Width adjust thesizeof thetext frame and and Height values of the
/C1 (show me (show . 1 shfill C1 and end at 0 can alsocan be defined using , which is used to specify the how is used then alone, fill goes from 5 0] (pale orange in thiscase) 5 0] (pale at orange case a vector (left-to-right) along along (left-to-right) case a vector r the exponent in the interpolation in the interpolation r the exponent a linear interpolation is wanted. A is wanted. interpolation a linear ate (0,0) of the gradient fill and the fill and the gradient (0,0) of ate C1 point to the end point of the axis of the end point to point or to black for named Width and Height accordingly. Height and named Width /ShadingType 2 specifies that smooth smooth specifies 2 that /ShadingType or C0 C0 e-existing graphic environment. graphic e-existing ern definition used for the the for used ern definition c, 3 means cubic, etc. cubic, c, 3 means . . A colour for the end-point the end-point for . A colour /Coords /C0 Line 13 provides the number to use to fo the number Line 13 provides formula used. The value of 1, means quadrati 2 means of value Dictio- Function the for definitions the terminate 15 just 14 and Lines respectively. pattern, the shading nary and the fillLine 16 shows environment. graphics the previous Line 17 restores Line 1, as before, saves the pr the saves before, as 1, Line Lines 2 and 3 retrieve the values of the postscript text frame’s width, width, frame’s text postscript the of values the 3 retrieve 2 and Lines the variables populate and height Line 4 sets transparency. a 50% Line 5 starts the shading patt Line 10 says that the function will interpolate between two endpoints. two between will interpolate function the that 10 says Line will begin the interpolation that Line 11 says the starting colour to white for for white to colour starting the Line 12 specifies [1 0. colour the RGB start, hence the fill!) operator in Line 16. The the fill!) operator Axial shading be is to used. will be used. colours RGB that Line 6 indicates frame) text postscript the to here (equal box bounding a defines 7 Line for the fill. co-ordin Line 8 specifies starting the this In (Width,0). co-ordinate ending start the will varyfill from colour defined the by the X-axis (i.e. horizontal) axis of the rectangle. axis of horizontal) the X-axis (i.e. Line 9 begins the Function Dictionary and the RGB values. If either either If values. the RGB and 22 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 23 coordinates due to varying Examples ofeffects FrameMaker with PDFs in Creatingtransparency ers specify thecolo ers specify example) A and Cshowgradients: left-to-right a light or dark shade. A, B, E, F, I and J have the colour specified at the start ( start the at specified colour the have J and F,I E, B, A, /Coords [0 Height Width 0] J and Lshow diagonals from upper to left lower right: /Coords [0 0 Width Height] right: upper to left lower from diagonals show K and I F and Hshow top-to-bottom gradients: E and Gshow bottom-to-top gradients: B and Dshow right-to-left gradients: Changing starting the and ending values of the
alters the direction of the grad ur at theend ( C1 ). This shows). This how you can blendto /Coords [0 0 Width 0] /Coords [Width 0 0 0] /Coords [Width /Coords [0 0 Height] /Coords [0 Height00] ients example: this asshown in /Coords C0 (Line 8of (Line the ), while the oth- ), while ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. ine 13 of the example) affects how affects how example) the of 13 ine quickly the colour varies in the gradient. in the varies gradient. the colour quickly Changing the exponent (/N) value (L value (/N) the exponent Changing 24Examples of effects varyingdue to exponent transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 25 colours two Examples using FrameMaker with PDFs in Creatingtransparency 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 point of the axial(linear) shading from grestore shfill >> /Domain /Domain << /Function 0 Width /BBox[0 Height] [0 /FunctionType /ColorSpace 1] << /ShadingType 2 /DeviceRGB 2 pdfmark /SetTransparency [ /ca.5 def exch /Width def exch /Height gsave In this example, blue blue example, this In colour were defined. asingle if create a gradient the between two co fill Adding another colour definition (/C1 >> /Coords [0 0 Width 0] [0 0 /Coords /N 1 /N /C1 [0 0 1] [1 0.50] /C0 /C1 [0 0 1] was added in Line 13 as colour at the end end the at colour as 13 Line in added was ) after Line 12 in the example 12inthe ) after Line will lours of instead just white or back left (pale orange) left(pale toright (blue): ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. of the ending circle (X1, Y1) and radius of that that of radius (X1, Y1) and circle the ending of /Domain [0 1] /ColorSpace /DeviceRGB /ColorSpace /BBox [0 0 X Y] /Coords [X2 Y2 0 X2 Y2 Y2] false] /Extend [false /Function << /FunctionType 2 /C0 [1 0.5 0] /N 1 >> circle (R1). circle gsave def/Y exch /X exch def Y 0.5 mul /Y2 exch def def exch /X2 mul 0.5 X gsave pdfmark [ /ca .5 /SetTransparency 3 /ShadingType << >> shfill grestore Radial gradient effect (Type 3) effectRadial (Type gradient cir- two between blend effectThis shading occur is defined a colour as to cles. This can give a 3D type of effect in PostScript. 3 shading to as a Type to asphere or cone. This is referred defi- the/Coords for except one, the Axial shading to The code is similar and Y0) (X0, circle starting the of center the defines it time This nition. the center (R0) and radius 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 26 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. properties Extend varying Examples ofeffects raigtasaec nPF ihFaeae 27 FrameMaker with PDFs in Creatingtransparency The top row shows C0 colouring, with bounding box edges specified in Line inLine specified edges box bounding that would allow the second circle’s co ean ing beyond the starting and ending ci Line 12is an optional to entry whether specify or not to extend the shad- radius. text frame’s height(Y2). Thevalues are the at located also is circle second it behaveso will asapoint from wh at mid-point (X2,Y2)(i.e.the of th 11positions circlesLine the for touse 3. radial, 8declares i.e.Line be type one- will that fill the taking i.e. 0.5, by values Y and X the half. multiplying by frame text script variables (X2, 4and new Lines 5define forbetween thecode (Type Axial 2)shading are explained here: and height, respectively, of the postscript text frame. Onlythe differences are used Y and X example, code In the D/Extend false] /Extend [true C B/ExtendA/Extend [true [false [false true] false] true] false and and false . If value second intheexample the where mid-point and aradius has of the half e frame) and hasaradius of zero (0) ich the colour willflow out of. The as the variable names for the width blending. Thefirst circle islocated rcles. Thedefault values are bool- the following the extend permissions: 10 (i.e. text thepostscript frame). entered as two triplets, i.e. x, yand lour to continue out filling to the Y2) as the mid-points of the post- true , then , then ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. the inner circle is the inner circle if the center of of if the center the same order of /Extend as the as /Extend of order the same ending (C0 & C1) with the same same the with C1) & (C0 ending value exponents would be good for be good for would exponents value function N used the exponent of in offset slightly (i.e. it could look like a light source). light a like look could it (i.e. offset slightly The rate of the fill is shown here as the fill here of shown is The rate smaller The definition. Function the Allowing the second circle to extend is the only parameter that affects the the affects that parameter only the is extend to circle second the Allowing area outside of the circle itself. in colouring C1 shows row The middle especially effects, type specular creating top row. top The bottom row showstwo-colour bl rows. modesextend as the other 28 transparency Creating in PDFs with FrameMaker Examples of effects varying exponent N ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 29 Transparent images FrameMaker with PDFs in Creatingtransparency following example (the yellow frame is pr can one information, that Knowing components). the number of bits pixel per and the Explorer, you should able be to theheight determine and width inpixels, software, or even the Windows Properties > Detail tab of the file in Using code. order it postscript to inthe use your or viewer imageediting This means that you to know need quite afew of in details image the file the number of bits colour per component. columns in the image, th tobe format needs of imagefile the what ifany compression was scheme ues, so this means that to you this need ues, so The image into needs decoded to file be arectangular array of sample val- hoops. formats (TIFF, JPG,PNG, GIF, BMP, work involved. Thisisdue toPostscri image the make to need really you If e number of colour components sample per and know how the file known, i.e. number the of rows and pt not directly supporting image file file image supporting directly not pt colourpace (hence used number of transparent, then there’s a bit more etc.) — so let’s jump through a few few a let’s so — through jump etc.) oduce atransparent image, like the used) in the first inthe used) on thepostscript text frame): was encoded (i.e. wasencoded place. Thenthe ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. ). pops JPG image as used as in JPG image .] xels, of the image file. [The values values file. [The image the of xels, a priori rses JPG as a transparent image is: image rses JPG as a transparent of the image by dividing the width width the dividing by image the of e from the stack (thee from two ). img horses running on the beach ) by the height (Y the height ) by •colourspace = RGB = 3 = • pixels = 1280 width • = 720 pixels height •colourspace •components img Lines 1–3 get the postscript text frames width, height and clear the start- the fram of co-ordinates ing to manually have that you determine Lines 4–5 specify in pi the dimensions, the aspectLine 6 determines ratio (X other examples, the following information is determined: information the following examples, other ho the insert to code postscript The /Y exchdef /X exch def pop pop def /Ximg 1280 /Yimg 720 def def Ximg Yimg div /AspectRatio Ximg Yimg ge {/Xscale X def div def /Yscale X AspectRatio } {/Yscale Y def /Xscale Y AspectRatio mul def } ifelse pdfmark [ /ca 0.6 /SetTransparency /DeviceRGB setcolorspace (E:/Test/Fm_transparency/Horses.jpg) (r) file /File_img exch def /Data {File_img /DCTDecode filter} def gsave 0 0 translate Xscale Yscale scale << /ImageType 1 /Width Ximg /Height Yimg [Ximg 0 0 /ImageMatrix Yimg mul -1 0 Yimg ] Data /DataSource /BitsPerComponent 8 /Decode [0 1 0 1 0 1] >> image grestore JPG image example image JPG Analyzing the same 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 30 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 31 FrameMaker with PDFs in Creatingtransparency forthis towork properly. the entirefile pathtothe Note: You mustspecify within the text frame. The that paints image the imagedictionary/operator the 22begins Line uponframe (based theAspect ra imag the how toscale 21specifies Line postscript text frame. 20ensuresLine that image the isplaced 19savesLine thecurrent graphics environment. ReferenceLanguage Manual. The details fi of of decode all these maythese require additional paramete tation of the x and y axes ( with the upper right pixel). The second in an imagebegins of image(typically location of origin the the the give the image within thepostscript text frame space. Thefirst pair of values Line 25specifies the transformation matrix defining the positioning of thewidth and he 23–24specify Lines ward direction for image starting at top the row). The third pair specify need PNG files, the the files, PNG order in toproper encoded, originally need to know the filetype that you are importing and how the data was There are nine(9)different fi decode from image). the (asdetermined used tobe colourspace RGB is that the 15specifies Line used. that an of opacity 14specifies Line ratio.axis adjusted by aspect the postscript textimage. frame appropriate sizewith isthe the Thescaling direction (i.e.toY, aPortrait mode Otherwis mode). (i.e. toX,a Landscape the ratio is greater than 1,then the image is fit in the horizontal direction the to scaling de use 7–13Lines specify DCTDecode called 18iswhereLine theimage samples get ob 17assignsthis Line the path, must beenclosed in parentheses. read to object file a creates 16 Line LZWDecode Data in this case). The file is read and decoded using the the using and isread decoded Thefile case). inthis (Discrete Cosine Transform) (Discrete Cosine filt FlateDecode , CCITTFaxDecode ject to avariable. Yimg -1 mul mul -1 Yimg is needed. Whereas, for aTIF file, you may ImageType tio as specified in Lines 7–13). Lines in specified as tio , theimage. Thefile lters inthePostScript are described ). This scaling does not distort does the ). Thisscaling 60% (i.e. 40%transparent) isto be RunLengthDecode lters available inPostScript, you so ly decode the samples for use. With ight inpixels image. of the is used toanegative/down- specify must be 1. must be rs to properly thedata. decode e data to fit the postscript text stored (and assigned to an object pending upon the aspect ratio. If pair of orien- values the specify at the origin (lower left) of the the of left) (lower origin the at e, the image is fit in the vertical image vertical e, inthe the isfit er that is used in JPG files. JPGfiles. er that in isused , etc. and of some name, including ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. colour compo- colour lour space. The The space. lour . The details of all of all of of details The . each to keep in mind that [0 1 0 1 0 1] (in points; 1/72 of an inch) of the the of inch) an of 1/72 (in points; ript the functionality. So is there there So is functionality. the ript The JPG was created at 96dpi, so 96dpi, at The JPG was created lculated during the conversion to to the conversion during lculated when placing the pixel (i.e. move (i.e. move the pixel when placing nition and paints the image within within image the paints and nition per inch = 960pt. Likewise, the = 960pt. per inch " to get the bounding box values. values. box the bounding get " to dth as in used pixels, in the JPG JPG to EPS, the bounding box has JPG to EPS, the box bounding do is to find out the BoundingBox BoundingBox the find out to is do the PostScript Language Reference stscript code has already been done been done already code has stscript in the current co in the current mple image. The steps there are more more there are The steps image. mple e same for all components) is used and and is used all components) for e same .eps the number of colour components of the of components colour of the number filename for the image. You need need You image. the for course, use course, EPS file. an or 12. In this case, it’s 8 bits per pixel (otherwise per pixel 8 bits it’s this case, 12. In or twice in this case; Line 18). Data findstr BoundingBox EPS files can contain both vector and raster information. Most imaging imaging Most information. raster and vector both EPS files contain can simplifies This EPS file. an as image an save will also let you applications to po things as the conversion a lot, An easier way: EPS format easier way: An a si for work of a bit was quite That easier to do this?an Of for you. The only thing you need to specified are that values for the benefit of wishing anyone to sc size the physical represent these values wi and height the than rather image, the translation displacement required displacement the translation postscript the of bottom the along is row last the that so down image the text frame). (the object from coming are Line 26 specifies samples the image where called example. An EPS file can be read by mostline " text editors or you can use the command Line 27 specifies the number of bits usedLine specifies 27 to define bits of the number th Only a singlenent. value (i.e. it’s 1, 2, 4, 8 of be one can RGB). for encoding as 24-bit known Line the describe image that 28 specifies numbers to map of how array an used values of a range into samples current colour space (Line 15). The values will always be 0 or 1. For this 1. For be 0 or will values 15). The (Line always space colour current required are six values RGB, using image length must always be always length must the bounding box value for width is ca width for value box the bounding / 72 points * 96dpi EPS as 1280 pixels Using the horses file converted from file the horses converted Using 540pt. of a height and 960pt a width of these decode arrays are described are in these decode arrays Manual. dictionary the image Line defi 29 ends the postscript text frame. text postscript the environment. graphics the original Line 30 restores 32 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 33 FrameMaker with PDFs in Creatingtransparency 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 direction (i.e.toY, aPortrait mode Otherwis mode). (i.e. toX,aLandscape the ratio is greater than 1,then the image is fit in the horizontal direction to dependingupon use scaling theAspect the ratio. 7–13specify Lines If file, the postscript code to code postscript the file, So, only needing the width and height along with the name of the EPS file [whichfile you have to determine thebounding box 4–5specify va Lines following height calculates to 540pt. The boun (X ratio 6determinesLine theaspect co-ordinatesing of fram the 1–3getLines postscript the text fram grestore (E:/Test/Fm_transparency/Horses.eps) run scale Yscale Xscale 0 translate gsave pdfmark [ /ca.6/SetTransparency ifelse } def Yscale /Xscale divdef Y Ybox {/Yscale } /YscaleXscale def Xbox div def {/Xscale X Xbox Yboxge Ybox divdef /AspectRatio Xbox /Ybox 540 def def /Xbox 960 pop def /X exch def /Y exch box ) by height the (Y findstr query: box ). create a transparent image is: image transparent a create e from the stack (the two e from (the thestack a priori of image the by dividing thewidth ). This scaling does not distort does the ). Thisscaling ding box values are shown inthe es width, height and clear start- the lues and (width height) of EPS the e, the image is fit in the vertical image vertical e, inthe the isfit ]. pops ). ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. in live transparency in Lines 7–13). /AllowTransparency true /AllowTransparency at the origin (lower left) of the e data to fit the postscript text text postscript the fit to e data atement to keep things simple in simple keep things to atement ing the ratio of the postscript text text postscript the of ratio the ing lly, you should have enough infor- enough have should you lly, own scripts to apply these affects in apply to scripts own to text frames. This opens the door the door opens This frames. text to e specified EPS file.The file name, 60% (i.e. 40% transparent) is to be is to 40% transparent) 60% (i.e. tio as specified specified tio as e bounding box size. box e bounding the FrameMaker documents and for re-use in multiple files in multiple re-use for and documents the FrameMaker Reference pages Reference • in images transparency to create use EPS files want if you hopefu aficionados, scripting the For frame (based upon the Aspect ra the Aspect (basedframe upon postscript other effects, such as linear/axial and Additionally, PDFs. also be applied can radial gradients effects. creative and some interesting for The take aways from this tutorial are: • fileDistiller a with joboptions create • off and frames on text Object toggle styles to Postscript create • small your text files the on postscript for work create code or • st "path:filename" #include the use your be to able to create now mation a more transparent manner. postscript text frame. text postscript Line 17 specifies to scale the how imag transparency effects apply to now can you work, of a bit a little just With text frames and images in FrameMaker and create Line 15 saves the current graphics environment. graphics the current Line 15 saves is placed the image that Line 16 ensures th of the contents Line 18 processes be enclosed in parentheses. must the path, including environment. graphics the original Line 19 restores details other any know to have don’t You it? wasn’t easier, a lot was That the box. the bounding the by than other size given the image of image. The scaling isimage. calculated us by the imag to size frame Line 14 specifies that an opacity of Line 14 specifies of opacity an that used. You don’t need to specify must You Summary Note: specify the colour space, specify the colour space, within as this is defined the EPS file. to the path file the entire thisfor to work properly. Note: 34 transparency Creating in PDFs with FrameMaker ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. raigtasaec nPF ihFaeae 35 References FrameMaker with PDFs in Creatingtransparency Workbook, 2001 Shlomo. Perets, www.pdflib.com/fileadmin/pdflib/pdf/pdfmark_primer.pdf lin, 1998.Chapter 6,“pdfmark Primer”, isavailable on-line from: tion Adobe Systems Incorporated., Merz, Thomas. Thomas. Merz, http://www.tinaja.com/post01.shtml Lancaster, Don: http://www.acumentraining.com/acumenjournal.html Deubert, John: 2015 Mac Windows® OS® and Microsoft® for Settings ation Adobe Systems Incorporated., May 2015 Windows®, Linux®, and UNIX® Microsoft® Mac for OS®, ence Adobe Systems Incorporated., https://www.adobe.com/products/postscript/pdfs/PLRM.pdf ; ISBN 0-201-37922-8 Acumen Journal — PostScript Tech. PostScript — Journal Acumen Web Publishing with Acrobat/PDF FrameMaker-to-Acrobat Advanced Techniques Advanced FrameMaker-to-Acrobat PostScript Library. Don Lancaster's Guru's Lair. Guru's Lancaster's Library. Don PostScript Adobe® Acrobat® DC SDK Adobe PDF Cre- PDF Adobe SDK DC Acrobat® Adobe® PostScript Language Reference, third edi- Adobe® Acrobat® DC SDK pdfmark Refer- pdfmark SDK DC Acrobat® Adobe® . Springer-Verlag Ber- , Edition 1.0,May ; Edition 2.0, , Course , Course ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. a transparent image placed on an end modes behave so that you can specifying transparency the is of the object on top. There are 16 are There top. on the object of e then switched on the next page, the next page, on e then switched al (Section 11.3.5 Blend Mode Mode al (Section Blend 11.3.5 enario follows (only the highlighted the highlighted (only follows enario (with applied transparency and all ences between the two scenarios. ences between the two mode. parameter). This defines how the background colours /BM /Normal /Y exchdef /X exch def pop pop /Xbox 720 def def /Ybox 1080 /AspectRatio Xbox Ybox div def Xbox Ybox ge {/Xscale X Xbox div def def Xscale /Yscale } {/Yscale Y Ybox div def /Xscale Yscale def } ifelse [ /ca .5 /BM /Normal /SetTransparency pdfmark gsave 0 0 translate Xscale Yscale scale run (E:/Test/Fm_transparency/cat_cropped2.eps) grestore One of the optional parameters when parameters the optional One of blend mode ( mode blend geta feel for what you may need. default the In most cases, you probably want to use different blend modes currently available. The details of these are these are of The details available. modes currently blend different defined manu Reference in the PDF p.324). This section the various bl how shows interact with the transparent colours colours transparent the with interact The postscript code for the first sc first the for code postscript The varied): was line pdfmark The following pages show examples of examples show pages The following All the background. blend modes gradient of are multi-coloured opaque ar graphics The image. the to applied gradient multi-coloured the with file. image opaque now the of front in modes applied) blend differ of a bit quite are There 36 transparency mode in Blend adih otih ifrneExclusion Difference SoftLight HardLight omlMlil cenOverlay Screen Multiply Normal aknLgtnClrog ColorBurn ColorDodge Lighten ©4/17/17 AG InformationDarken Systems Ltd. — Contents are copyrighted. u auainClrLuminosity Color Saturation Hue Cat infront (50%transparency) 37 ©4/17/17 AG Information Systems Ltd. — Contents are copyrighted. Spectrum in front (50% transparency) Hue Saturation Color Luminosity Darken Lighten ColorDodge ColorBurn Normal Multiply Screen Overlay HardLight SoftLight Difference Exclusion 38