Hi
I'm just trying to follow the small example put into the "Technical Note 7.pdf" found on your site, however when this line of code
PDFCreactiveX1.CreateObject (acObjectTypeText, 'text1');
is to be executed I get the "Not Implemented" error! What is that? Is that because of the demo version?
Thanks,
Ivan
Not Implemented
Hello,
The small Delphi example was written for version 1.5 of the PDF Creator.
It is still very valid for version 2.0 but you need to add one function to your code: please call SetLicenseKey right after initializing the PDF Creator object.
The error you are getting is not due to SetLicenseKey however, if you try to create an acObjectTypeLine by example or any other object instead of a text, will it work?
If you are still getting the error please post the code you are using to check it.
Thanks.
The small Delphi example was written for version 1.5 of the PDF Creator.
It is still very valid for version 2.0 but you need to add one function to your code: please call SetLicenseKey right after initializing the PDF Creator object.
The error you are getting is not due to SetLicenseKey however, if you try to create an acObjectTypeLine by example or any other object instead of a text, will it work?
If you are still getting the error please post the code you are using to check it.
Thanks.
Hi
Well I added SetLicenseKey and stole stuff from demo project mdiapp.dpr
Now I have this code... which doesn't raise an error, but it also appears to do absolutely nothing.
PDFCreactiveX1.Open('c:\Tmp\amyuni\photo.pdf','');
PDFCreactiveX1.SetLicenseKey(" "," ");
PDFCreactiveX1.CreateObject (acObjectTypeLine, 'text1');
//Position the text
PDFCreactiveX1.ObjectAttribute['text1', 'Left'] := 1600;
PDFCreactiveX1.ObjectAttribute['text1', 'Top'] := 1000;
PDFCreactiveX1.ObjectAttribute['text1', 'Right'] := 1700;
PDFCreactiveX1.ObjectAttribute['text1', 'Bottom'] := 1100;
//Set the Text attribute of text1
PDFCreactiveX1.ObjectAttribute['text1', 'Text'] := 'Dolphin';
PDFCreactiveX1.Refresh;
It should write Dolphin below the photo once refresh executes, but it doesnt do anything. Should I have used any other methods?
Thanks,
Ivan
Well I added SetLicenseKey and stole stuff from demo project mdiapp.dpr
Now I have this code... which doesn't raise an error, but it also appears to do absolutely nothing.
PDFCreactiveX1.Open('c:\Tmp\amyuni\photo.pdf','');
PDFCreactiveX1.SetLicenseKey(" "," ");
PDFCreactiveX1.CreateObject (acObjectTypeLine, 'text1');
//Position the text
PDFCreactiveX1.ObjectAttribute['text1', 'Left'] := 1600;
PDFCreactiveX1.ObjectAttribute['text1', 'Top'] := 1000;
PDFCreactiveX1.ObjectAttribute['text1', 'Right'] := 1700;
PDFCreactiveX1.ObjectAttribute['text1', 'Bottom'] := 1100;
//Set the Text attribute of text1
PDFCreactiveX1.ObjectAttribute['text1', 'Text'] := 'Dolphin';
PDFCreactiveX1.Refresh;
It should write Dolphin below the photo once refresh executes, but it doesnt do anything. Should I have used any other methods?
Thanks,
Ivan
Hello,
You are calling:
I am assuming PDFCreactiveX1 is the PDF Creator Control you added to your form, am I right?
If this is the case please try to call:
Will you see the file photo.pdf displayed in the Control?
You are calling:
Code: Select all
PDFCreactiveX1.Open('c:\Tmp\amyuni\photo.pdf','');
If this is the case please try to call:
Code: Select all
PDFCreactiveX1.Open('c:\Tmp\amyuni\photo.pdf','');
PDFCreactiveX1.Refresh,
I think there has been some missunderstanding. I do see the PDF file in the control. The problem I have is that I don't see the text object that I add to the PDF file. No changes are ever made. Even if I save it under a different name and open it - the file looks the same. Just the size of the file has grown (I'm guessing the control adds some data).
Hello,
I will post here the code you get from our Technical Support that solved this issue for further reference.
I will post here the code you get from our Technical Support that solved this issue for further reference.
Code: Select all
PDFCreactiveX1.Open('C:\temp\photo.pdf','');
PDFCreactiveX1.SetLicenseKey('Amyuni Document Converter
Demo','07EFC.......6DED4BB85E9C');
PDFCreactiveX1.CreateObject (acObjectTypeText, 'text1');
PDFCreactiveX1.ObjectAttributeStr ( 'text1', 'Left', '160');
PDFCreactiveX1.ObjectAttributeStr ( 'text1', 'Top', '100');
PDFCreactiveX1.ObjectAttributeStr ( 'text1', 'Right', '270');
PDFCreactiveX1.ObjectAttributeStr ( 'text1', 'Bottom', '200');
PDFCreactiveX1.ObjectAttributeStr ('text1', 'Text', 'Dolphin');
PDFCreactiveX1.DoCommandTool (53776);
PDFCreactiveX1.Save('C:\temp\photo1.pdf',0);