<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - How to do multi-stage blending</title>
    <link>https://forums.adobe.com/community/design_development/pdf_language_and_specifications?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 20 Jun 2014 14:01:56 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-06-20T14:01:56Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477952?tstart=0#6477952</link>
      <description>&lt;!-- [DocumentBodyStart:a2a3ce50-4e8e-46cc-87d4-12e3fbdc6e2d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Looks great!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a2a3ce50-4e8e-46cc-87d4-12e3fbdc6e2d] --&gt;&lt;img src='/beacon?t=1415903080070' /&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:01:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477952?tstart=0#6477952</guid>
      <dc:date>2014-06-20T14:01:56Z</dc:date>
      <clearspace:dateToText>4 months 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477899?tstart=0#6477899</link>
      <description>&lt;!-- [DocumentBodyStart:8522bac6-b064-4866-b144-daa6f1d5fd81] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Just for interest sake: my output PDF can be found at &lt;a class="jive-link-external-small" href="https://drive.google.com/file/d/0Bzxt3kuNPaEccU8wSlkzQVpJWW8/edit?usp=sharing" rel="nofollow"&gt;https://drive.google.com/file/d/0Bzxt3kuNPaEccU8wSlkzQVpJWW8/edit?usp=sharing&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The aperture in question is object 11, line 170.&amp;nbsp; As well as objects 12 and 13, but they are simply modifications of the same aperture (I left the apertures uncompressed for easy debugging).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Gerber draws a large circle and then erases a smaller circle and two lines.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8522bac6-b064-4866-b144-daa6f1d5fd81] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 13:43:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477899?tstart=0#6477899</guid>
      <dc:date>2014-06-20T13:43:55Z</dc:date>
      <clearspace:dateToText>4 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477744?tstart=0#6477744</link>
      <description>&lt;!-- [DocumentBodyStart:cd22b90b-d870-4fec-ac8f-006028c1f695] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;My pleasure - glad to hear it's working!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cd22b90b-d870-4fec-ac8f-006028c1f695] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 13:16:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477744?tstart=0#6477744</guid>
      <dc:date>2014-06-20T13:16:18Z</dc:date>
      <clearspace:dateToText>4 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477523?tstart=0#6477523</link>
      <description>&lt;!-- [DocumentBodyStart:b2b9f704-3512-4af2-bd16-22733803b452] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Clipping paths work perfectly -- thank you.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b2b9f704-3512-4af2-bd16-22733803b452] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 12:46:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477523?tstart=0#6477523</guid>
      <dc:date>2014-06-20T12:46:56Z</dc:date>
      <clearspace:dateToText>4 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477470?tstart=0#6477470</link>
      <description>&lt;!-- [DocumentBodyStart:7a2467af-a467-47e3-a2e0-7681dbdbab9d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I want to avoid rasterising because I want to end up with a nice and neat&lt;/p&gt;&lt;p&gt;PDF that I can embed in a LaTeX document.&amp;nbsp; For any practical PCB (printed&lt;/p&gt;&lt;p&gt;circuit board), the Gerber is rasterised to at least 1200 dpi (often 2400&lt;/p&gt;&lt;p&gt;dpi) in order to obtain adequate resolution on small features.&amp;nbsp; For a PCB&lt;/p&gt;&lt;p&gt;that is A4 in size, that is quite a large picture, even after PNG&lt;/p&gt;&lt;p&gt;compression.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I could of course rasterise only the apertures (which are generally small&lt;/p&gt;&lt;p&gt;compared to the PCB), but I prefer a more elegant solution.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I like the clipping idea.&amp;nbsp; I can draw the aperture primitives front to&lt;/p&gt;&lt;p&gt;back: augment the clipping structure for "clear" primitives and draw the&lt;/p&gt;&lt;p&gt;"dark" primitives using this structure.&amp;nbsp; If I cannot augment clipping&lt;/p&gt;&lt;p&gt;structures on the fly, I can always generate multiple clipping structures&lt;/p&gt;&lt;p&gt;and use the correct one for each "dark" stage.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For the moment, I can live with drawing in white because I'll generally&lt;/p&gt;&lt;p&gt;print the PDF onto a white background.&amp;nbsp; Even when printing to a&lt;/p&gt;&lt;p&gt;transparency, the printer assumes a white page and will only deposit black&lt;/p&gt;&lt;p&gt;ink where I want it.&amp;nbsp; It would be nice to render the different copper&lt;/p&gt;&lt;p&gt;layers as different coloured transparent layers on top of each other, in&lt;/p&gt;&lt;p&gt;which case I would need to generate proper holes, but this would be a&lt;/p&gt;&lt;p&gt;future feature of my converter...&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7a2467af-a467-47e3-a2e0-7681dbdbab9d] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 11:59:06 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477470?tstart=0#6477470</guid>
      <dc:date>2014-06-20T11:59:06Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477332?tstart=0#6477332</link>
      <description>&lt;!-- [DocumentBodyStart:b05382c5-39fe-48c2-9c4c-a1e3126b78bd] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You set up a clipping path and then whatever you draw after clipped to the shape of that path.&amp;nbsp; The clipping path can be defined by either other paths or text shapes.&amp;nbsp; This is a "hard" clip/mask operation, in that things are either IN or OUT (on/off).&amp;nbsp; If you want to get fancy, you can use a transparency mask (called a SoftMask) where things can be partially in/out.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This aperture definitely appears to assume a raster-based output where you can erase.&amp;nbsp; (consider a printer where such a thing is impossible).&amp;nbsp; Since they assume a raster anyway, I would probably consider rasterizing it yourself and then putting the raster results into the PDF.&amp;nbsp; Obviously you lose resolution independence but not sure how important that is.&amp;nbsp;&amp;nbsp; The alternative would be to do path based operations to compute the final path(s) to be rendered and then put that into the PDF.&amp;nbsp; You can use some of the well know "polygon clipping" solutions for such a task.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Drawing in white is a bad idea since it assumes that the final output will be drawn on a white background - which isn't always the case.&amp;nbsp; PDF assumes a transparent (or really, nothing drawn) background so if you were to use white - you'd get white and not "nothing".&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b05382c5-39fe-48c2-9c4c-a1e3126b78bd] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 11:06:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477332?tstart=0#6477332</guid>
      <dc:date>2014-06-20T11:06:53Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6477004?tstart=0#6477004</link>
      <description>&lt;!-- [DocumentBodyStart:74b6e934-f84d-4d20-9b73-3e0e142d35b0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'll investigate...&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I understand clipping correctly, you set up a clipping shape / object,&lt;/p&gt;&lt;p&gt;and then draw over it.&amp;nbsp; The object you're drawing will then be clipped by&lt;/p&gt;&lt;p&gt;the clipping mask.&amp;nbsp; Do I understand correctly?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm writing a gerber to pdf converter.&amp;nbsp; They have an object called an&lt;/p&gt;&lt;p&gt;aperture, which can be drawn by a series of draw / erase cycles.&amp;nbsp; The order&lt;/p&gt;&lt;p&gt;matters, 'cause you can't erase what hasn't been drawn yet, and you can&lt;/p&gt;&lt;p&gt;draw over a previously erased portion.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you want a ring with a cross over it, you draw a big circle, erase a&lt;/p&gt;&lt;p&gt;smaller circle, and then draw the two lines.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After creating this aperture you can draw the result onto the&lt;/p&gt;&lt;p&gt;artwork-in-progress either positive (draw as is) or negative (erase / make&lt;/p&gt;&lt;p&gt;a hole).&amp;nbsp; The latter I implement as drawing in white, but I cannot use that&lt;/p&gt;&lt;p&gt;trick for the apertures.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:74b6e934-f84d-4d20-9b73-3e0e142d35b0] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:08:40 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6477004?tstart=0#6477004</guid>
      <dc:date>2014-06-20T09:08:40Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6476923?tstart=0#6476923</link>
      <description>&lt;!-- [DocumentBodyStart:72e1eee8-f7de-48d4-9197-11827f447caa] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;What you can do to "erase" is clip.&amp;nbsp; (obviously it's not really erasing but hiding), but has the same visual.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:72e1eee8-f7de-48d4-9197-11827f447caa] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:50:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6476923?tstart=0#6476923</guid>
      <dc:date>2014-06-20T08:50:04Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6476854?tstart=0#6476854</link>
      <description>&lt;!-- [DocumentBodyStart:f9cf5d15-2245-4f50-ba73-3d5d34ab152d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Ah - this makes sence.&amp;nbsp; Thank you.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f9cf5d15-2245-4f50-ba73-3d5d34ab152d] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:56:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6476854?tstart=0#6476854</guid>
      <dc:date>2014-06-20T07:56:18Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6476752?tstart=0#6476752</link>
      <description>&lt;!-- [DocumentBodyStart:0d45678f-4c85-4416-8e64-d8faca807c16] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;An implementation is not mandated to use bitmap buffering at any point. It can implement other ways. There is no way to erase in the object model, a deliberate omission to allow flexibility of implementation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If thinking PDF must be passed through a bitmap buffer your view is (understandably) narrow. PDFs are not always rendered to a bitmap as their final result. For example they might be converted to another graphics format, where retaining as much vector information as possible is desirable. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0d45678f-4c85-4416-8e64-d8faca807c16] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:52:44 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6476752?tstart=0#6476752</guid>
      <dc:date>2014-06-20T07:52:44Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6476849?tstart=0#6476849</link>
      <description>&lt;!-- [DocumentBodyStart:10ce186f-5f48-42fb-9b75-868894ff5120] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thank you for the confirmation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does the model used by modern graphic systems support some other method of vectorised erase? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just out of pure curiosity: how does the reader / printer implement transparency groups without some sort of intermediary bitmapped buffer?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;On OpenGL I would antialiase in the fragment shader, use the depth buffer to avoid artifacts on the edges and use a frame buffer object to implement transparency groups.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:10ce186f-5f48-42fb-9b75-868894ff5120] --&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:45:38 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6476849?tstart=0#6476849</guid>
      <dc:date>2014-06-20T07:45:38Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6475383?tstart=0#6475383</link>
      <description>&lt;!-- [DocumentBodyStart:f8472f50-94fd-44af-852e-3ecda6026edf] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You are correct that because of the use of a Union, what you want to accomplish will require that you "segment" your object.&amp;nbsp; This is because you are thinking about transparency as a simple "bitmap" - but that's not the model used by modern graphic systems.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f8472f50-94fd-44af-852e-3ecda6026edf] --&gt;</description>
      <pubDate>Thu, 19 Jun 2014 22:25:45 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6475383?tstart=0#6475383</guid>
      <dc:date>2014-06-19T22:25:45Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How to do multi-stage blending</title>
      <link>https://forums.adobe.com/message/6473854?tstart=0#6473854</link>
      <description>&lt;!-- [DocumentBodyStart:89313253-202a-4bfd-8bae-f57afdf2a088] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I want to do the following blending operation in RGB space:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Within the transparency group (I'm using a Form XObject), the resulting colour is the source colour (i.e. no blending).&amp;nbsp; The resulting alpha is the source alpha.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then I want to blend this form with the page using the standard transparency formula: C_r = (1-a_s)*C_b + a_s*C_s.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For instance, If I draw a solid black circle with alpha 1 and then two thin lines over it (one horizontal and the other vertical), both with alpha 0, I should end up with 4 quadrants.&amp;nbsp; I can then place this group onto the page so that the 4 quadrants are drawn in black on the page and the space where the lines were drawn are transparent, so that the original page contents can be seen through it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this possible in PDF, or do I need to combine the objects into a complex polygon?&amp;nbsp; In my application, alpha is always 0 or 1. Section 7.2.6 of PDF version 1.5, fourth edition, seem to suggest that this is not possible (due to the Union function used to calculate the resulting alpha).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:89313253-202a-4bfd-8bae-f57afdf2a088] --&gt;</description>
      <pubDate>Thu, 19 Jun 2014 17:32:42 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6473854?tstart=0#6473854</guid>
      <dc:date>2014-06-19T17:32:42Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

