Thanks Tilman, I will take a look. Please find the files attached. I had 
attempted to attach them on the original message, but for some reason this did 
not happen.

Alan.


Alan Masters | Principal Analyst / Programmer | IT Department
Direct tel: 01908 747126 | email: [email protected]
NHBC | NHBC House | Davy Avenue | Knowlhill | Milton Keynes | Bucks | MK5 8FP | 
Tel: 0844 633 1000 | www.nhbc.co.uk


-----Original Message-----
From: Tilman Hausherr [mailto:[email protected]]
Sent: 12 February 2015 17:41
To: [email protected]
Subject: Re: Problem converting a shaded shape to another format

Can you share the file?

Also try these:

https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/1.8.9-SNAPSHOT/
download a jar

run java -jar name-of-jar PDFReader name-of-pdf

what do you see?

Tilman

PS in 2.0 try PDFRender(document).*

Am 12.02.2015 um 17:31 schrieb Alan Masters:
>
> I have been attempting to find the cause of this problem for at least
> a day and have tried Google searches and your site
> https://pdfbox.apache.org
>
> Originally I was attempting to convert the PDF to TIFF, but the
> shading does not get copied to the converted file, although it does to
> the file ShadedShapes.pdf_COPY.pdf.
>
> This is produced by loading the PDF ShadedShapes.pdf into a PDDocument
> and then saving it to the output file. This was done to check that the
> shading was not lost during the loading process.
>
> When attempting to convert to PNG (or TIFF), the shading is lost so I
> assume the shading is a non-stroking colour.
>
> I am particularly keen to have a solution to this, as in all other
> respects, the conversion to TIFF appears to have a very accurate
> reproduction.
>
> I have not tried this with the Version 2 of PDFBox, as I note that the
> PDPage  method convertToImage is not available and without any
> apparent information on how to use the collection of classes, apart
> from other user contributions, it is difficult to work out how to use
> this very useful library.
>
> C:\Oracle\Middleware1\jdk160_05\bin\javaw.exe -client
> -agentlib:jdwp=transport=dt_socket,server=y,address=59525 -classpath
> X:\DEV\AM\Tools\PDFBoxEval\classes;X:\nhbcapps\jar\commons-logging-1.1
> .1.jar;X:\nhbcapps\jar\fontbox-1.8.8.jar;X:\nhbcapps\jar\pdfbox-app-1.
> 8.8.jar;X:\nhbcapps\jar\imageio-ext-tiff-1.0.4.jar;X:\nhbcapps\jar\ima
> geio-ext-utilities-1.0.4.jar;X:\nhbcapps\jar\jai-core-1.1.3-alpha.jar;
> X:\nhbcapps\jar\jai_imageio-1.0_01.jar
> -Xms64m -Xmx1536m -DproxySet=false pdfboxeval.PDFtoTIFF
> "X:\DEV\AM\ShadedShapes.pdf" E:\TEMP\TIFFconversions
>
> Listening for transport dt_socket at address: 59525
>
> Debugger connected to local process.
>
> 12-Feb-2015 14:55:34 org.apache.pdfbox.util.PDFStreamEngine
> processOperator
>
> *INFO: unsupported/disabled operation: BDC*
>
> 12-Feb-2015 14:55:35 org.apache.pdfbox.util.PDFStreamEngine
> processOperator
>
> *INFO: unsupported/disabled operation: EMC*
>
> 12-Feb-2015 14:55:35 org.apache.pdfbox.pdfviewer.PageDrawer fillPath
>
> INFO: *ColorSpace Pattern doesn't provide a non-stroking color, using
> white instead!*
>
> 12-Feb-2015 14:55:35 org.apache.pdfbox.pdfviewer.PageDrawer fillPath
>
> INFO: ColorSpace Pattern doesn't provide a non-stroking color, using
> white instead!
>
> Conversion complete for E:\TEMP\TIFFconversions\ShadedShapes.pdf_1.png
>
> Process exited.
>
> I look forward to your assistance,                   Alan Masters.
>
> *Alan Masters | Principal Analyst / Programmer | IT Department* Direct
> tel: 01908 747126 | email: [email protected] NHBC | NHBC House |
> Davy Avenue | Knowlhill | Milton Keynes | Bucks |
> MK5 8FP | Tel: 0844 633 1000 | www.nhbc.co.uk <http://www.nhbc.co.uk>
>
>
> This email is confidential and is intended for the addressee only. If
> you are not the addressee, please delete the email and do not use it
> in any way. Please note that any views or opinions presented in this
> email are solely those of the author and do not necessarily represent
> those of the company. NHBC reserves the right to monitor all email
> communications. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no
> liability for any damage caused by any virus transmitted by this
> email. NHBC, the National House-Building Council, is limited by
> guarantee in England, No 320784. Registered address: NHBC House, Davy
> Avenue, Knowlhill, Milton Keynes MK5 8FP. NHBC is authorised by the
> Prudential Regulation Authority and regulated by the Financial Conduct
> Authority and Prudential Regulation Authority. NHBC Building Control
> Services Ltd, registered by guarantee in England with Company No.
> 01952969. Registered address: NHBC House, Davy Avenue, Knowlhill,
> Milton Keynes MK5 8FP. NHBC Services Ltd registered by guarantee in
> England, No 03067703. Registered address: NHBC House, Davy Avenue,
> Knowlhill, Milton Keynes MK5 8FP. If you make a claim under a
> Buildmark policy your personal details will be stored and processed in
> accordance with the Data Protection Act. Your personal details may be
> passed to others involved with your claim such as the original
> builder, or a consultant or remedial works contractor that we may
> employ in connection with your claim(s) and matter ancillary to your
> claim(s). Other than disclosure provided for in this statement, we
> will not pass any data about you to any other party without your
> permission unless we are required to do so by law.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


This email is confidential and is intended for the addressee only. If you are 
not the addressee, please delete the email and do not use it in any way. Please 
note that any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company. NHBC reserves the 
right to monitor all email communications. The recipient should check this 
email and any attachments for the presence of viruses. The company accepts no 
liability for any damage caused by any virus transmitted by this email. NHBC, 
the National House-Building Council, is limited by guarantee in England, No 
320784. Registered address: NHBC House, Davy Avenue, Knowlhill, Milton Keynes 
MK5 8FP. NHBC is authorised by the Prudential Regulation Authority and 
regulated by the Financial Conduct Authority and Prudential Regulation 
Authority. NHBC Building Control Services Ltd, registered by guarantee in 
England with Company No. 01952969. Registered address: NHBC House, Davy Avenue, 
Knowlhill, Milton Keynes MK5 8FP. NHBC Services Ltd registered by guarantee in 
England, No 03067703. Registered address: NHBC House, Davy Avenue, Knowlhill, 
Milton Keynes MK5 8FP. If you make a claim under a Buildmark policy your 
personal details will be stored and processed in accordance with the Data 
Protection Act. Your personal details may be passed to others involved with 
your claim such as the original builder, or a consultant or remedial works 
contractor that we may employ in connection with your claim(s) and matter 
ancillary to your claim(s). Other than disclosure provided for in this 
statement, we will not pass any data about you to any other party without your 
permission unless we are required to do so by law.

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

Reply via email to