From 5898a03590d78923291624fc2fcd5db80019ccb7 Mon Sep 17 00:00:00 2001 From: Dmitry Radchuk Date: Mon, 12 Aug 2024 21:52:07 +0000 Subject: [PATCH] Save non-standard color spaces to resources when using them in inline images DEVSIX-3564 Autoported commit. Original commit hash: [e441c12a2] --- .../pdf/canvas/PdfCanvasInlineImagesTest.cs | 2 -- .../cmp_inlineImagePng.pdf | Bin 2743 -> 2977 bytes .../cmp_inlineImagePngErrorWhileOpen.pdf | Bin 4403 -> 4648 bytes .../cmp_inlineImages01.pdf | Bin 1060668 -> 1063181 bytes .../cmp_inlineImages02.pdf | Bin 1060668 -> 1063181 bytes .../cmp_inlineImages03.pdf | Bin 3635 -> 6540 bytes .../itext/kernel/pdf/canvas/PdfCanvas.cs | 17 +++++++++++++++++ port-hash | 2 +- 8 files changed, 18 insertions(+), 3 deletions(-) diff --git a/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs b/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs index 464d0daa7..cf938b485 100644 --- a/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs +++ b/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs @@ -145,7 +145,6 @@ public virtual void InlineImagesTest03() { [NUnit.Framework.Test] public virtual void InlineImagesPngTest() { - //TODO update cmp-files after DEVSIX-3564 will be fixed String filename = "inlineImagePng.pdf"; PdfDocument document = new PdfDocument(CompareTool.CreateTestPdfWriter(destinationFolder + filename)); PdfPage page = document.AddNewPage(); @@ -159,7 +158,6 @@ public virtual void InlineImagesPngTest() { [NUnit.Framework.Test] public virtual void InlineImagesPngErrorWhileOpenTest() { - //TODO update cmp-files after DEVSIX-3564 will be fixed String filename = "inlineImagePngErrorWhileOpen.pdf"; PdfDocument document = new PdfDocument(CompareTool.CreateTestPdfWriter(destinationFolder + filename)); PdfPage page = document.AddNewPage(); diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImagePng.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImagePng.pdf index 402b81c912e2cf9210b5e758a5da2d77870f0b02..650e266b1bffd1e77ba79d4ebe297343f3c1e9ee 100644 GIT binary patch literal 2977 zcmc&$c~leU7Jt+QnDVrWZB<+b0a?Q=*#)AI6lBu?0j!8MBoi_~5}1U_R;^ent5l@8 zuv9FS9Rxv?QYxs(T0s;P5EU0x7MBXff{!<$wD!H8^ZtF`nK}2H``tVDcfWhj`CSt} z&yj*yGXayK`&YXGItYV`fFQuu7IMTxR2Ts{h6q&{4-+ZG803b@165KGVKG=7j#5Qn zLKzT|rDd;OuMPtc7$%)zP$Q`fkVy)W3~+D;AO~EfN- z-RUFHF`TckeHp73sWa8w2&bVRhJLU}_wz9S>GYU9vjaQKnrwe=bGC33QRCcWX>qAn zI+AQUIjpQ_4;xGw)NFh`Xj|}dhN(B>zdic(x;q(H!iDa#FMh)|%FeCj*aR=~9yUI@ zyR`e4`Qwk@#{K%!?a#RRws#_(`%@;VkFMxr4o5DRsowi)2cix;C^xWrfn&7vXn-kroYK>yb z={l+CPS$I~KD(}LQHQTSVwEhswWrMe?vl1KZ7p6~aaK~eboF3@u^zWtxlu2$Xol6i zvN3IQd;jNMgc!zeS*aMI4t-HRHrG1BSo_CDDpr;O!@lFjf=SPsz83_RX+sCuJAY4)HG~uh%T7}#(h&$v)o^^NN=>v??gGZVW&quj>#j5l|?E6>U#cASg|tL+S# z^EX-0-eH3`C%$rd*>?3vL*;_^kkxzE=H{8*C}g0^iq&!RN4uO_&SWOV_~=%Zf1Gxy zX>-MzB{qH63b)>TwAz)?7FpipS#{3o86NuFYuR#ou-wz$Ok7w~;NA$YYCf%x6{1`RWg^;sgd;59gET`h=5(A^#dzW70CI&ROI*mSj(sn7b>hU>yi*J>cqJ;;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>L=|+w#)^L!t&=NgSx0o(Y3AS0re6J55G}eJRLWc zBV|x3qS+nyf}l{s&XD=Z&xS$gE6}t^Q4al+4yQZBztrY^>R_u$8@thj&%d}x%R1%; z7}soNGS`ag`q-7hnf*%qZ=NjyC-`#~ckP0KHGasjosO^3_tVeZT0e4Qqpilh()$Hz z!7f*mO*hZTN8iEo;+mm@@roWyDB{VOdfBa=fOlwc=f4B6Pp1_t?`0FFiprjy7t<1lY>Tudzp0fvI15DPCX2IqCu(;HL? zgFqk_|CK@i5Fl3?g-!)weL)0cj4SSU3kI1M9Y%>F{A6OnV(ul{|GfhGTY*48Q6S(y z0Rppx!2i|3;MV`@AP8%g9uSOyS|coxP$C3HJ`F)aQE()Ygg~K4WO6WxXoWx^(TD#J a!NSU!O8s+%l`N;R*UA!TVBqZO0{jn~`Ap0J diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImagePngErrorWhileOpen.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImagePngErrorWhileOpen.pdf index 42e92c46ad5b5412d64a50bcfd9d5bf8bc6a3dfb..e61658af19bb3f65e5bcc3c4e583b3fa13f16024 100644 GIT binary patch delta 4245 zcmc&x`8(9n+qSkyCQ8XV5!q)q#u{RjB|FhzjIm{m?E6R2fhuV=i7fA-+d(T{xk#r$-oI&*)YIne}UkUU+L0b;gIT%v%{&OJ$U&V)Lfp?k6 z=~VGETDq&V;lSSh-M}=l&EWo_P|f)Q*R=33)+9c@@v(XIwe~wxUG>LVO$Jym_cGXb zjY>?x}r8-IfFFx33{3sv7$L1K5;$cyY>{(rzrC$aTE08pLwTG)csYubB3xiK zdQ`k*|1)$#@S$Vg4tt8&?U~s|7r{Bo`q(E@LBuc1A+slGR*JO+s^_1kZypFUURQ%e zgA*S3k~3G9)fzYnd`zuotb14{yMpdSmM1`6I2U2%zQl7eRMgx0D_k9~o7K%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}}Ornh%UCUyXOv}&< zPPsDke6dUX>x@j@_bv1>DU9I}YFP~F{>9yeupv)h;73;HrdsWMT;nK8nD_C_N~LQ( z%aTkuOo1enYf5bL-5xTAMI@(6Gjm^K%&)XVamjAi62kxIK9duBbl9^lz$%w)XK8Yc z9K8;5O(YQ)okml8a_Lg7VX%R}Z5J#qEN#+3>l*%`e--S=n&BN1T^}%yif{2A_-yyJ z0XF}a`xjPGxYUppt(hIq_&g^-?_7tneJ z4!PYW>vlFD@@Y4I(3OQnadb2q@L*bRru>6@U+ft0mX14i*b6DPr2&f%YAAMtV>{l=hPgjtIElg@Y4?9$^Izm{>r8=uO09{eq7g!G(ukm?XdY4l zWq{&9Fc1uq0D#ceG!Op22%}+@lM)4r0s$fhy2>vNG@*vv<>CMUKtvn>l;L(VwD%_Xa}~pw*v#1j_({3eWyq0zF43 f!254oC|-NRyuAIr>>Vg1fItZfUS2h*I>rA0uWPpf diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf index 81f42a91498612bcdd8937bb8bb0b8417fed568d..f7c5bf4899e20345395826b9bfa3b961eaf20bb4 100644 GIT binary patch delta 8057 zcmeI0XH*o~w#NYhkz^wvqDW9ANoYDiHyIHH1r^CTHc1fyL6R0AIVm8LGfk2lCFh)j z1j!jBH(9`bH8XeKy>n;1Z*R?fnX2{cuG)R-oU_mV@4ZfS)s$2aPU-^!fTPeb2?@Jb zwirVza>v*l4GJ-pXCu>am(AQpO7HS7fe$xH-@W3x@zFoGqQ(mn*7?N6x;g2#Ja#B^ zDkUKGQD&R?{;*B$E9vVY{24>s?A-Q`@~pQQUw?O*-a6!~jT(C~3tu^SPR0ve9S|XL?bLSBJ{gC4wC|TdO?aix!kAlW=G6bsbvUeeFVyQfr zxXD~-QM0ccN)Eyml@s_?=Zlm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_1Y#6WO3+(-7iGi9NMFCZ$({1khw3`Je%vS)^1EJYsI2No|Soc>#Nmg z*E}{S+I1-Ay6Jk-aPkIi^HpMGe2vS4#u7mNVc6EZbj7S!maTK)=1acTW`hA{mmp*O zeSMazDypk}6gYHx@3NzT*@IIb0@L&GZ^Ei)nx!ZlOmJu&T;l}7edHv{WOxr+SB@5A z3m$}J(L6++IAq@QrJ**B_n(uKQ|ga@MvQAR>k#cZcNg#T{dzGXvGmf+$!-qrEER)#{ZJ^N0{K)O(SVm-8iE&_c<1%TPv=5w2%U`4hbH4KHnjX)Qv2J8+dc}B6kt zN%yC*N_XT6mXrd6z#tF;Dh-8-fgr*lkg%wvuBU?<$`2!=CIbOM{<9#Rj+=uRApw$r zq=UHy2&AGOamPL4Cb)(07NT1Kw-Db#atrA#z+1>}A-{#<7Rpf=gjBP20=1XIzz{Hq zGy)DmVK68Z!rlRa!N6c}Faimdf@8sOj5HPwM%$wtZu78POCmxh9nAhcI|I{*Lx diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf index 896fe09ec60b848265dc932d25105d2951446861..ef51a01173baadfe81daa5ecffacd56aba03b662 100644 GIT binary patch delta 8057 zcmeI0XH-+^*2e(>k!BDSQG}pKlafjjIwA@RD$;umA{GP$X?g(ZO#zYK2~D~b>Am+N zMLI~69=d>e&&=F;@0~mA{r0YzFO#!=$yxh6Z9o6L_j*n$CS(GMGVf3T5{pAfN!h-z z!5crNb%@EZ<#*@F^*y2L$dSjA%hmBDoo=VNhsPfM zf*qaceCdmimG2~`GGre30T$+Km+3l35>X;L`#vXj{heqC9Cz1H$g~87&FdtZh5IU6 zi##Od;HY90a-rv4kB_|Zvdb~LGp6wz3W*^lxYj5r({Xin*v4YDYzaLNR4q!Q%!>tE zL=ccq<=v^cyZmGVr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JiD=OEzDzGl& zXu6_ut*Zj-GLEL}_Lht5;YfC>OIH`!pG-zsyi8VbbqDoRlhF-0zlBNkdP9jw@v7t$ZDXT=&4b7-Xx+to+Vi=mP z8N@&mt|WDAC=%8sBp@PH4N;d2Ra2^}D2akx)rn5jYWDVLFh#$VR~^9CqY^AR4&6Y) o*Rr)p0R7X18w??0oZOwpOnRAV>5X=kMd+?9+`SW za|07YBSRw-Q$tH_17mdq19eS(-~1Gp#FA7E7b_zJtO^2(@>5EaQ;Re*LsBbB)+w0l z8R!}72KzY%1bg_0D6BLxFfh;s=~VzLP;f8GFD+2;3sZ>EaC8sw(Jf0YD$dN$i_v7% zoVg;B z$r=&@PL`JDNl9sj$>x>@Mh0o-1}R1cmPu)*sRpTLNhSs entry in imageXObject.GetPdfObject().EntrySet()) { PdfName key = entry.Key; if (!PdfName.Type.Equals(key) && !PdfName.Subtype.Equals(key) && !PdfName.Length.Equals(key)) { @@ -2141,6 +2142,22 @@ protected internal virtual void AddInlineImage(PdfImageXObject imageXObject, flo RestoreState(); } + private void SaveColorSpaceToPageResourcesIfNeeded(PdfStream image) { + PdfObject colorSpace = image.Get(PdfName.ColorSpace); + //The colour space specified by the ColorSpace (or CS) entry shall be one of the standard device colour spaces + //(DeviceGray, DeviceRGB, or DeviceCMYK). + if (colorSpace == null || colorSpace.Equals(PdfName.DeviceGray) || colorSpace.Equals(PdfName.DeviceRGB) || + colorSpace.Equals(PdfName.DeviceCMYK)) { + return; + } + //PDF 1.2: the value of the ColorSpace entry may also be the name of a colour space in the ColorSpace + //subdictionary of the current resource dictionary. In this case, the name may designate any colour space + //that can be used with an image XObject. + PdfName name = resources.AddColorSpace(colorSpace); + image.Remove(PdfName.ColorSpace); + image.Put(PdfName.ColorSpace, name); + } + /// /// Adds /// diff --git a/port-hash b/port-hash index 5b8c1411d..5d4971883 100644 --- a/port-hash +++ b/port-hash @@ -1 +1 @@ -fdf0981cf57bd8f4e1b26df8abe030126ca2a0ac +e441c12a214f5ed043403b9377dc71061e7a0d78