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

Vlad-Tudor Marchis updated PDFBOX-4002:
---------------------------------------
    Description: 
I've had some problems with the layer utility when trying to overlay two PDFs. 
Normally it works fine, but I've encountered a type of PDF file on which it 
doesn't work properly. 
Text elements are not being displayed (it can be selected, but it looks to be 
transparent), but images are.
I've stripped down my code to the bare minimum and produced a maven project 
with a command line and provided some examples for the base, the overlay and 
the output I get.
I've attached all below.
The usage for the command line is as follows:
java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
out.pdf -layerName overlay

If I try to overlay the other way around, i.e. use the overlay.pdf in the 
-basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
the overlaying, but obviously, that's not what I'm looking for.

Any hints as to why this might not work, or any particularities about the base 
PDF that might be causing this to be behaving differently would be helpful.

  was:
I've had some problems with the layer utility when trying to overlay two PDFs. 
Normally it works fine, but I've encountered a type of PDF file on which it 
doesn't work properly. 
Text elements are not being displayed, but images are.
I've stripped down my code to the bare minimum and produced a maven project 
with a command line and provided some examples for the base, the overlay and 
the output I get.
I've attached all below.
The usage for the command line is as follows:
java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
out.pdf -layerName overlay

If I try to overlay the other way around, i.e. use the overlay.pdf in the 
-basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
the overlaying, but obviously, that's not what I'm looking for.

Any hints as to why this might not work, or any particularities about the base 
PDF that might be causing this to be behaving differently would be helpful.


> Layer Utility - Text not being displayed when overlaying
> --------------------------------------------------------
>
>                 Key: PDFBOX-4002
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4002
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>            Reporter: Vlad-Tudor Marchis
>         Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to