Author: tilman
Date: Thu Feb 13 09:55:56 2025
New Revision: 1923778
URL: http://svn.apache.org/viewvc?rev=1923778&view=rev
Log:
PDFBOX-5952: deprecate short constructor, use the long one
Modified:
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
Modified:
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java
(original)
+++
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java
Thu Feb 13 09:55:56 2025
@@ -49,7 +49,7 @@ public class CSDeviceN
*/
public CSDeviceN(COSArray array) throws IOException
{
- deviceN = new PDDeviceN(array);
+ deviceN = new PDDeviceN(array, null);
DeviceNColorant[] colorants = getColorantData();
initUI(colorants);
}
Modified:
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java
(original)
+++
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java
Thu Feb 13 09:55:56 2025
@@ -63,7 +63,7 @@ public class CSSeparation implements Cha
*/
public CSSeparation(COSArray array) throws IOException
{
- separation = new PDSeparation(array);
+ separation = new PDSeparation(array, null);
initUI();
initValues();
}
Modified:
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java
(original)
+++
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java
Thu Feb 13 09:55:56 2025
@@ -82,7 +82,7 @@ public class CreateSeparationColorBox
PDFunctionType2 func = new PDFunctionType2(fdict);
separationArray.add(func);
- PDColorSpace spotColorSpace = new PDSeparation(separationArray);
+ PDColorSpace spotColorSpace = new PDSeparation(separationArray, null);
PDPageContentStream cs = new PDPageContentStream(doc, page);
PDColor color = new PDColor(new float[]{0.5f}, spotColorSpace);
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java
(original)
+++
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java
Thu Feb 13 09:55:56 2025
@@ -117,7 +117,10 @@ public class PDDeviceN extends PDSpecial
* @param deviceN an array containing the color space information
*
* @throws IOException if the colorspace could not be created
+ *
+ * @deprecated use {@link PDDeviceN#PDDeviceN(COSArray, PDResources)}
*/
+ @Deprecated
public PDDeviceN(COSArray deviceN) throws IOException
{
this(deviceN, null);
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java
(original)
+++
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java
Thu Feb 13 09:55:56 2025
@@ -93,7 +93,9 @@ public final class PDDeviceNAttributes
* Returns a map of colorants and their associated Separation color space.
* @return map of colorants to color spaces, never null.
* @throws IOException If there is an error reading a color space
+ * @deprecated user {@link #getColorants(PDResources)}
*/
+ @Deprecated
public Map<String, PDSeparation> getColorants() throws IOException
{
return getColorants(null);
@@ -151,7 +153,7 @@ public final class PDDeviceNAttributes
Map<String, PDSeparation> colorants;
try
{
- colorants = getColorants();
+ colorants = getColorants(null);
sb.append("Colorants{");
for (Map.Entry<String, PDSeparation> col : colorants.entrySet())
{
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java?rev=1923778&r1=1923777&r2=1923778&view=diff
==============================================================================
---
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
(original)
+++
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
Thu Feb 13 09:55:56 2025
@@ -101,7 +101,9 @@ public class PDSeparation extends PDSpec
* Creates a new Separation color space from a PDF color space array.
* @param separation an array containing all separation information.
* @throws IOException if the color space or the function could not be
created.
+ * @deprecated user {@link PDSeparation#PDSeparation(COSArray,
PDResources)}
*/
+ @Deprecated
public PDSeparation(COSArray separation) throws IOException
{
this(separation, null);