[ 
https://issues.apache.org/jira/browse/PDFBOX-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ulrich gratz updated PDFBOX-4159:
---------------------------------
    Description: 
When i use a large amount of {{AffineTransformations}} (apprx. more than 35) 
the resulting document will open in Acrobat Reader, but each time a warning is 
displayed, that there is a defect in the document. The code I use is like: 
{code:java}
for (int i = 0; i < 50; i++) {
 context.process(new ParagraphSegment("XXXXXXXXXXXXXXXXXX"));
 Matrix translationMatrix = new 
Matrix(AffineTransform.getTranslateInstance(VIEWPORT_LEFT, y));
 this.contentStream.transform(translationMatrix)
}

{code}
When i skip the transformations or reduce the amount to 30, everything is fine. 
The size of {{ty}} or page breaks do _not_ have an influence on the result, it 
seems to be the amount of transforms.

 

I attached a simple PDF sporting the described effect.

  was:
When i use a large amount of \{{AffineTransformations}} (apprx. more than 35) 
the resulting document will open in Acrobat Reader, but each time a warning is 
displayed, that there is a defect in the document. The code I use is like: 
{code:java}
for (int i = 0; i < 50; i++) {
 context.process(new ParagraphSegment("XXXXXXXXXXXXXXXXXX"));

Matrix translationMatrix = new 
Matrix(AffineTransform.getTranslateInstance(VIEWPORT_LEFT, y));
this.contentStream.transform(translationMatrix)
}

{code}
When i skip the transformations or reduce the amount to 30, everything is fine. 
The size of {{ty}} or page breaks do _not_ have an influence on the result, it 
seems to be the amount of transforms.

 

I attached a simple PDF sporting the described effect.


> Defect document when too many transformations are applied
> ---------------------------------------------------------
>
>                 Key: PDFBOX-4159
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4159
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>            Reporter: ulrich gratz
>            Priority: Major
>         Attachments: File (1).pdf
>
>
> When i use a large amount of {{AffineTransformations}} (apprx. more than 35) 
> the resulting document will open in Acrobat Reader, but each time a warning 
> is displayed, that there is a defect in the document. The code I use is like: 
> {code:java}
> for (int i = 0; i < 50; i++) {
>  context.process(new ParagraphSegment("XXXXXXXXXXXXXXXXXX"));
>  Matrix translationMatrix = new 
> Matrix(AffineTransform.getTranslateInstance(VIEWPORT_LEFT, y));
>  this.contentStream.transform(translationMatrix)
> }
> {code}
> When i skip the transformations or reduce the amount to 30, everything is 
> fine. The size of {{ty}} or page breaks do _not_ have an influence on the 
> result, it seems to be the amount of transforms.
>  
> I attached a simple PDF sporting the described effect.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to