Skip to content

Commit d31d279

Browse files
committed
restructured examples
1 parent 23e55f9 commit d31d279

File tree

363 files changed

+5758
-5758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+5758
-5758
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry excluding="**/bin/" including="**/data/|**/java/" kind="src" path="src"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5-
<classpathentry kind="lib" path="../lib/aspose.pdf-3.3.jdk16.jar"/>
6-
<classpathentry kind="lib" path="../lib/aspose-pdf-kit-4.5.0.jar"/>
7-
<classpathentry kind="lib" path="../lib/jai_core.jar"/>
8-
<classpathentry kind="lib" path="../lib/jai_codec.jar"/>
9-
<classpathentry kind="output" path="bin"/>
10-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry excluding="**/bin/" including="**/data/|**/java/" kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="../lib/aspose.pdf-3.3.jdk16.jar"/>
6+
<classpathentry kind="lib" path="../lib/aspose-pdf-kit-4.5.0.jar"/>
7+
<classpathentry kind="lib" path="../lib/jai_core.jar"/>
8+
<classpathentry kind="lib" path="../lib/jai_codec.jar"/>
9+
<classpathentry kind="output" path="bin"/>
10+
</classpath>
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>Aspose.Pdf Examples</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>org.eclipse.jdt.core.javabuilder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
</buildSpec>
14-
<natures>
15-
<nature>org.eclipse.jdt.core.javanature</nature>
16-
</natures>
17-
<filteredResources>
18-
<filter>
19-
<id>1356841242113</id>
20-
<name>src</name>
21-
<type>26</type>
22-
<matcher>
23-
<id>org.eclipse.ui.ide.multiFilter</id>
24-
<arguments>1.0-name-matches-false-false-bin</arguments>
25-
</matcher>
26-
</filter>
27-
</filteredResources>
28-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Aspose.Pdf Examples</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1356841242113</id>
20+
<name>src</name>
21+
<type>26</type>
22+
<matcher>
23+
<id>org.eclipse.ui.ide.multiFilter</id>
24+
<arguments>1.0-name-matches-false-false-bin</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
28+
</projectDescription>

Examples.xml renamed to Examples/Examples.xml

Lines changed: 4937 additions & 4937 deletions
Large diffs are not rendered by default.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/Image_in_Cell.pdf renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/Image_in_Cell.pdf

File renamed without changes.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/aspose.jpg renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/aspose.jpg

File renamed without changes.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/java/AddImageInTableCell.java renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/java/AddImageInTableCell.java

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
/*
2-
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
3-
*
4-
* This file is part of Aspose.Pdf. The source code in this file
5-
* is only intended as a supplement to the documentation, and is provided
6-
* "as is", without warranty of any kind, either expressed or implied.
7-
*/
8-
9-
package knowledgebase.technicalarticles.asposepdfgeneratorarticles.addimageintablecell.java;
10-
11-
import aspose.pdf.*;
12-
13-
public class AddImageInTableCell
14-
{
15-
public static void main(String[] args) throws Exception
16-
{
17-
// The path to the documents directory.
18-
String dataDir = "src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/";
19-
20-
//Instantiate a Pdf object by calling its empty constructor
21-
Pdf pdf1 = new Pdf();
22-
23-
//Create a section in the Pdf object
24-
Section sec1 = pdf1.getSections().add();
25-
26-
//Instantiate a table object
27-
Table table = new Table(sec1);
28-
//Add the table in paragraphs collection of the desired section
29-
sec1.getParagraphs().add(table);
30-
//Set with column widths of the table
31-
table.setColumnWidths("100 100 120");
32-
33-
//Set table border using another customized BorderInfo object
34-
table.setDefaultCellBorder(new BorderInfo(BorderSide.All, 1F));
35-
36-
//Create an image object in the section
37-
aspose.pdf.Image img1 = new aspose.pdf.Image(sec1);
38-
//Set the path of image file
39-
img1.getImageInfo().setFile(dataDir + "aspose.jpg");
40-
41-
//img1.setImageWidth(100);
42-
//img1.setImageHeight(200);
43-
44-
//Create rows in the table and then cells in the rows
45-
Row row1 = table.getRows().add();
46-
row1.getCells().add("Sample text in cell");
47-
// Add the cell which holds the image
48-
Cell cell2 = row1.getCells().add();
49-
50-
//Add the image to the table cell
51-
cell2.getParagraphs().add(img1);
52-
53-
row1.getCells().add("Previous cell with image");
54-
row1.getCells().get_Item(2).setVerticalAlignment(VerticalAlignmentType.Center);
55-
56-
//Save the document
57-
pdf1.save(dataDir + "Image_in_Cell.pdf");
58-
59-
System.out.println("PDF with image in table cell has been created successfully!");
60-
}
61-
}
62-
63-
64-
65-
1+
/*
2+
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
3+
*
4+
* This file is part of Aspose.Pdf. The source code in this file
5+
* is only intended as a supplement to the documentation, and is provided
6+
* "as is", without warranty of any kind, either expressed or implied.
7+
*/
8+
9+
package knowledgebase.technicalarticles.asposepdfgeneratorarticles.addimageintablecell.java;
10+
11+
import aspose.pdf.*;
12+
13+
public class AddImageInTableCell
14+
{
15+
public static void main(String[] args) throws Exception
16+
{
17+
// The path to the documents directory.
18+
String dataDir = "src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/addimageintablecell/data/";
19+
20+
//Instantiate a Pdf object by calling its empty constructor
21+
Pdf pdf1 = new Pdf();
22+
23+
//Create a section in the Pdf object
24+
Section sec1 = pdf1.getSections().add();
25+
26+
//Instantiate a table object
27+
Table table = new Table(sec1);
28+
//Add the table in paragraphs collection of the desired section
29+
sec1.getParagraphs().add(table);
30+
//Set with column widths of the table
31+
table.setColumnWidths("100 100 120");
32+
33+
//Set table border using another customized BorderInfo object
34+
table.setDefaultCellBorder(new BorderInfo(BorderSide.All, 1F));
35+
36+
//Create an image object in the section
37+
aspose.pdf.Image img1 = new aspose.pdf.Image(sec1);
38+
//Set the path of image file
39+
img1.getImageInfo().setFile(dataDir + "aspose.jpg");
40+
41+
//img1.setImageWidth(100);
42+
//img1.setImageHeight(200);
43+
44+
//Create rows in the table and then cells in the rows
45+
Row row1 = table.getRows().add();
46+
row1.getCells().add("Sample text in cell");
47+
// Add the cell which holds the image
48+
Cell cell2 = row1.getCells().add();
49+
50+
//Add the image to the table cell
51+
cell2.getParagraphs().add(img1);
52+
53+
row1.getCells().add("Previous cell with image");
54+
row1.getCells().get_Item(2).setVerticalAlignment(VerticalAlignmentType.Center);
55+
56+
//Save the document
57+
pdf1.save(dataDir + "Image_in_Cell.pdf");
58+
59+
System.out.println("PDF with image in table cell has been created successfully!");
60+
}
61+
}
62+
63+
64+
65+

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.bmp renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.bmp

File renamed without changes.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.jpg renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.jpg

File renamed without changes.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.tif renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/aspose.tif

File renamed without changes.

src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/jpegOutput.pdf renamed to Examples/src/knowledgebase/technicalarticles/asposepdfgeneratorarticles/convertimagetopdf/data/jpegOutput.pdf

File renamed without changes.

0 commit comments

Comments
 (0)