|
hello
want to know some api's for opening and editing pdf file.
in c sharp.(c#).
Asim
|
|
|
|
|
Although the latest Acrobat 5 SDK[^] does not support explicitely .NET (interop come to the rescue at this point), you can generate PDF files with using C# code with this sourceforge library[^].
If instead of generating PDF files from scratch you intend to update existing PDF files, I would suggest to use interop, that is create a small wrapper around the Adobe SDK. If you are lucky, this wrapper will be automatically created for you (the Adobe SDK must be an explicit COM component).
How low can you go ? (MS rant)
|
|
|
|
|
Hi,
How to extract Mobile Phone number user who is watching WAP site using Mobile Internet Toolkit.
|
|
|
|
|
|
why?
just for it
|
|
|
|
|
I have already known solvation. The mobile phone number can be passed in http header. It is necassery to be set such option by cell phone company. (SMS Centrum has to be configured).
bye
|
|
|
|
|
HELLO SIR,
I WANT TO KNOW , HOW CAN I CONVERT MY XSL-FO DOCUMENT TO PDF DOCUMENT USING C#(SHARP). ALSO, FROM PDF TO XSL-FO.
I REALLY NEED THIS.
Asim
|
|
|
|
|
IS THE SHIFT LOCK BROKEN ON YOUR KEYBOARD ????
pdf is a proprietary format, AFAIK the only products that convert to and from it cost money. There is certainly no api call to do it. Isn't XSL-FO just formatting info, how would you convert a pdf document to *just* XML-FO ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hmm...a little snappy are we, Christian?
Its entirely possible to convert from PDF to XSL-FO. It should also be possible to convert from XSL-FO to PDF, considering that PDF is a markup language like any other. You can open a PDF in wordpad or another text editor and see its markup. The only problem you would have is embedding images in a PDF. I have no idea how you would do that.
|
|
|
|
|
As for the comments about VB. I get really sick of hearing those. I've programmed for 17 years. My first language was Pascal, which at the time could have been considered the VB of languages. It wasn't elegant, it wasn't complicated, it was easy, simple, brainless. Without it I would probably never have learned to program as well as I do now. After a couple years programming in Pascal, I moved on to C++, which I have been using ever since, until the last 4 years. I've used VB, Perl, and Java (among others) along with C++ during those years. In the last year C# has replaced C++ as my primary programming language.
What makes me sick about programmers who think they are god is the way they look down on everyon else, especially newbies. VB aint the greatest language, but it does allow people to start learning. Without simple languages like Pascal and VB, a LOT of great programmers would likely never have even tried. What makes me even more disgusted is when programmers who think they are god move from just putting down VB programmers to putting down everyone. WHO GIVES A F*** IF SOMEONE USES CAPS!!! WHO GIVES A F*** IF SOMEONE USES VB!!! At least they are having fun, learning, doing something with their lives other than snapping at anyone who tries to achieve greater knowedge than they currently have, and possibly become more knowledgable than yourself.
Sorry for the rant, but it makes me sick how some programmers have to act like they know everything, and put every one else around them down to make themselves feel better. My last word on the subject...so flame away.
|
|
|
|
|
Jon Rista wrote:
As for the comments about VB. I get really sick of hearing those.
Ah, now the real reason for your reply comes to the fore....
Jon Rista wrote:
I've programmed for 17 years. My first language was Pascal, which at the time could have been considered the VB of languages. It wasn't elegant, it wasn't complicated, it was easy, simple, brainless. Without it I would probably never have learned to program as well as I do now. After a couple years programming in Pascal, I moved on to C++, which I have been using ever since, until the last 4 years. I've used VB, Perl, and Java (among others) along with C++ during those years. In the last year C# has replaced C++ as my primary programming language.
Well, let me just say that
1. Applesoft was my first programming language. Does not mean I think much of it now.
2. You've replaced C++ with C# ? That sounds like a bad/premature decision to me, unless you're doing asp work, in which case one wonders what you were doing with C++. Please tell me you're not writing client applications that exist apart from a browser.
3. I've used VB, vbscript, javascript, C#, etc.
4. I didn't say any of these things, I just quoted them. Why does everyone yell at me ?
Jon Rista wrote:
What makes me sick about programmers who think they are god is the way they look down on everyon else, especially newbies.
Yes, I hate that too.
Jon Rista wrote:
VB aint the greatest language, but it does allow people to start learning.
Yes, learning bad habits and bad design, learning a language that has little use in the real world. C++ is a perfectly good beginners language, if it is taught correctly.
Jon Rista wrote:
What makes me even more disgusted is when programmers who think they are god move from just putting down VB programmers to putting down everyone.
Ah - I see now, the god thing is meant to refer to me, is it ? At what point in your less than a month of being here, writing no articles and 16 posts ( two on this thread ), did you get to know me so well ? I've probably made more posts this week helping people than you have posted at all, ever. You'll find if you become a regular that we get really annoyed when people ask us to do their homework, and when they ask in the lounge. This person asked in the lounge as well as here, and was the last of three people to ask questions that certainly looked like homework requests in quick succession there. So it's possible I was a little cross when I replied, but I was actually doing so with the intention of learning something about XSL-FO myself.
Jon Rista wrote:
WHO GIVES A f*** IF SOMEONE USES CAPS!!!
Most people on the internet. You're new here completely, are you ? all caps is HARD ON THE EYES AND LEADS TO GREATER FATIGUE THAN PROPERLY FORMATTED TEXT. I thought everyone knew that.
Jon Rista wrote:
WHO GIVES A f*** IF SOMEONE USES VB!!!
Not me. The world needs it's share of idiots. Otherwise, who would pay me outlandish amounts of money to write apps in a more efficient language.
Jon Rista wrote:
At least they are having fun, learning, doing something with their lives other than snapping at anyone who tries to achieve greater knowedge than they currently have, and possibly become more knowledgable than yourself.
The world is full of people with more knowledge than me. When I ask such people for help I do so in the proscribed place, observing simple netiquette ( I do not use ALL CAPS, nor do I top post, or ask in the wrong forums, as examples ), and I generally do so after trying to achieve something myself, and post examples of what I have done, rather than expecting people to give me a complete solution.
Jon Rista wrote:
My last word on the subject...so flame away.
In my opinion, you would do well to research who you are attacking before claiming that I am not helpful to others. I also think that it's amusing how insecure all these VB programmers are when people have a joke about what remains the crappiest language still in current use. I didn't say the things in my sig, I am not an island, anyone who has looked at VB with half a brain comes to the same conclusions. Having said that, there are people here who use VB and who still talk to me, so I presume they get the difference between me hating VB, and me hating VBers. You, on the other hand, are apparently too stupid to figure that out. I'd suggest in future you stop and think before posting this sort of crap, I'm not insulted by what you've said, I am just depressed that once again it is proven to me that the intelligence level required for people to find this place and post to it is far lower than I would like.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Wooohooo! Go Christian! Go Christian!
Score one for the home team! Or maybe 5, or 10...
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
*grin* I felt I'd gone too far after I posted it, but I was pretty mad at the time.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian, I wasn't talking directly to you. I was talking to the people who make comments like the ones in your signature. I've never said anything about it before, but I really get disgusted at the attitude such people have. It usually goes beyond just VB and gets personal. I've seen too many new programmers who start out in VB get slammed by people like Alex E. "every ill-educated moron became able to develop software". So no, I wasn't talking to you specifically, I never even said your name. But that comment in your sig really pissed me off. Sorry for the offense.
|
|
|
|
|
Jon Rista wrote:
Christian, I wasn't talking directly to you.
Oh. Um. *blush*.....
Jon Rista wrote:
Sorry for the offense.
I've already said that I thought I went too far in my reply, but I should say so to you directly. I had had a hell of a day yesterday, and to come home and feel that someone was ripping in to me was a little much. I'm sorry to have gone off to such a degree as well.
I think a lot of the VB comments made on this site are made half tongue in cheek, knowing that people are going to quote them and laugh about them. I *know* that VBers make similar comments about C++ programmers being precious about their language, and good luck to them ( they have so little, after all ). It's good to remember that when you see someone quoted in a sig, you're getting what they said out of all context as well.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian, I really must apologize. I had a pretty crappy day yesterday as well (and am currently jobless), and snapped when I saw Alex E.'s comment in your sig. I did not consider that you may have had a hellish day too, and I am truely sorry.
The root of it comes from a few times when I've seen (i.e. in chats, forums, etc.) truely enthusiastic people starting out in VB get slammed by C++ programmers, after which I never saw them again. I find it sad that people will attack someone new to programming simply because they chose to start using VB. When I started programming, people suggested I use C rather than Pascal, but no one ever ripped into me. I was helped, taught, and I learned. After a little over a year I moved to C++. Today, if you don't start out in C++, your shunned, belittled, and laughed at. That gets to me.
|
|
|
|
|
To be honest, I agree with you 100% that if people are using ANY language, and having fun, then good for them. I'm sorry to think that people would attack someone who is trying to learn, although I would certainly try to steer someone towards C++, or at least make them understand the limitations of VB, it's sad to think that people may give up altogether because someone decides to rip into them.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Jon Rista wrote:
As for the comments about VB. I get really sick of hearing those. I've programmed for 17 years.
Wow! 17 years! According to your profile your were born in '79. I'm Impressed coding since your were 6. WOW! Was Pascal out in 85?
|
|
|
|
|
Yes, I was born in 1979. And yes, pascal was out long befor I was born. And yes, I was 6 when I wrote my first program. I was interested in ship modeling at the time, and my first program calculated the height of each mast based on the width of the ship at three different points. After that I became interested in model railroading in N scale, and my next few programs were to help me lay out the tracks. Programming was just a means to an end back then.
|
|
|
|
|
Jon Rista wrote:
The only problem you would have is embedding images in a PDF. I have no idea how you would do that.
That's precisely where my point lay. PDF is a richer format than XSL-FO would allow, I would think. I didn't think I was snappy though, I was a little pre-annoyed because this was also posted in the lounge, but I was really hoping to find out if it was possible - I don't know that much about XSL-FO.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Well, if your converting from XSL-FO to PDF, its unlikely that you have images. XSL-FO is a formatting language, and I normally see it used to format text based information. Actually, I dont think I've ever seen it used with images, so far. That would make it simpler to translate into a PDF.
PDF seems to follow the same sort of spec as MIME. You define objects, be it text or image, along with formatting and encoding instructions (well, as far as I have been able to discern from opening .pdf's in wordpad anyway). You can see where images begin and end by the binary data, and you can usually make out paragraphs and other formatting markup. Its kind of intriguing, and I'd love the challenge of writing a translator for XSL-FO to PDF. I've got too many things on my plate right now, though.
|
|
|
|
|
Here is the Apache FOP project[^] for you. binaries and full source code.
You've got this one[^] too (written in Java as well). The interesting stuff is I wanted to provide you with entry points. Now you'll probably get simple C++ implementations by searching these, related, or by posting on a xml NG (public comp.xml NG is highly recommended, as well as the W3C XSL-FO ml [^]of course).
How low can you go ? (MS rant)
|
|
|
|
|
use Antenna House XSL Formatter - you can use it to generate PDFs from XML
http://www.antennahouse.com/[^]
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Given:
class VirtualClass
{
public virtual void VirtualMethod()
{
Console.WriteLine("VirtualClass:VirtualMethod");
}
}
class OverrideClassA : VirtualClass
{
public override void VirtualMethod()
{
Console.WriteLine("OverrideClassA:VirtualMethod");
base.VirtualMethod();
}
}
class OverrideClassB : OverrideClassA
{
public override void VirtualMethod()
{
Console.WriteLine("OverrideClassB:VirtualMethod");
base.VirtualMethod();
}
}
and the instantiation:
OverrideClassB ocb=new OverrideClassB();
How can I access just the VirtualMethod in OverrideClassA? In C++, I used to be able to say ((OverrideClassA)ocb).VirtualMethod(); , but this still invokes the "B" class method in C#.
How do I do this? (A typical case might be where I have an edit control that I've derived some functionality, and in a particular case, I want to use the base class' implementation).
Thanks,
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator.
|
|
|
|
|
I've not been inn this exact scenario, but typically I've used the base keyword to get at the base classes procedures.
so you would have something like this...
base.Virtualmethod();
It's been a while and I could be wrong
Mark Conger
|
|
|
|
|