Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting docx to pdf
Message
From
02/05/2019 03:47:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/05/2019 01:03:06
General information
Forum:
VB.NET
Category:
API
Miscellaneous
Thread ID:
01668348
Message ID:
01668355
Views:
53
Likes (1)
>>If you are using Automation you can simply use SaveAs()
>>
>>loDocument.SaveAs(FULLPATH(m.cDocumentName), 17)
>
>This is for a ASP.NET application running on a server.

Like Rick said, use an external component. I've tried TextControl and TextDynamic. Back then (8 and 13 years ago) both were very capable and could be installed easily, the startup code with registration variables setting wasn't too complicated and both cost around 500€ for an activeX control. Nowadays both have .net versions. I'm still using TextControl for mass conversion of docx to pdf in several clients. Mind you, any floating frames in the .docx file will throw off the calculation of positions and there may be empty pages in the .pdf; everything else renders fine, small memory consumption and no leaks.
The method of using Word itself may be OK for one document or two, but then oWord.quit() or there will be problems, sooner or later. When I tried to automate docx-to-pdf i Word itself, it was consuming about 20M per document (of perhaps 200K size in the average, containing perhaps 2K of text), which it never returned. I had to shut and relaunch Word at least on every 200 files or it would start crashing.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform