Branch Coverage

blib/lib/PDF/Reuse.pm
Criterion Covered Total %
branch 215 1474 14.5


line true false branch
194 0 1 unless ($pos)
199 1 0 if ($nyFont) { }
206 0 1 if ($runfil)
209 0 1 if (wantarray) { }
220 0 0 if ($fSize =~ /\d+\.?\d*/o)
222 0 0 if ($runfil)
226 0 0 unless ($pos)
234 0 9 if ($pos)
240 0 9 if (ref $param eq 'HASH') { }
244 0 0 if ($key eq 'name') { }
0 0 elsif ($key eq 'hidetoolbar' or $key eq 'hidemenubar' or $key eq 'hidewindowui' or $key eq 'fitwindow' or $key eq 'centerwindow') { }
257 0 9 if defined $_[1]
258 0 9 if defined $_[2]
259 0 9 if defined $_[3]
260 0 9 if defined $_[4]
261 0 9 if defined $_[5]
264 9 0 if ($filnamn ne '-') { }
266 8 1 if ($ri > 0) { }
268 0 8 $ddir ? :
271 0 1 $ddir ? :
274 8 1 if ($ri > 0) { }
276 0 8 unless (-e $dirdel)
282 0 1 if ($ri > 0)
284 0 0 unless (-e $dirdel)
296 0 9 if ($utfil_ref and $utfil_ref eq 'Apache2::RequestRec' or $utfil_ref eq 'Apache::RequestRec') { }
1 8 elsif ($utfil_ref and $utfil_ref eq 'IO::String') { }
307 0 8 unless open UTFIL, ">$utfil"
314 0 9 if (defined $ldir)
315 0 0 if ($utfil eq "-")
318 0 0 if ($kortNamn) { }
324 0 0 unless open RUNFIL, ">>$runfil"
373 0 9 if ($runfil)
376 0 0 exists $prefs{'hidetoolbar'} ? :
377 0 0 exists $prefs{'hidemenubar'} ? :
378 0 0 exists $prefs{'hidewindowui'} ? :
379 0 0 exists $prefs{'fitwindow'} ? :
380 0 0 exists $prefs{'centerwindow'} ? :
388 0 9 if (defined $stream and length $stream > 0)
410 0 9 if ($runfil and not $noLogg)
415 0 9 unless ($pos)
432 0 7 unless (defined $TxT)
436 0 7 unless ($xPos =~ /\-?[\d\.]+/o and defined $xPos)
439 0 7 unless ($yPos =~ /\-?[\d\.]+/o and defined $yPos)
443 0 7 if ($runfil)
448 7 0 if (length $stream < 3)
453 6 1 unless ($aktuellFont[1])
459 7 0 $font{$fontname} ? :
464 0 7 if (wantarray or $align ne "left")
467 0 0 if ($align eq 'right') { }
0 0 elsif ($align eq 'center') { }
479 0 7 if ($rot) { }
481 0 7 if ($ttfont) { }
7 0 elsif (not $aktuellFont[5]) { }
498 0 0 if ($rot =~ /q(\d)/io)
499 0 0 if ($1 eq '1') { }
0 0 elsif ($1 eq '2') { }
515 0 0 $ttfont ? :
523 0 7 unless ($pos)
528 0 7 if (wantarray) { }
531 0 0 if ($rot == 0) { }
532 0 0 if ($align eq 'left') { }
0 0 elsif ($align eq 'center') { }
0 0 elsif ($align eq 'right') { }
559 0 0 if ($runfil)
564 0 0 unless ($pos)
578 1 0 if (ref $param eq 'HASH') { }
606 1 0 if (ref $infil)
609 0 1 if (ref $infil eq 'SCALAR') { }
614 1 0 if $infil->can("seek")
627 1 0 if (not exists $form{$fSource}) { }
632 0 1 if ($effect eq 'load') { }
639 1 0 if ($refNr) { }
643 0 0 if ($tolerant) { }
0 0 elsif (not defined $refNr) { }
644 0 0 if (defined $refNr and $refNr eq '0') { }
662 0 0 if (exists $knownToFile{$fSource}) { }
670 0 0 if (exists $objRef{$namn}) { }
674 0 0 if (not $form{$fSource}[8]) { }
0 0 elsif ($effect ne 'load') { }
677 0 0 if ($tolerant) { }
691 1 0 if $refNr
692 1 0 if ($effect eq "print" and $form{$fSource}[8] and $refNr)
693 1 0 unless (defined $defGState)
697 0 1 if ($adjust) { }
0 1 elsif ($x or $y or $rotate or $size != 1 or $xsize != 1 or $ysize != 1) { }
721 0 1 if ($runfil)
726 0 1 unless ($pos)
729 0 1 if ($effect ne "print" and $effect ne "add")
732 0 1 if (wantarray) { }
734 0 0 if (exists $form{$fSource}[3])
752 0 2 unless ($pos)
772 8 0 if (not exists $fontSource{$Font}) { }
773 1 7 if (exists $stdFont{$Font}) { }
777 8 0 unless (exists $font{$Font})
792 0 0 if (defined $font{$Font}[0]) { }
795 0 0 if ($fontSource{$Font}[4] eq 'Standard') { }
813 0 0 if (not $fontSource{$Font}[3]) { }
830 0 8 unless ($pos)
839 0 9 if ($checkCs)
843 0 9 if ($compress and length $stream > 99)
845 0 0 if (length $output > 25 and length $output < length $stream)
851 0 9 unless ($parents[0])
861 0 9 if ($interAktivSida)
871 7 2 if (scalar %sidFont)
880 2 7 if (scalar %sidXObject)
887 2 7 if (scalar %sidExtGState)
894 0 9 if (scalar %sidPattern)
901 0 9 if (scalar %sidShading)
908 0 9 if (scalar %sidColorSpace)
919 0 9 if (exists $resurser{$resursDict}) { }
924 9 0 if (keys %resurser < 10)
934 0 9 if (not $touchUp) { }
943 0 0 if (defined $resursObjekt)
953 0 0 if (not $compressFlag) { }
969 0 0 unless (defined $confuseObj)
989 9 0 if (not $compressFlag) { }
1016 0 0 if (@annots or %links and $links{'-1'} and @{$links{'-1'};} or %links and $links{$tSida} and @{$links{$tSida};})
1021 0 9 if (defined $AAPageSaved)
1031 0 9 if ($counts[0] > 9)
1037 0 9 unless ($pos)
1040 9 0 if ($stream)
1044 0 9 if ($docProxy)
1048 0 0 if ($obj->isa("Text::PDF::TTFont0"))
1049 0 0 if (my $font = delete $obj->{' font'})
1062 0 9 unless (defined $objekt[$objNr])
1067 0 9 if (defined $NamesSaved) { }
0 9 elsif (scalar %fields or scalar @jsfiler) { }
1073 0 9 if (defined $AARootSaved)
1076 0 9 if (scalar @inits or scalar %fields)
1081 0 9 if (defined $AcroFormSaved)
1085 0 9 if (scalar @bookmarks)
1089 0 9 if (scalar %prefs)
1091 0 0 if (exists $prefs{'hidetoolbar'})
1092 0 0 $prefs{'hidetoolbar'} ? :
1095 0 0 if (exists $prefs{'hidemenubar'})
1096 0 0 $prefs{'hidemenubar'} ? :
1099 0 0 if (exists $prefs{'hidewindowui'})
1100 0 0 $prefs{'hidewindowui'} ? :
1103 0 0 if (exists $prefs{'fitwindow'})
1104 0 0 $prefs{'fitwindow'} ? :
1107 0 0 if (exists $prefs{'centerwindow'})
1108 0 0 $prefs{'centerwindow'} ? :
1131 9 0 if ($idTyp ne "None")
1143 0 9 if ($runfil)
1144 0 0 if ($log)
1172 0 0 unless ($parents[$j])
1205 0 0 if (defined $parents[$i])
1215 0 0 if ($parents[$j])
1248 2 0 if (-e $fil)
1250 0 2 if ($cid) { }
1252 0 0 if ($cid eq $tStamp)
1260 0 0 if ($cid)
1262 0 0 if (-e $fil2)
1270 0 9 if ($idTyp eq 'rep') { }
0 9 elsif ($idTyp eq 'add') { }
1271 0 0 unless (defined $id)
1298 0 0 unless (defined $string)
1302 0 0 if (length $string == 0)
1306 0 0 if (my($width) = ttfStrWidth($string, $Font, $FontSize))
1310 0 0 unless ($Font)
1311 0 0 unless ($aktuellFont[2])
1317 0 0 unless (exists $PDF::Reuse::Util::font_widths{$Font})
1318 0 0 if (exists $stdFont{$Font})
1321 0 0 unless (exists $PDF::Reuse::Util::font_widths{$Font})
1326 0 0 if (ref $PDF::Reuse::Util::font_widths{$Font} eq 'ARRAY') { }
1341 0 0 unless @_
1346 0 0 if (not $ttfont and $font{$selector})
1349 0 0 if $ttfont
1352 0 0 unless ($ttfont)
1383 0 0 if (wantarray) { }
1403 0 0 if $font{$selector}
1405 0 0 if ($font{$name}[1] eq $selector or $font{$name}[6] and $font{$name}[6]->filename eq $selector)
1418 0 0 unless my $ttfont = findTTFont($selector)
1437 0 0 unless my $obj = shift()
1458 0 0 if (my($tail, $rest) = $data =~ /\A(.*?\nendobj\n)(.*)\z/s) { }
1478 0 0 unless defined $self->{' objects'}{$obj->uid}
1494 0 0 if $self->{'>done'}{$id}
1540 0 0 unless my $font = $self->{'ttfont'}{' font'}
1541 0 0 unless my $obj = $font->{'name'}
1542 0 0 unless my $name = $obj->read->find_name(4)
3087 0 0 unless (defined $pageNumber)
3089 0 0 unless defined $behandlad{$infil}{'pageNumber'}
3094 0 0 if ($Names or $AARoot or $AcroForm)
3100 0 0 if (defined $sida)
3103 0 0 if ($runfil)
3107 0 0 unless ($pos)
3119 0 0 if (ref $param eq 'HASH') { }
3138 0 0 unless ($pos)
3142 0 0 if ($runfil)
3147 0 0 if ($link{'v'})
3160 0 0 if (exists $links{$link->{'v'}}) { }
3168 0 0 if ($link->{'s'} eq 'GoTo') { }
0 0 elsif ($link->{'s'} eq 'GoToA') { }
0 0 elsif ($link->{'s'} eq 'Launch') { }
0 0 elsif ($link->{'s'} eq 'SubmitForm') { }
0 0 elsif ($link->{'s'} eq 'Named') { }
0 0 elsif ($link->{'s'} eq 'JavaScript') { }
3193 0 0 if (exists $links{$rad}) { }
3222 0 0 unless (ref $param)
3225 0 0 unless (ref $param)
3228 0 0 unless ($pos)
3231 0 0 if (ref $param eq 'HASH') { }
3237 0 0 if ($runfil)
3250 0 0 if (defined $objekt[$objNr])
3260 0 0 if ($i == 0)
3263 0 0 if ($i == $number)
3266 0 0 if ($i < $number)
3269 0 0 if ($i > 0)
3285 0 0 if (defined $first)
3288 0 0 if (defined $last)
3301 0 0 unless (exists $entry{'close'})
3305 0 0 if (exists $entry{'kids'})
3306 0 0 if (ref $entry{'kids'} eq 'ARRAY') { }
3312 0 0 if ($i == 0)
3315 0 0 if ($i == $number)
3319 0 0 if ($i < $number)
3322 0 0 if ($i > 0)
3325 0 0 if (exists $entry{'close'})
3347 0 0 if (exists $entry{'text'})
3351 0 0 if (defined $jsObj)
3354 0 0 if (exists $entry{'act'})
3356 0 0 if ($code =~ /(\d+)/so)
3362 0 0 if (exists $entry{'previous'})
3365 0 0 if (exists $entry{'next'})
3368 0 0 if (defined $first)
3371 0 0 if (defined $last)
3374 0 0 if ($count != $totalCount)
3378 0 0 if (exists $entry{'color'})
3381 0 0 if (exists $entry{'style'})
3403 0 0 if ($docProxy)
3405 0 0 if ($obj->isa("Text::PDF::TTFont0"))
3406 0 0 if (my $font = delete $obj->{' font'})
3428 0 0 if ($exit)
3446 0 0 if (ref $param eq 'HASH') { }
3479 0 0 unless (exists $image{$iSource})
3487 0 0 unless (exists $form{$fSource})
3489 0 0 if ($refNr) { }
0 0 elsif (defined $refNr and $refNr eq '0') { }
3503 0 0 if (exists $knownToFile{'Ig:' . $iSource}) { }
3511 0 0 if (not exists $objRef{$inamn}) { }
3522 0 0 if ($effect eq "print" and $refNr)
3523 0 0 unless (defined $defGState)
3528 0 0 if ($adjust) { }
3543 0 0 if ($runfil)
3548 0 0 unless ($pos)
3552 0 0 if (wantarray) { }
3563 0 0 defined $_[0] ? :
3564 0 0 defined $_[0] ? :
3565 0 0 defined $_[0] ? :
3566 0 0 defined $_[0] ? :
3568 0 0 if (defined $lx and $lx =~ /^[\d\-\.]+$/o)
3570 0 0 if (defined $ly and $ly =~ /^[\d\-\.]+$/o)
3572 0 0 if (defined $ux and $ux =~ /^[\d\-\.]+$/o)
3574 0 0 if (defined $uy and $uy =~ /^[\d\-\.]+$/o)
3576 0 0 if ($runfil)
3579 0 0 unless ($pos)
3587 0 0 if ($interAktivSida or $interActive) { }
0 0 elsif (not $pos) { }
3594 0 0 if ($fieldValue =~ /^\s*js\s*\:(.*)/io)
3598 0 0 unless (exists $initScript{$_})
3603 0 0 if ($runfil)
3622 0 0 if ($xPos and $yPos)
3626 0 0 if ($runfil)
3629 0 0 unless ($pos)
3642 0 0 if ($name =~ m[^/(\w+)]o)
3646 0 0 if (exists $knownToFile{$fullName}) { }
3650 0 0 if ($runfil)
3653 0 0 unless ($pos)
3657 0 0 unless (exists $form{$form . '_' . $page})
3661 0 0 if ($name)
3673 0 0 if (ref $param eq 'HASH') { }
3686 0 0 if ($Names or $AARoot or $AcroForm)
3692 0 0 if ($runfil)
3696 0 0 unless ($pos)
3708 0 1 if (ref $param eq 'HASH') { }
3739 1 0 if (not exists $form{$fSource}) { }
3743 0 1 if ($effect eq 'load') { }
3750 1 0 if ($refNr) { }
3754 0 0 if ($tolerant) { }
0 0 elsif (not defined $refNr) { }
3755 0 0 if (defined $refNr and $refNr eq '0') { }
3773 0 0 if (exists $knownToFile{$fSource}) { }
3781 0 0 if (exists $objRef{$namn}) { }
3785 0 0 if (not $form{$fSource}[8]) { }
0 0 elsif ($effect ne 'load') { }
3788 0 0 if ($tolerant) { }
3802 1 0 if $refNr
3803 1 0 if ($effect eq "print" and $form{$fSource}[8] and $refNr)
3804 0 1 if (not defined $interActive and $sidnr == 1 and %{$intAct{$fSource}[0];})
3810 1 0 unless (defined $defGState)
3813 0 1 if ($adjust) { }
0 1 elsif ($x or $y or $rotate or $size != 1 or $xsize != 1 or $ysize != 1) { }
3836 0 1 if ($runfil)
3841 0 1 unless ($pos)
3844 0 1 if ($effect ne "print" and $effect ne "add")
3847 0 1 if (wantarray) { }
3849 0 0 if (exists $form{$fSource}[3])
3863 0 0 if $size == 0
3864 0 0 if $xsize == 0
3865 0 0 if $ysize == 0
3869 0 0 if ($rotate)
3870 0 0 if ($rotate =~ /q(\d)/io) { }
3872 0 0 if ($tal == 1) { }
0 0 elsif ($tal == 2) { }
3916 0 0 if ($how == 1)
3917 0 0 if ($scaleX < $scaleY) { }
3930 0 0 unless ($pos)
3945 0 0 if ($runfil)
3950 0 0 unless ($pos)
3958 0 0 if ($iColorType =~ /Gray/i) { }
3965 0 0 unless ($pos)
3969 0 0 if (not $iFormat) { }
0 0 elsif ($iFormat == 1) { }
3971 0 0 if ($iFile)
3977 0 0 unless open BILDFIL, "<$iFile"
3981 0 0 $altArrayObjNr ? :
3988 0 0 if ($runfil)
4002 0 0 $altArrayObjNr ? :
4008 0 0 if ($runfil)
4010 0 0 unless $iFormat
4011 0 0 if $iFormat == 1
4015 0 0 unless ($pos)
4024 0 0 if (my $value = $objRef{$_}) { }
0 0 elsif ($_ eq 'Gs0' and not defined $defGState) { }
4026 0 0 if ($typ eq 'Ft') { }
0 0 elsif ($typ eq 'Gs') { }
0 0 elsif ($typ eq 'Pt') { }
0 0 elsif ($typ eq 'Sh') { }
0 0 elsif ($typ eq 'Cs') { }
4061 0 0 if ($runfil)
4064 0 0 unless ($pos)
4077 0 0 if (exists $font{$Font}) { }
4112 0 0 unless ($pos)
4176 0 0 if ($runfil)
4184 0 0 if ($runfil)
4193 0 0 if ($runfil)
4196 0 0 unless ($pos)
4205 0 0 if (not $filNamnIn =~ /\{/so) { }
4208 0 0 if ($runfil and $checkId and $checkId ne $checkIdOld)
4216 0 0 if ($runfil)
4220 0 0 if ($interAktivSida or $interActive) { }
0 0 elsif (not $pos) { }
4235 0 0 unless (exists $initScript{$_})
4239 0 0 if ($duplicate)
4243 0 0 if ($runfil)
4247 0 0 if ($interAktivSida or $interActive) { }
0 0 elsif (not $pos) { }
4262 0 0 if ($vers ne $VERSION) { }
4283 0 0 if ($runfil) { }
4301 0 0 if ($dir eq ".")
4303 0 0 unless (-e $dir)
4307 0 0 if (-e $dir and -d $dir) { }
4308 0 0 if (substr($dir, length $dir, 1) eq '/') { }
4321 0 0 if ($runfil)
4324 0 0 unless ($pos)
4332 0 0 if ($runfil)
4335 0 0 unless ($pos)
4357 2 0 if ($res)
4359 0 2 if ($buf =~ /Encrypt/o)
4362 2 0 if ($buf =~ /\bstartxref$ws+(\d+)/)
4364 2 0 if ($xref <= $bytes) { }
4369 0 2 if ($buf =~ /^\d+$ws+\d+$ws+obj/so) { }
4375 2 0 if ($tempRoot and not $Root)
4386 0 2 unless $Root
4400 12 2 unless ($_ =~ /^xref/o)
4401 0 12 if ($saved == 0) { }
4421 0 0 if ($buf =~ /^(.+>>$ws*)stream/so)
4424 0 0 if (substr($buf, $from, 1) eq "\n")
4431 0 0 if ($_ =~ /^(\w+)(.*)/o)
4435 0 0 unless (exists $param{'Index'})
4438 0 0 if (exists $param{'Root'} and $param{'Root'} =~ /^$ws*(\d+)/o)
4448 0 0 if (exists $param{'Length'} and $param{'Length'} =~ /(\d+)/o)
4455 0 0 unless $status == 1
4469 0 0 if ($_ != 0 and $i > 0 and $i < $upTo)
4471 0 0 if ($tal > 255)
4477 0 0 if (length $word[$i] == 1)
4482 0 0 if ($i == $recLength)
4486 0 0 if ($keys[0] == 0) { }
4501 0 0 if ($recTyp == 1) { }
0 0 elsif ($recTyp == 2) { }
4502 0 0 if (not exists $oldObject{$currObj}) { }
4510 0 0 unless (exists $oldObject{$currObj})
4515 0 0 if ($currObj < $max) { }
4537 2 0 if ($buf =~ /xref/) { }
4560 2 0 if ($inrad =~ /^(\d+)\s+(\d+)/o)
4568 14 0 if ($inrad =~ /^\s?(\d+) \d+ (\w)\s*/o)
4569 12 2 if ($2 eq "n")
4570 12 0 if (not exists $oldObject{$i}) { }
4592 0 2 if ($inrad =~ /^(\d+)\s+(\d+)/o)
4601 0 10 if ($buf =~ /Encrypt/o)
4604 2 8 if (not $root and $buf =~ m[\/Root$ws+(\d+)$ws+\d+$ws+R]so)
4606 0 2 if ($xref)
4610 0 10 if (not $xref and $buf =~ m[\/Prev$ws+(\d+)\D]so)
4612 0 0 if ($root)
4616 2 8 if ($buf =~ /xref/so)
4619 0 2 if ($inrad =~ /trailer/o and not $root and $inrad =~ m[\/Root\s+(\d+)\s{1,2}\d+\s{1,2}R]so)
4621 0 0 if ($xref)
4636 14 0 if ($offs) { }
0 0 elsif (exists $unZipped{$nr}) { }
0 0 elsif ($embedded) { }
4639 2 12 if ($noId and $noEnd) { }
0 12 elsif ($noId) { }
4640 2 0 if ($buf =~ /^\d+$ws+\d+$ws+obj$ws*(.*)endobj/so)
4641 0 2 if (wantarray) { }
4650 0 0 if ($buf =~ /^\d+$ws+\d+$ws+obj$ws*(.*)/so)
4651 0 0 if (wantarray) { }
4659 6 6 if (wantarray) { }
4672 0 0 if ($noEnd) { }
4673 0 0 if (wantarray) { }
4681 0 0 if (wantarray) { }
4694 0 0 if (defined $objData[2]) { }
4702 0 0 if ($offs) { }
0 0 elsif (exists $unZipped{$nr}) { }
0 0 elsif ($embedded) { }
4705 0 0 if ($buf =~ /^\d+$ws+\d+$ws+obj$ws*(.*)/so)
4725 0 0 if ($offs) { }
4734 0 0 if ($buf =~ m(^(\d+$ws+\d+$ws+obj$ws*<<[\w\d\/\s\[\]<>]+)stream\b)so)
4737 0 0 if (substr($buf, $offs, 1) eq "\n")
4742 0 0 if ($_ =~ /^(\w+)(.*)/o)
4750 0 0 unless $status == 1
4760 0 0 if ($oOffsets[$k]) { }
4796 0 0 if ($ldir and $checkId and $checkId ne $checkidOld)
4802 2 0 unless defined $behandlad{$infil}{'old'}
4804 2 0 unless defined $processed{$infil}{'oldObject'}
4806 2 0 unless defined $processed{$infil}{'unZipped'}
4808 2 0 if ($action eq 'print') { }
4819 0 2 exists $processed{$infil}{'root'} ? :
4823 0 2 unless open INFIL, "<$infil"
4826 2 0 unless ($root)
4836 2 0 if ($sidnr == 1)
4837 0 2 if ($objektet =~ m[/AcroForm($ws+\d+$ws+\d+$ws+R)]so)
4840 0 2 if ($objektet =~ m[/Names$ws+(\d+)$ws+\d+$ws+R]so)
4846 0 2 if ($objektet =~ m[/AA$ws*\<\<$ws*[^\>]+[^\>]+]so)
4854 0 0 if ($ord[$i] =~ /\S+/so)
4855 0 0 if ($ord[$i] =~ /<
4857 0 0 if ($ord[$i] =~ />>/so)
4859 0 0 if ($k == 0)
4870 2 0 if ($objektet =~ m[/Pages$ws+(\d+)$ws+\d+$ws+R]so) { }
4872 2 0 if ($objektet =~ m[/Count$ws+(\d+)]so)
4874 2 0 if ($sidnr <= $sidor) { }
4880 0 2 if ($sidor > 1)
4884 0 0 if ($type eq "docform")
4893 2 0 if ($objektet =~ m(/Kids$ws*\[([^\]]+))so)
4908 0 2 if ($objektet =~ m[/Count$ws+(\d+)]so) { }
4909 0 0 if ($sidAcc + $1 < $sidnr) { }
4913 0 0 if ($objektet =~ m(/Kids$ws*\[([^\]]+))so)
4922 2 0 if ($sidAcc == $sidnr)
4927 0 2 if ($bryt1 > $sidnr or $bryt2 > $sidnr)
4934 2 0 if ($sidor == 1)
4939 0 2 if ($objektet =~ m[/Annots$ws*([^\/]+)]so)
4945 0 2 if ($objektet =~ m[/AA$ws*\<\<$ws*[^\>]+[^\>]+]so)
4953 0 0 if ($ord[$i] =~ /\S+/s)
4954 0 0 if ($ord[$i] =~ /<
4956 0 0 if ($ord[$i] =~ />>/s)
4958 0 0 if ($k == 0)
4968 2 0 if (defined $formBox[0]) { }
4973 2 0 if (defined $formBox[1]) { }
4978 2 0 if (defined $formBox[2]) { }
4983 2 0 if (defined $formBox[3]) { }
4990 2 0 if ($formCont) { }
4998 2 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj$ws*<<)(.+)(>>$ws*stream)/so) { }
5009 2 0 if ($action eq "print")
5016 2 0 if ($res)
5018 2 0 if ($action eq "print")
5045 0 4 if ($objektet =~ /^(\d+$ws+\d+$ws+obj$ws*<<)(.+)(>>$ws*stream)/so) { }
5052 0 0 if ($del1 =~ m[/Subtype$ws*/Image]so)
5057 0 0 if ($del1 =~ m[/Width$ws+(\d+)]so)
5059 0 0 if ($del1 =~ m[/Height$ws+(\d+)]so)
5063 0 0 if ($res)
5065 0 0 if ($action eq "print")
5073 4 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj$ws*)/so) { }
5082 2 2 if ($res)
5084 0 4 if ($objektet =~ m[/Subtype$ws*/Image]so) { }
2 2 elsif ($objektet =~ m[/BaseFont$ws*/([^\s\/]+)]so) { }
5091 0 0 if ($del1 =~ m[/Width$ws+(\d+)]so)
5094 0 0 if ($del1 =~ m[/Height$ws+(\d+)]so)
5101 2 0 if (not exists $font{$Font} and $action)
5108 0 2 if ($objektet =~ m[/Subtype$ws*/Type0]so)
5111 2 0 if ($action eq "print")
5118 4 0 if ($action eq "print")
5123 4 0 if ($action eq "print")
5139 4 2 unless (defined $$robj->[4])
5140 2 2 if (defined $$robj->[3]) { }
5145 0 6 if (defined $$robj->[0][2] and not exists $$ref->[0]{$$robj->[0][2]})
5149 2 0 if (scalar @kids)
5152 2 0 if (scalar @nokids)
5156 0 2 if ($action ne "print")
5165 2 0 if ($sidor == 1)
5170 0 2 if (defined $Names)
5174 0 2 if (defined $AcroForm)
5178 0 2 if (defined $AARoot)
5182 0 2 if (defined $AAPage)
5186 0 2 if (defined $Annots)
5188 0 0 if ($Annots =~ /\[([^\[\]]*)\]/so) { }
5193 0 0 if ($Annots =~ /\b(\d+)$ws+\d+$ws+R\b/so)
5211 0 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj$ws*<<)(.+)(>>$ws*stream)/so) { }
5218 0 0 if ($res)
5222 0 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj)/so)
5228 0 0 if ($res)
5236 0 0 if (defined $$robj->[0][2] and not exists $$ref->[0]{$$robj->[0][2]})
5254 0 4 if (exists $old{$1}) { }
5271 2 2 if ($obj =~ /MediaBox$ws*\[$ws*([\-\.\d]+)$ws+([\-\.\d]+)$ws+([\-\.\d]+)$ws+([\-\.\d]+)/so)
5278 2 2 if ($obj =~ m[/Contents$ws+(\d+)]so) { }
0 2 elsif ($obj =~ m(/Contents$ws*\[$ws*(\d+)$ws+\d+$ws+R$ws*\])so) { }
5281 0 2 if ($cObj =~ /^$ws*\[[^\]]+\]$ws*$/so) { }
5294 2 2 if ($obj =~ m[^(.+/Resources)]so)
5295 2 0 if ($obj =~ /Resources($ws+\d+$ws+\d+$ws+R)/so) { }
5308 0 0 if ($ord[$i] =~ /\S+/s)
5309 0 0 if ($ord[$i] =~ /<
5311 0 0 if ($ord[$i] =~ />>/s)
5313 0 0 if ($k == 0)
5337 0 0 unless defined $behandlad{$infil}{'old'}
5339 0 0 unless defined $processed{$infil}{'oldObject'}
5341 0 0 unless defined $processed{$infil}{'unZipped'}
5347 0 0 if ($form{$fSource}[7] != $stati[9])
5350 0 0 if ($checkId)
5351 0 0 if ($checkId ne $stati[9])
5359 0 0 if ($ldir)
5363 0 0 unless open INFIL, "<$infil"
5371 0 0 if (defined $old{$key} and $objekt[$old{$key}])
5375 0 0 unless (defined $old{$key})
5383 0 0 if ($typ eq "Font")
5385 0 0 unless (defined $font{$Font}[1])
5392 0 0 if (not defined $$del2) { }
5405 0 0 if (defined $old{$key} and $objekt[$old{$key}])
5409 0 0 unless (defined $old{$key})
5420 0 0 if (defined $$del2) { }
5427 0 0 if ($typ and $typ eq "Font")
5429 0 0 unless (defined $font{$Font}[1])
5445 0 0 unless (defined $key)
5449 0 0 if (exists $old{$key})
5487 0 0 unless (defined $key)
5497 0 0 unless defined $behandlad{$infil}{'old'}
5499 0 0 unless defined $processed{$infil}{'oldObject'}
5501 0 0 unless defined $processed{$infil}{'unZipped'}
5509 0 0 if ($form{$fSource}[7] != $stati[9])
5513 0 0 if (exists $old{$key})
5517 0 0 unless open INFIL, "<$infil"
5532 0 0 if (defined $$del2) { }
5552 0 0 if (defined $$del2) { }
5582 0 0 unless defined $behandlad{$infil}{'old'}
5584 0 0 unless defined $processed{$infil}{'oldObject'}
5586 0 0 unless defined $processed{$infil}{'unZipped'}
5593 0 0 if ($form{$fSource}[7] != $stati[9])
5598 0 0 unless open INFIL, "<$infil"
5604 0 0 if ($intAct{$fSource}[1] or scalar @jsfiler or scalar @inits or scalar %fields)
5612 0 0 if (defined $intAct{$fSource}[2])
5616 0 0 if (defined $intAct{$fSource}[3])
5621 0 0 if (defined $intAct{$fSource}[6])
5625 0 0 if (defined $intAct{$fSource}[4])
5644 0 0 if (defined $oD->[2]) { }
5647 0 0 if (defined $oD->[3])
5656 0 0 if (defined $oD->[3])
5683 0 0 unless defined $behandlad{$infil}{'old'}
5685 0 0 unless defined $processed{$infil}{'oldObject'}
5687 0 0 unless defined $processed{$infil}{'unZipped'}
5697 0 0 if ($form{$fSource}[7] != $stati[9])
5700 0 0 if ($checkId)
5701 0 0 if ($checkId ne $stati[9])
5709 0 0 if ($ldir)
5713 0 0 unless open INFIL, "<$infil"
5722 0 0 unless ($formRes =~ /<<.*>>/so)
5723 0 0 if ($formRes =~ /\b(\d+)$ws+\d+$ws+R/o) { }
5735 0 0 if ($str =~ /$namn$ws+(\d+)$ws+\d+$ws+R/s)
5740 0 0 unless (defined $key)
5752 0 0 if ($str =~ /$namn$ws+(\d+)$ws+\d+$ws+R/s)
5757 0 0 unless $key
5769 0 0 if ($resType eq 'Font') { }
0 0 elsif ($resType eq 'ColorSpace') { }
0 0 elsif ($resType eq 'Pattern') { }
0 0 elsif ($resType eq 'Shading') { }
0 0 elsif ($resType eq 'ExtGState') { }
0 0 elsif ($resType eq 'XObject') { }
5771 0 0 if ($$del1 =~ m[/BaseFont$ws*/([^\s\/]+)]so) { }
5773 0 0 unless (exists $font{$extNamn})
5778 0 0 if ($del1 =~ m[/Subtype$ws*/Type0]so)
5814 0 0 if (defined $form{$fSource}[0]{$nr}[5]) { }
5827 0 0 if (defined $$del2) { }
5849 0 0 if defined $kids
5851 0 0 if (defined $$del2) { }
5880 0 0 unless defined $behandlad{$infil}{'old'}
5882 0 0 unless defined $processed{$infil}{'oldObject'}
5884 0 0 unless defined $processed{$infil}{'unZipped'}
5893 0 0 if ($form{$fSource}[7] != $stati[9])
5896 0 0 if ($checkId)
5897 0 0 if ($checkId ne $stati[9])
5905 0 0 if ($ldir)
5911 0 0 unless open INFIL, "<$infil"
5920 0 0 if (exists $old{$key}) { }
5927 0 0 if ($typ eq 'Font') { }
0 0 elsif ($typ eq 'ColorSpace') { }
0 0 elsif ($typ eq 'Pattern') { }
0 0 elsif ($typ eq 'Shading') { }
0 0 elsif ($typ eq 'ExtGState') { }
0 0 elsif ($typ eq 'XObject') { }
5929 0 0 if ($$del1 =~ m[/BaseFont$ws*/([^\s\/]+)]so) { }
5935 0 0 if ($del1 =~ m[/Subtype$ws*/Type0]so)
5938 0 0 unless (defined $fontSource{$extNamn}[4])
5972 0 0 if (defined $form{$fSource}[0]{$nr}[5]) { }
5983 0 0 if defined $kids
5985 0 0 if (defined $$del2) { }
6008 0 0 if defined $kids
6011 0 0 if (defined $$del2) { }
6044 0 0 unless defined $behandlad{$infil}{'old'}
6046 0 0 unless defined $processed{$infil}{'oldObject'}
6048 0 0 unless defined $processed{$infil}{'unZipped'}
6054 0 0 exists $processed{$infil}{'root'} ? :
6062 0 0 if ($ldir and $checkId and $checkId ne $checkIdOld)
6067 0 0 unless open INFIL, "<$infil"
6070 0 0 unless ($root)
6081 0 0 if (not $interActive || $to and $from == 1)
6082 0 0 if ($objektet =~ m[/AcroForm($ws+\d+$ws+\d+$ws+R)]so)
6085 0 0 if ($objektet =~ m[/Names$ws+(\d+)$ws+\d+$ws+R]so)
6088 0 0 if (scalar %fields or scalar @jsfiler or scalar @inits) { }
0 0 elsif ($Names) { }
6098 0 0 if ($objektet =~ m[/AA($ws+\d+$ws+\d+$ws+R)]so) { }
0 0 elsif ($objektet =~ m[/AA$ws*\<\<$ws*[^\>]+[^\>]+]so) { }
6108 0 0 if ($ord[$i] =~ /\S+/so)
6109 0 0 if ($ord[$i] =~ /<
6111 0 0 if ($ord[$i] =~ />>/so)
6113 0 0 if ($k == 0)
6125 0 0 if ($objektet =~ m[/Pages$ws+(\d+)$ws+\d+$ws+R]so) { }
6128 0 0 if ($objektet =~ m[/Count$ws+(\d+)]so)
6139 0 0 if ($objektet =~ m(/Kids$ws*\[([^\]]+))so)
6149 0 0 if (scalar @{$levels[$li];}) { }
6152 0 0 if ($objektet =~ m(/Kids$ws*\[([^\]]+))so) { }
6157 0 0 unless $kids{$1}
6159 0 0 if (@sObj)
6166 0 0 if ($sidAcc >= $from)
6167 0 0 if ($to) { }
6168 0 0 if ($sidAcc <= $to) { }
6190 0 0 if (defined $AcroForm)
6193 0 0 if (defined $AARoot)
6205 0 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj$ws*<<)(.+)(>>$ws*stream)/so) { }
6217 0 0 if ($objektet =~ /^(\d+$ws+\d+$ws+obj)/so)
6231 0 0 if (not $singlePage) { }
6235 0 0 if ($extraherade) { }
6250 0 0 if (defined $stream and length $stream > 0)
6252 0 0 if ($checkCs)
6260 0 0 if ($compress and length $stream > 99) { }
6262 0 0 if (length $output > 25 and length $output < length $stream)
6286 0 0 if ($obj =~ m[/Contents$ws+(\d+)$ws+\d+$ws+R]so)
6288 0 0 if ($cObj =~ /^$ws*\[[^\]]+\]$ws*$/so)
6296 0 0 if ($from and $to)
6307 0 0 if ($resources =~ /$ws+(\d+)$ws+\d+$ws+R/so)
6311 0 0 if ($i > 7)
6314 0 0 if ($resources =~ /$ws*\<\<(.*)\>\>/so)
6318 0 0 unless ($resources =~ m[/ProcSet])
6327 0 0 if (scalar %sidFont)
6328 0 0 if ($resources =~ m[/Font$ws+(\d+)$ws+\d+$ws+R]so)
6334 0 0 if (scalar %sidXObject)
6335 0 0 if ($resources =~ m[/XObject$ws+(\d+)$ws+\d+$ws+R]so)
6341 0 0 if (scalar %sidExtGState)
6342 0 0 if ($resources =~ m[/ExtGState$ws+(\d+)$ws+\d+$ws+R]so)
6348 0 0 if (scalar %sidPattern)
6349 0 0 if ($resources =~ m[/Pattern$ws+(\d+)$ws+\d+$ws+R]so)
6355 0 0 if (scalar %sidShading)
6356 0 0 if ($resources =~ m[/Shading$ws+(\d+)$ws+\d+$ws+R]so)
6362 0 0 if (scalar %sidColorSpace)
6363 0 0 if ($resources =~ m[/ColorSpace$ws+(\d+)$ws+\d+$ws+R]so)
6379 0 0 if (scalar %sidFont)
6384 0 0 if (not $resources =~ m[\/Font]so) { }
6392 0 0 if (scalar %sidXObject)
6397 0 0 if (not $resources =~ m[\/XObject]so) { }
6405 0 0 if (scalar %sidExtGState)
6410 0 0 if (not $resources =~ m[\/ExtGState]so) { }
6418 0 0 if (scalar %sidPattern)
6423 0 0 if (not $resources =~ m[\/Pattern]so) { }
6431 0 0 if (scalar %sidShading)
6436 0 0 if (not $resources =~ m[\/Shading]so) { }
6444 0 0 if (scalar %sidColorSpace)
6449 0 0 if (not $resources =~ m[\/ColorSpace]so) { }
6457 0 0 if (exists $resurser{$resources}) { }
6462 0 0 if (keys %resurser < 10)
6482 0 0 unless ($parents[0])
6488 0 0 if ($sidObjNr and not defined $objekt[$sidObjNr]) { }
6498 0 0 if ($obj =~ m[/Parent$ws+(\d+)$ws+\d+$ws+R\b]so)
6502 0 0 if ($obj =~ /^\d+$ws+\d+$ws+obj$ws*<<(.+)>>$ws*endobj/so)
6506 0 0 if (%links)
6508 0 0 if (%links and $links{'-1'} and @{$links{'-1'};} or %links and $links{$tSida} and @{$links{$tSida};})
6509 0 0 if ($del1 =~ m[/Annots$ws*([^\/\<\>]+)]so)
6512 0 0 if ($Annots =~ /\[([^\[\]]*)\]/so) { }
6515 0 0 if ($Annots =~ /\b(\d+)$ws+\d+$ws+R\b/so)
6528 0 0 unless ($taInterAkt)
6534 0 0 unless ($del1 =~ m[/Resources]o)
6538 0 0 if (defined $streamObjekt)
6539 0 0 if ($del1 =~ m[/Contents$ws+(\d+)$ws+\d+$ws+R]so) { }
0 0 elsif ($del1 =~ m(/Contents$ws*\[)so) { }
6551 0 0 if ($Annots)
6556 0 0 if (defined $del2) { }
6568 0 0 if ($counts[0] > 9)
6580 0 0 if ($p < 0) { }
0 0 elsif ($pObj =~ m[/Resources($ws+\d+$ws+\d+$ws+R)]so) { }
6595 0 0 if ($c eq "<" or $c eq ">")
6597 0 0 if ($c eq '<') { }
6603 0 0 if $k == 0
6607 0 0 if ($i != $t)
6614 0 0 if (wantarray) { }
6624 0 0 if (exists $old{$1}) { }
6642 0 0 if ($namnObj)
6643 0 0 if ($iForm) { }
6646 0 0 if ($objektet =~ /<<(.+)>>/sog)
6648 0 0 if ($objektet =~ s[/JavaScript$ws+(\d+)$ws+\d+$ws+R][]os)
6656 0 0 if ($obj =~ m(/Kids$ws*\[([^]]+))sog)
6663 0 0 if ($obj =~ m(/Names$ws*\[([^]]+))sog)
6675 0 0 if ($objektet =~ /<<(.+)>>/sog)
6677 0 0 if ($objektet =~ s[/JavaScript$ws+(\d+)$ws+\d+$ws+R][]os)
6685 0 0 if ($obj =~ m(/Kids$ws*\[([^]]+))sog)
6692 0 0 if ($obj =~ m(/Names$ws*\[([^]]+))sog)
6711 0 0 if (exists $initScript{$key})
6712 0 0 if (exists $nyaFunk{$key})
6715 0 0 if (exists $script{$key})
6720 0 0 if ($_ ne $key and exists $nyaFunk{$_})
6734 0 0 if (scalar %fields)
6737 0 0 if ($duplicateInits)
6743 0 0 if (scalar @inits and $duplicateInits)
6751 0 0 unless (defined $low)
6761 0 0 if (not exists $nytt{$key}) { }
6769 0 0 if ($antal > 9)
6778 0 0 if ($antal)
6788 0 0 if ($antal == 0)
6798 0 0 if ($antal > 9)
6807 0 0 if ($antal > 0)
6808 0 0 if ($antNodUpp == 0) { }
6831 0 0 if (scalar %script)
6845 0 0 if (exists $old{$inNr}) { }
6878 0 0 if ($compress and length $kod > 99) { }
6907 0 0 if (not $jsfil =~ /\{/so) { }
6908 0 0 unless open JSFIL, "<$jsfil"
6920 0 0 if ($kod =~ /^function ([\w\_\d\$]+)/so)
6931 0 0 if ($val =~ /\s*js\s*\:(.+)/io) { }
6945 0 0 if ($duplicateInits) { }
6973 0 0 if ($runfil)
6976 0 0 if (not $pos) { }
0 0 elsif ($pos > 15000000) { }
6994 0 0 unless open ERRLOG, ">$errLog"
7006 0 0 if ($pos and $pos < 15000000)