|
|
Hello,
I am trying to figure out a way to convert a PDF to an HTML file. I have a need to convert various different files to html files. So far the program I have written (in C#) will convert .doc and .xls to .html. The next thing I need is .pdf to .html.
The way that seems easiest is to open an instance of acrobat in the background, open the pdf, and do a saveas html file. How can I do that? Is there a reference I can import to "control" Acrobat like you can for Word and Excel?
Any help is much appreciated. Thanks!
--Shea
|
|
|
|
|
I don't believe so. There are third party controls that give you access to a PDF to varying degrees, tho.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for the response.
So far all I have found on "controlling" Acrobat is an AutoIt-script UDF (class) that has only been under development for 3 weeks or so, and has no support thus far for a "Save As".
I am surprised there is no class for this in C# already.
|
|
|
|
|
Why ? Microsoft wrote Office, they didn't write Acrobat, and when they put PDF functionality in Office, Adobe sued them, even though it's a public standard.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What I mean is that I can't be the only person wanting to do this. I'm just surprised that some random person (Not necessarily MS or Adobe) has not created a class or something to automate Acrobat.
I'm relatively new to C# so i'm not really sure how to go about it, or i'd take a stab at it myself.
Creating a class to do whatever using the Office PIA's was easy, but without a handy PIA for Adobe, i'm lost...
|
|
|
|
|
Many moons ago, when I had no programming tools bar a copy of VBA hosted in Excel I had a similar quandry. With no budget to speak of, the fools I worked for wanted to do exactly the same...
...What I ended up doing was a whole bunch of crappy/hacky things such as using SendKeys to control Acrobat. It's a cruddy solution, but it works. After a fashion. I just had to put a big warning in place that said "DO NOT TOUCH THE KEYBOARD OR MOUSE WHILST THIS PROGRAM IS RUNNING". As far as I know, some sap still spends most of his days looking at that warning.
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
Hard to answer. I mean, you're basically asking for an article, not a forum reply. What do you know already ? Do you know SQL ? Do you intend to write a professional application, or just use the CRUD stuff that can be built into the presentation layer ? You really should buy a book for this anyhow, but if you're going to get any reply at all, you need to be more specific. Explaining why the tons of hits google would give you have not helped, would be a bonus.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
MaCheNomeVuoi wrote: I need to bypass the latter creation: clsRS232.cs when I'm working with clsSprintFormat.cs.
Impossible. Your best bet is to create methods in the top class that hide the methods you don't want to call in the absolute base class.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
God you come off sounding imperative.
Try this clicker[^]
Consider searching before posting.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
|
|
|
|
|
S.S.Sivaprasad wrote: Please tel me follwing question.
Code for Insert,view,update,delete in sql server2005 and c#.net web application.
Geez, people can't ask questions these days or what?
Oh well, here you go:
"I want to Insert, View, Update delete data with SQL server 2005 in C# web application. I've googled and find this and that in docs. My code looks like this:
Some code = is here();
blahblah;
However I have following problem, it's giving me this error.
....
What did I do wrong, or do you have any good tips regarding something?"
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I see you're unable to learn your lesson. Please, please read the sticky post about how to ask questions before asking this for the third time.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i got the following errors
In the first reprt.
1- Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
this error in the line
oRpt.SetParameterValue("@Groupn", "%");
In the second report
2-Logon failed.
Details: ADO Error Code: 0x
Source: Microsoft SQL Native Client
Description: Login failed for user 'AHMEDMANSOUR\Guest'.
SQL State: 28000
Native Error:
Error in File H:\DOCUME~1\marwaa\LOCALS~1\Temp\AllGroupEmail {FD058C6D-B9FE-4508-AD73-86E793E7E5B3}.rpt:
Unable to connect: incorrect log on parameters.
merwa
|
|
|
|
|
Hi,
I prepared a funtionality for generate cyrstal report.
But the column data is not resizeing while at runtime.
Example:
The first column contain data aside that the second one is not perfect alignment.
So, plz provide suggestion if any...?
Regards
Tarun Singh
Sr. Software Engineer.
mailto:tksingh@zenta.com
|
|
|
|
|
i want to download images from the website. when i open the website then i can see number of thumb nail of images. which when click gives shows the original image. now i want to write a code which when given url of page containing thumbnails download all the real images of the page page.
Suppose i have a thumb nail named thumb1.gif ,thumb2.gif , thumb3.gif which when clicked opens image1.jpeg ,image2.jpeg and image3.jpeg .so wehn i give the url which have iamges of the thumb1,thumb2,thumb3 downloads all the images image1 image2 and image3.
thank you
|
|
|
|
|
This will be tough to implement unless you are well versed with Regular Expressions. System.NET comes with a class named WebClient. Using this you can download the processed HTML of any websites by specifying URL. First you have to download the page which contains image. Now using a regular expression, parse all text and look for images. Find all images and give request to that to download it.
|
|
|
|
|
|
C# is a great language but I am a little lost in the Visual Studio...
How can I enable dragging from the Tree component and the List box component?
The TextBox component has an AllowDrop and RichText has EnableAutoDragDrop... I wish there were consitent properties for this.
I want to be able to drag items from either a tree or a list box and drop them onto either a text box or a Rich Edit box.
I have found a few articles but none that answer this specific qustion.
Thanks
Jinwah
|
|
|
|
|
Hi,
I have an Mdi Parent that contains some Mdi Child forms. Mdi Parent has a Menu, Childforms have their menu too. Why does Mdi Child put all it's menu items to Mdi Parent Menu when shown ? I don't need that behavior.
thanx
zilo
|
|
|
|
|
problem solved
if u're instrested Menu.AllowMerge = false.
zilo
|
|
|
|
|
I have resource files in different languages created by VCS 2005 Express.
I want to use those files to translate reports at runtime.
I have text to be translated as string.
I think I need to search resource file for this string id.
After that I need to return translated string from other resouce file ?
Is this best idea?
Where to find sample code which implements this ?
How to allow application users to add translations at runtime ?
Andrus
|
|
|
|
|
how do we insert or apply bookmarks in a word document using C#.net
note: i have office 2000.
Nitin Raj Bidkikar
|
|
|
|
|
Try
object nullRef = null;
object count = null;
object gotoItem = (object)WdGoToItem.wdGoToBookmark;
object name = (object)"Sample";
Range rng = doc.GoTo(ref gotoItem, ref nullRef, ref count, ref name); where doc is your document.
Deja View - the feeling that you've seen this post before.
|
|
|
|