[Solved] from vb to c++

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
clochard13
Posts: 4
Joined: Fri Dec 28 2007

[Solved] from vb to c++

Post by clochard13 »

i need The equivalent code in c++ for this vb code

Code: Select all

Private Sub changedocinfo_Click() 

Dim pdfdoc As New CDIntfEx.Document 

pdfdoc.Open ("C:\Temp\Test.pdf") 
pdfdoc.Title = "Some Title" 
pdfdoc.Author = "Some Author" 
pdfdoc.Creator = "Some Creator" 
pdfdoc.Subject = "Some Subject" 
pdfdoc.Keywords = "Some Keywords" 
pdfdoc.Save ("C:\Temp\NewTest.pdf") 

Set pdfdoc = Nothing 

End Sub
To change pdf proprities
clochard13
Posts: 4
Joined: Fri Dec 28 2007

Solution

Post by clochard13 »

Solution :

m_myCtl->Open ((const char *)fileNameIn, "");
m_myCtl->ObjectAttributeStr("Document","Title",fileNameIn);
........
Post Reply