Procházet zdrojové kódy

PDFSamples(iOS)-文案修改

yangliuhua před 1 rokem
rodič
revize
8fefd6fe35

+ 1 - 1
Samples/Samples/Annotation/CAnnotaitonViewController.m

@@ -40,7 +40,7 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to create new annotation and delete anntation, get anntation information list using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to print the annotation list information, set the annotations (including markup, note, ink, freetext, circle, square, line, stamp, and sound annotations), and delete the annotations.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/AnnotationImportExport/CAnnotationImportExportViewController.m

@@ -39,7 +39,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to import and export anntation using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to set up the export and import of annotations. Thedocument from which the annotations are exported is an xfdf file.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 18 - 17
Samples/Samples/Background/CBackgroundViewController.m

@@ -42,7 +42,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to add and remove background, including text and image background. date using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to add color and picture backs and delete backgrounds.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;
@@ -92,14 +92,14 @@
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Type : Color"];
     CGFloat red, green, blue, alpha;
     [background.color getRed:&red green:&green blue:&blue alpha:&alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%f, green:%f, blue:%f, alpha:%f", red, green, blue, alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%f", background.opacity];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Rotation :%f", background.rotation];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@", [self getStringFromEnumVertalign:background.verticalAlignment]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@", [self getStringFromEnumHorizalign:background.horizontalAlignment]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%f", background.xOffset];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%f", background.yOffset];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@", background.pageString];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%.1f, green:%.1f, blue:%.1f, alpha:%.1f\n", red, green, blue, alpha];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%.1f\n", background.opacity];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Rotation :%.1f\n", background.rotation];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@\n", [self getStringFromEnumVertalign:background.verticalAlignment]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@\n", [self getStringFromEnumHorizalign:background.horizontalAlignment]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%.1f\n", background.xOffset];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%.1f\n", background.yOffset];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@\n", background.pageString];
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Done. Results saved in AddColorBackgroundTest.pdf\n"];
 }
 
@@ -141,14 +141,14 @@
     [document writeToURL:self.addImageBackgroundURL];
     
     // Print image background object message
-    self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Type : Image"];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%f", background.opacity];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Rotation :%f", background.rotation];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@", [self getStringFromEnumVertalign:background.verticalAlignment]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@", [self getStringFromEnumHorizalign:background.horizontalAlignment]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%f", background.xOffset];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%f", background.yOffset];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@", background.pageString];
+    self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Type : Image\n"];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%.1f\n", background.opacity];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Rotation :%.1f\n", background.rotation];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@\n", [self getStringFromEnumVertalign:background.verticalAlignment]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@\n", [self getStringFromEnumHorizalign:background.horizontalAlignment]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%.1f\n", background.xOffset];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%.1f\n", background.yOffset];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@\n", background.pageString];
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Done. Results saved in AddImageBackgroundTest.pdf\n"];
 }
 
@@ -168,6 +168,7 @@
     
     if ([[NSFileManager defaultManager] fileExistsAtPath:documentFolder])
         [[NSFileManager defaultManager] copyItemAtURL:[NSURL fileURLWithPath:documentFolder] toURL:[NSURL fileURLWithPath:writeFilePath] error:nil];
+   
     
     self.deleteBackgroundURL = [NSURL fileURLWithPath:writeFilePath];
     document = [[CPDFDocument alloc] initWithURL:self.deleteBackgroundURL];

+ 1 - 1
Samples/Samples/Bates/CBatesViewController.m

@@ -41,7 +41,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to add and remove bates using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to add and remove bates codes.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/Bookmark/CBookmarkViewController.m

@@ -38,7 +38,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to create new bookmarks and use bookmark go to the page using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to create a new bookmark and implement a bookmark jump.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/DocumentInfo/CDocumentInfoViewController.m

@@ -27,7 +27,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to extract PDF document information such as: date using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to extract information about PDF documents, such as: author, date created.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 4 - 4
Samples/Samples/Encrypt/CEncryptViewController.m

@@ -38,7 +38,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to encrypt and decrypt documents using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to set user password and permission password, decrypt, set document permission.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;
@@ -188,7 +188,7 @@
     [self.userPasswordURLs addObject:encryptOwnerRC4URL];
     
     // Set encryption attributes
-    NSDictionary *options = @{CPDFDocumentOwnerPasswordOption : @"User",
+    NSDictionary *options = @{CPDFDocumentUserPasswordOption : @"User",
                               CPDFDocumentOwnerPasswordOption : @"Owner",
                               CPDFDocumentEncryptionLevelOption : @(CPDFDocumentEncryptionLevelRC4),
                               CPDFDocumentAllowsPrintingOption : @(NO),
@@ -220,8 +220,8 @@
     [self.userPasswordURLs addObject:encryptAllAES256URL];
     
     // Set encryption attributes
-    NSDictionary *options = @{CPDFDocumentOwnerPasswordOption : @"User",
-                              CPDFDocumentUserPasswordOption : @"Owner",
+    NSDictionary *options = @{CPDFDocumentOwnerPasswordOption : @"Owner",
+                              CPDFDocumentUserPasswordOption : @"User",
                               CPDFDocumentEncryptionLevelOption : @(CPDFDocumentEncryptionLevelAES256),
                               CPDFDocumentAllowsPrintingOption : @(YES),
                               CPDFDocumentAllowsHighQualityPrintingOption : @(NO),

+ 1 - 1
Samples/Samples/FlattenedCopy/CFlattenedCopyViewController.m

@@ -37,7 +37,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how do I create a copy of Flattened using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to create a copy of Flattened.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/HeaderFooter/CHeaderFooterViewController.m

@@ -44,7 +44,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to add and remove header footer using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to add and remove headers and footers.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/ImageExtract/CImageExtractViewController.m

@@ -38,7 +38,7 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to extract all images from PDF documents using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to print form list information, set up interactive forms (including text, checkbox, radioButton, button, list, Combox, and sign forms, delete forms), and fill out form information.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/Outline/COutlineViewController.m

@@ -38,7 +38,7 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to obtain document outline information using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to create an outline and get existing outline information.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/PDFA/CPDFAViewController.m

@@ -40,7 +40,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to convert PDF to PDFA format, including PDFA1a, PDFA1b using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to convert PDF to PDFA1a and PDFA1b formats.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/PDFPage/CPDFPageViewController.m

@@ -55,7 +55,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to operate multiple pages of pdf document, including insert blank page, insert PDF document page, split page, merge page, delete page, rotate page, replace document page and export document page.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to print form list information, set up interactive forms (including text, checkbox, radioButton, button, list, Combox, and sign forms, delete forms), and fill out form information.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/PDFToImage/CPDFToImageViewController.m

@@ -38,7 +38,7 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to PDF PDF to picture using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to convert PDF to image.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 1
Samples/Samples/Redact/CRedactViewController.m


+ 1 - 1
Samples/Samples/TextExtract/CTextExtractViewController.m

@@ -35,7 +35,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to extract all text from PDF document using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to extract all the text of a PDF.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 1 - 1
Samples/Samples/TextSearch/CTextSearchViewController.m

@@ -37,7 +37,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample shows how to use TextSearch to search text on PDF pages using regular expressions. TextSearch utility class bulids on functionality available in TextExtractor to simplify most common search operations", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to do a full document search and highlight for keywords", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;

+ 30 - 30
Samples/Samples/Watermark/CWatermarkViewController.m

@@ -45,7 +45,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.explainLabel.text = NSLocalizedString(@"The sample code illustrates how to add and remove watermarks, including text and image watermarks. date using API.", nil);
+    self.explainLabel.text = NSLocalizedString(@"This sample shows how to add watermarks, including text, image and tile watermarks, and delete watermarks.", nil);
     
     self.commandLineTextView.text = @"";
     self.isRun = NO;
@@ -99,16 +99,16 @@
     self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Text :%@", watermark.text];
     CGFloat red, green, blue, alpha;
     [watermark.textColor getRed:&red green:&green blue:&blue alpha:&alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%f, green:%f, blue:%f, alpha:%f", red, green, blue, alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"FontSize :%f", watermark.textFont.pointSize];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%f", watermark.opacity];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@", [self getStringFromEnumVertalign:watermark.verticalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%f", watermark.tx];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%f", watermark.ty];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@", watermark.pageString];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%f", watermark.verticalSpacing];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%f", watermark.horizontalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%.1f, green:%.1f, blue:%.1f, alpha:%.1f\n", red, green, blue, alpha];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"FontSize :%.1f\n", watermark.textFont.pointSize];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%.1f\n", watermark.opacity];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@\n", [self getStringFromEnumVertalign:watermark.verticalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@\n", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%.1f\n", watermark.tx];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%.1f\n", watermark.ty];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@\n", watermark.pageString];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%.1f\n", watermark.verticalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%.1f\n", watermark.horizontalSpacing];
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Done. Results saved in AddTextWatermarkTest.pdf\n"];
 }
 
@@ -150,14 +150,14 @@
     [document writeToURL:self.addImageWatermarkURL];
     
     // Print text watermark object message
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%f", watermark.opacity];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@", [self getStringFromEnumVertalign:watermark.verticalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%f", watermark.tx];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%f", watermark.ty];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@", watermark.pageString];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%f", watermark.verticalSpacing];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%f", watermark.horizontalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%.1f\n", watermark.opacity];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@\n", [self getStringFromEnumVertalign:watermark.verticalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@\n", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%.1f\n", watermark.tx];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%.1f\n", watermark.ty];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@\n", watermark.pageString];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%.1f\n", watermark.verticalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%.1f\n", watermark.horizontalSpacing];
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Done. Results saved in AddImageWatermarkTest.pdf\n"];
 }
 
@@ -204,19 +204,19 @@
     [document writeToURL:self.addTilesWatermarkURL];
     
     // Print text tiles watermark message
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Text :%@", watermark.text];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Text :%@\n", watermark.text];
     CGFloat red, green, blue, alpha;
     [watermark.textColor getRed:&red green:&green blue:&blue alpha:&alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%f, green:%f, blue:%f, alpha:%f", red, green, blue, alpha];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"FontSize :%f", watermark.textFont.pointSize];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%f", watermark.opacity];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@", [self getStringFromEnumVertalign:watermark.verticalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%f", watermark.tx];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%f", watermark.ty];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@", watermark.pageString];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%f", watermark.verticalSpacing];
-    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%f", watermark.horizontalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Color : red:%.1f, green:%.1f, blue:%f, alpha:%.1f\n", red, green, blue, alpha];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"FontSize :%.1f\n", watermark.textFont.pointSize];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Opacity :%.1f\n", watermark.opacity];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Vertalign :%@\n", [self getStringFromEnumVertalign:watermark.verticalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Horizalign :%@\n", [self getStringFromEnumHorizalign:watermark.horizontalPosition]];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VertOffset :%.1f\n", watermark.tx];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizOffset :%.1f\n", watermark.ty];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"Pages :%@\n", watermark.pageString];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"VerticalSpacing :%.1f\n", watermark.verticalSpacing];
+    self.commandLineStr = [self.commandLineStr stringByAppendingFormat:@"HorizontalSpacing :%.1f\n", watermark.horizontalSpacing];
     self.commandLineStr = [self.commandLineStr stringByAppendingString:@"Done. Results saved in AddTilesWatermarkTest.pdf\n"];
 }