Skip to content

Commit 8ee818f

Browse files
committed
PDFBOX-5660: add comment
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923398 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7d1818b commit 8ee818f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ public void removePage(int pageNumber)
697697
*/
698698
public PDPage importPage(PDPage page) throws IOException
699699
{
700+
// BEWARE: when making changes here, make sure that these changes don't mess with the code
701+
// in the splitter, and avoid making changes in the source document (as happened in PDFBOX-5809)
700702
PDPage importedPage = new PDPage(new COSDictionary(page.getCOSObject()), resourceCache);
701703
importedPage.getCOSObject().removeItem(COSName.PARENT);
702704
PDStream dest = new PDStream(this, page.getContents(), COSName.FLATE_DECODE);

0 commit comments

Comments
 (0)