Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Word document into PDF - urgent
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00691981
Message ID:
00692415
Views:
29
I choose Adobe Distiller in Printer dialog box and the Document was printed correctly using Times New Roman font...

So, Title worked fine.

However, here is what I got trying to print the Book:
%%[ ProductName: Distiller ]%%
%%[ Page: 1 ]%%
%%[ Page: 2 ]%%
%%[ Page: 3 ]%%
%%[ Page: 4 ]%%
%%[ Page: 5 ]%%
%%[ Page: 6 ]%%
%%[ Page: 7 ]%%
%%[ Page: 8 ]%%
%%[ Page: 9 ]%%
%%[ Page: 10 ]%%
%%[ Page: 11 ]%%
%%[ Page: 12 ]%%
%%[ Error: Vilna cannot be embedded due to licensing restrictions.]%%
%%[ Error: invalidfont; OffendingCommand: xshow ]%%

Stack:
[54 66]
()


%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
>>>>Well, at least I found a font, which works. It's CourierWINCTT.zip from the site.
>>>>
>>>>The only problem is to replace font from one to another in the whole document. I think, it could be done through Automation, but I'm a complete novice in this respect...
>>>>
>>>>May be Tamar will jump into this thread with suggestions...
>>>
>>>Something like this:
>>>oWord = CREATEOBJECT("Word.Application")
>>>oWord.documents.open(fullpath(file_name))
>>>WITH oWord.activedocument.RANGE(30,40)
>>>			.FONT.NAME = "Courier New"
>>>			.FONT.bold = .T.	
>>>			.FONT.SIZE = 14
>>>ENDWITH
>>>oWord.activedocument.SAVE
>>>oWord.QUIT
>>
>>Thanks. I think, I need to read text word by word and check font of each word. If it's Times New Roman, I'll convert. If it's Vilna or other Hebrew Font, I leave as it is...
>
>This may shed some light on font issue in PDF: http://www.planetpdf.com/mainpage.asp?WebPageID=362
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform