mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
handle unexpected adobe type 1 format
an encoding array in an adobe type 1 font may be missing its declaration ending in 'for', if we encounter 'dup' while looking for the 'for' token we have a special case to go straight into reading the encoding. also handles a case where the page content stream contains a path-closing operator without any path being active.
This commit is contained in:
@@ -413,6 +413,11 @@
|
||||
|
||||
public void StrokePath(bool close)
|
||||
{
|
||||
if (CurrentPath == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (close)
|
||||
{
|
||||
ClosePath();
|
||||
@@ -427,6 +432,11 @@
|
||||
|
||||
public void FillPath(bool close)
|
||||
{
|
||||
if (CurrentPath == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (close)
|
||||
{
|
||||
ClosePath();
|
||||
|
Reference in New Issue
Block a user