| 
					
				 | 
			
			
				@@ -45,8 +45,18 @@ int main(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     PDFUsedFont* arialTTF = pdfWriter.GetFontForFile("C:\\Windows\\Fonts\\arial.ttf"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  ADD CONTENT  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  ******************** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    PDFFormXObject* image = pdfWriter.CreateFormXObjectFromJPGFile("C:\\Users\\bad-p\\Desktop\\Work Folder\\VS CODE\\SanAntonioPass.jpg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!image){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        printf ("hiiii"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->q(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->cm(1,0,0,1,0,0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //pageContentContext->cm(0.4,0,0,0.4,57.5,241); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->Do(pdfPage->GetResourcesDictionary().AddFormXObjectMapping(image->GetObjectID())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->Q(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    delete image; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  set font color to black 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /*pageContentContext->k(0,0,0,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->k(0,0,0,1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  set text object 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageContentContext->BT(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  set font  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,16 +66,7 @@ int main(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  insert text into PDF 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageContentContext->Tj("Text placed and scaled with Tm"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  end of text 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pageContentContext->ET();*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    PDFFormXObject* image = pdfWriter.CreateFormXObjectFromJPGFile("C:\\Users\\bad-p\\Desktop\\Work Folder\\VS CODE\\SanAntonioPass.jpg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (!image){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        printf ("hiiii"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pageContentContext->q(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pageContentContext->cm(1,0,0,1,0,0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //pageContentContext->cm(0.4,0,0,0.4,57.5,241); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pageContentContext->Do(pdfPage->GetResourcesDictionary().AddFormXObjectMapping(image->GetObjectID())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pageContentContext->Q(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    pageContentContext->ET(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  END PAGE, WRITE PDF. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  ********************  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pdfWriter.EndPageContentContext(pageContentContext); 
			 |