|
@@ -66,7 +66,7 @@ int main(){
|
|
|
// ******************************************
|
|
|
// ******************************************
|
|
|
pdfWriter.Shutdown("c:\\myFile.pdf.shutdown");
|
|
|
- PDFWriter pdfWriterB;
|
|
|
+ /*PDFWriter pdfWriterB;
|
|
|
pdfWriterB.ContinuePDF("c:\\myFile.pdf","myFile.pdf.shutdown","",LogConfiguration(true,true,".\\logMe"));
|
|
|
PDFPage* pdfPageB = new PDFPage();
|
|
|
// set dimensions for an A4 sized page
|
|
@@ -89,6 +89,23 @@ int main(){
|
|
|
if (f){
|
|
|
printf ("something interesting");
|
|
|
}
|
|
|
- pdfWriterB.EndPDF();
|
|
|
-
|
|
|
+ pdfWriterB.EndPDF();*/
|
|
|
+PDFWriter pdfWriterB;
|
|
|
+ pdfWriterB.ContinuePDF("C:\\Users\\bad-p\\AppData\\Local\\VirtualStore\\myFile.pdf","C:\\Users\\bad-p\\AppData\\Local\\VirtualStore\\myFile.pdf.shutdown");
|
|
|
+ // Create a new page
|
|
|
+ PDFPage* pdfPage2 = new PDFPage();
|
|
|
+ pdfPage->SetMediaBox(PDFRectangle(0,0,595,842));
|
|
|
+ // Create a content context for the page
|
|
|
+ PageContentContext* pageContentContext2 = pdfWriterB.StartPageContentContext(pdfPage2);
|
|
|
+ PDFUsedFont* arialTTF2 = pdfWriterB.GetFontForFile("C:\\Windows\\Fonts\\arial.ttf");
|
|
|
+ pageContentContext2->k(0,0,0,1);
|
|
|
+ pageContentContext2->BT();
|
|
|
+ pageContentContext2->Tf(arialTTF2,1);
|
|
|
+ pageContentContext2->Tm(20,0,0,20,40,822);
|
|
|
+ pageContentContext2->Tj("Hello Again, World");
|
|
|
+ pageContentContext2->ET();
|
|
|
+ // End content context, and write the page
|
|
|
+ pdfWriterB.EndPageContentContext(pageContentContext2);
|
|
|
+ pdfWriterB.WritePageAndRelease(pdfPage2);
|
|
|
+ pdfWriterB.EndPDF();
|
|
|
}
|