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

Andreas Lehmkühler updated PDFBOX-3279:
---------------------------------------
    Description: 
PDDocument.importPage creates two inputstreams from page.getContents(), but 
uses one (for real). The first is only used to check if it exists.

{code}
        InputStream in = null;
        try
        {
            in = page.getContents();
            if (in != null)
            {
                PDStream dest = new PDStream(this, page.getContents(), 
COSName.FLATE_DECODE);
{code}

  was:
PDDocument.importPage creates two inputstreams from page.getContents(), but 
uses one (for real). The first is only used to check if it exists.

        InputStream in = null;
        try
        {
            in = page.getContents();
            if (in != null)
            {
                PDStream dest = new PDStream(this, page.getContents(), 
COSName.FLATE_DECODE);



> PDDocument.importPage creates two inputstreams
> ----------------------------------------------
>
>                 Key: PDFBOX-3279
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3279
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Cornelis Hoeflake
>
> PDDocument.importPage creates two inputstreams from page.getContents(), but 
> uses one (for real). The first is only used to check if it exists.
> {code}
>         InputStream in = null;
>         try
>         {
>             in = page.getContents();
>             if (in != null)
>             {
>                 PDStream dest = new PDStream(this, page.getContents(), 
> COSName.FLATE_DECODE);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to