You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ken Bowen (JIRA)" <ji...@apache.org> on 2011/06/02 17:17:47 UTC

[jira] [Created] (PDFBOX-1027) Modifications to permit use of PDFBOX on Google App Engine

Modifications to permit use of PDFBOX on Google App Engine
----------------------------------------------------------

                 Key: PDFBOX-1027
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1027
             Project: PDFBox
          Issue Type: Improvement
          Components: PDModel
    Affects Versions: 1.5.0, 1.4.0
         Environment: Google App Engine
            Reporter: Ken Bowen
             Fix For: 1.6.0, 1.5.0, 1.4.0


This patch to PDFBox 1.4.0 accomplishes the following three items, all of which are necessary to enable the use of PDFBox on Google App Engine (GAE):

1)  Moves the AWT dependency on TRANSPARENT_WHITE from class-load time to function/object-use time; previously, any attempt to load PDFBox on GAE would raise an error concerning this constant.

2)  Moves the AWT colors dependency of PDJpeg from class-load time to function/object-use time; this allows, for example, execution of org.apache.pdfbox.examples.pdmodel.RubberStampWithImage on GAE with a b/w stamp image.

3)  Provides a global System Property 
	"org.apache.pdfbox.useScratchMemory"
for controlling whether COSDocument (and hence PDDocument) make use of a scratch random access file file or a scratch random access memory buffer. This allows creation of PDF documents from streams on GAE.

Note that the patch does not introduce any GAE dependencies, potentially allowing PDFBox to also be used on other ATW-poor environments.  Also, it's important to note that the greater part of the work on this patch is due to my colleague Chuck Houpt.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-1027) Modifications to permit use of PDFBOX on Google App Engine

Posted by "Ken Bowen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046636#comment-13046636 ] 

Ken Bowen commented on PDFBOX-1027:
-----------------------------------

My apologies:  I was distracted last week and failed to attach the patch file when I filed the JIRA.  I just attached it.
Regards,
Ken Bowen





> Modifications to permit use of PDFBOX on Google App Engine
> ----------------------------------------------------------
>
>                 Key: PDFBOX-1027
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1027
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.4.0, 1.5.0
>         Environment: Google App Engine
>            Reporter: Ken Bowen
>         Attachments: fr-pdfbox-patch.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> This patch to PDFBox 1.4.0 accomplishes the following three items, all of which are necessary to enable the use of PDFBox on Google App Engine (GAE):
> 1)  Moves the AWT dependency on TRANSPARENT_WHITE from class-load time to function/object-use time; previously, any attempt to load PDFBox on GAE would raise an error concerning this constant.
> 2)  Moves the AWT colors dependency of PDJpeg from class-load time to function/object-use time; this allows, for example, execution of org.apache.pdfbox.examples.pdmodel.RubberStampWithImage on GAE with a b/w stamp image.
> 3)  Provides a global System Property 
> 	"org.apache.pdfbox.useScratchMemory"
> for controlling whether COSDocument (and hence PDDocument) make use of a scratch random access file file or a scratch random access memory buffer. This allows creation of PDF documents from streams on GAE.
> Note that the patch does not introduce any GAE dependencies, potentially allowing PDFBox to also be used on other ATW-poor environments.  Also, it's important to note that the greater part of the work on this patch is due to my colleague Chuck Houpt.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PDFBOX-1027) Modifications to permit use of PDFBOX on Google App Engine

Posted by "Ken Bowen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Bowen updated PDFBOX-1027:
------------------------------

    Attachment: fr-pdfbox-patch.txt

Patch allowing use of PDFBOX on GAE

> Modifications to permit use of PDFBOX on Google App Engine
> ----------------------------------------------------------
>
>                 Key: PDFBOX-1027
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1027
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.4.0, 1.5.0
>         Environment: Google App Engine
>            Reporter: Ken Bowen
>         Attachments: fr-pdfbox-patch.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> This patch to PDFBox 1.4.0 accomplishes the following three items, all of which are necessary to enable the use of PDFBox on Google App Engine (GAE):
> 1)  Moves the AWT dependency on TRANSPARENT_WHITE from class-load time to function/object-use time; previously, any attempt to load PDFBox on GAE would raise an error concerning this constant.
> 2)  Moves the AWT colors dependency of PDJpeg from class-load time to function/object-use time; this allows, for example, execution of org.apache.pdfbox.examples.pdmodel.RubberStampWithImage on GAE with a b/w stamp image.
> 3)  Provides a global System Property 
> 	"org.apache.pdfbox.useScratchMemory"
> for controlling whether COSDocument (and hence PDDocument) make use of a scratch random access file file or a scratch random access memory buffer. This allows creation of PDF documents from streams on GAE.
> Note that the patch does not introduce any GAE dependencies, potentially allowing PDFBox to also be used on other ATW-poor environments.  Also, it's important to note that the greater part of the work on this patch is due to my colleague Chuck Houpt.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PDFBOX-1027) Modifications to permit use of PDFBOX on Google App Engine

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-1027:
---------------------------------------

    Fix Version/s:     (was: 1.6.0)
                       (was: 1.5.0)
                       (was: 1.4.0)

> Modifications to permit use of PDFBOX on Google App Engine
> ----------------------------------------------------------
>
>                 Key: PDFBOX-1027
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1027
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.4.0, 1.5.0
>         Environment: Google App Engine
>            Reporter: Ken Bowen
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> This patch to PDFBox 1.4.0 accomplishes the following three items, all of which are necessary to enable the use of PDFBox on Google App Engine (GAE):
> 1)  Moves the AWT dependency on TRANSPARENT_WHITE from class-load time to function/object-use time; previously, any attempt to load PDFBox on GAE would raise an error concerning this constant.
> 2)  Moves the AWT colors dependency of PDJpeg from class-load time to function/object-use time; this allows, for example, execution of org.apache.pdfbox.examples.pdmodel.RubberStampWithImage on GAE with a b/w stamp image.
> 3)  Provides a global System Property 
> 	"org.apache.pdfbox.useScratchMemory"
> for controlling whether COSDocument (and hence PDDocument) make use of a scratch random access file file or a scratch random access memory buffer. This allows creation of PDF documents from streams on GAE.
> Note that the patch does not introduce any GAE dependencies, potentially allowing PDFBox to also be used on other ATW-poor environments.  Also, it's important to note that the greater part of the work on this patch is due to my colleague Chuck Houpt.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira