@@ 339-377 (lines=39) @@ | ||
336 | /** |
|
337 | * Private Method |
|
338 | */ |
|
339 | function _putresources() { |
|
340 | if (!is_subclass_of($this, 'TCPDF')) { |
|
341 | $this->_putfonts(); |
|
342 | $this->_putimages(); |
|
343 | $this->_putformxobjects(); |
|
344 | //Resource dictionary |
|
345 | $this->offsets[2]=strlen($this->buffer); |
|
346 | $this->_out('2 0 obj'); |
|
347 | $this->_out('<<'); |
|
348 | $this->_putresourcedict(); |
|
349 | $this->_out('>>'); |
|
350 | $this->_out('endobj'); |
|
351 | } else { |
|
352 | $this->_putextgstates(); |
|
353 | $this->_putocg(); |
|
354 | $this->_putfonts(); |
|
355 | $this->_putimages(); |
|
356 | $this->_putshaders(); |
|
357 | $this->_putformxobjects(); |
|
358 | //Resource dictionary |
|
359 | $this->offsets[2]=strlen($this->buffer); |
|
360 | $this->_out('2 0 obj'); |
|
361 | $this->_out('<<'); |
|
362 | $this->_putresourcedict(); |
|
363 | $this->_out('>>'); |
|
364 | $this->_out('endobj'); |
|
365 | $this->_putjavascript(); |
|
366 | $this->_putbookmarks(); |
|
367 | // encryption |
|
368 | if ($this->encrypted) { |
|
369 | $this->_newobj(); |
|
370 | $this->enc_obj_id = $this->n; |
|
371 | $this->_out('<<'); |
|
372 | $this->_putencryption(); |
|
373 | $this->_out('>>'); |
|
374 | $this->_out('endobj'); |
|
375 | } |
|
376 | } |
|
377 | } |
|
378 | ||
379 | function _putxobjectdict() { |
|
380 | parent::_putxobjectdict(); |
@@ 230-271 (lines=42) @@ | ||
227 | /** |
|
228 | * Put resources |
|
229 | */ |
|
230 | function _putresources() { |
|
231 | if (!is_subclass_of($this, 'TCPDF')) { |
|
232 | $this->_putfonts(); |
|
233 | $this->_putimages(); |
|
234 | $this->_putformxobjects(); |
|
235 | $this->_putimportedobjects(); |
|
236 | //Resource dictionary |
|
237 | $this->offsets[2]=strlen($this->buffer); |
|
238 | $this->_out('2 0 obj'); |
|
239 | $this->_out('<<'); |
|
240 | $this->_putresourcedict(); |
|
241 | $this->_out('>>'); |
|
242 | $this->_out('endobj'); |
|
243 | ||
244 | } else { // TCPDF - Part |
|
245 | $this->_putextgstates(); |
|
246 | $this->_putocg(); |
|
247 | $this->_putfonts(); |
|
248 | $this->_putimages(); |
|
249 | $this->_putshaders(); |
|
250 | $this->_putformxobjects(); |
|
251 | $this->_putimportedobjects(); |
|
252 | //Resource dictionary |
|
253 | $this->offsets[2]=strlen($this->buffer); |
|
254 | $this->_out('2 0 obj'); |
|
255 | $this->_out('<<'); |
|
256 | $this->_putresourcedict(); |
|
257 | $this->_out('>>'); |
|
258 | $this->_out('endobj'); |
|
259 | $this->_putjavascript(); |
|
260 | $this->_putbookmarks(); |
|
261 | // encryption |
|
262 | if ($this->encrypted) { |
|
263 | $this->_newobj(); |
|
264 | $this->enc_obj_id = $this->n; |
|
265 | $this->_out('<<'); |
|
266 | $this->_putencryption(); |
|
267 | $this->_out('>>'); |
|
268 | $this->_out('endobj'); |
|
269 | } |
|
270 | } |
|
271 | } |
|
272 | ||
273 | /** |
|
274 | * Private Method that writes the form xobjects |