We had a situation where we had a pdf where all the cover pages were in landscape mode and when the PDF was rendered with the citation page added, it was cutting off the pages that were in landscape. To fix this, I changed this line of code in 6.3
https://github.com/DSpace/DSpace/blob/dspace-6.3/dspace-api/src/main/java/org/dspace/disseminate/CitationDocumentServiceImpl.java#L384 To be this: if (isCitationFirstPage()) { PDRectangle rectangle = new PDRectangle(); //citation as cover page document.addPage(coverPage); for (PDPage sourcePage : sourcePageList) { rectangle.setUpperRightY(sourcePage.getCropBox().getUpperRightY()); rectangle.setLowerLeftY(sourcePage.getCropBox().getLowerLeftY()); rectangle.setUpperRightX(sourcePage.getCropBox().getUpperRightX()); rectangle.setLowerLeftX(sourcePage.getCropBox().getLowerLeftX()); sourcePage.setCropBox(rectangle); document.addPage(sourcePage); } } else { This took care of the problem. But now, a user has pointed out that for one of our pdfs the pages are being cut off. So this change I have placed does not work for all PDFs. I wonder if anyone has come across this issue, and if there is a better way to solve this problem. Thank you! -Jose -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-srY9AstK%3D_%2Bbm5q9k1SRXnSLAv%2B%2B7Kpzf5FobywwaJGg%40mail.gmail.com.
