News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Opening PDF in Masm

Started by trodon, December 18, 2006, 06:28:03 PM

Previous topic - Next topic

trodon

I just searched litle about pdf files and asm, and cannot find nothing about that
is anyone even try to create simple pdf reader?
and can anyone provide me with some example sources, or hints,documents etc.?

pro3carp3

LGC

ramguru

I think it's just too complex thing to implement. , it requires damn hard work (image rendering,  jpeg2000, scaling, vector graphics etc).. 

Tedd

ShellExecute("acrord32 <pdf-file>")

..with correct parameters, etc :wink
No snowflake in an avalanche feels responsible.

ramguru

Quote from: Tedd on December 18, 2006, 06:58:50 PM
ShellExecute("acrord32 <pdf-file>")

..with correct parameters, etc :wink

actually:

    fn ShellExecute, hWnd, "open", "C:\help\helpme.pdf", 0, 0, SW_SHOWNORMAL

Meaning no need for acrord32, and pass full path

trodon

Anybodu tryed to make something?
is there any example sources in asm?

ecube

They're c libraries out there that can work with pdf files, sure it wouldn't be that difficult to convert to masm.

noxidsoft

Quote from: ramguru on December 18, 2006, 07:43:20 PM
actually:

    fn ShellExecute, hWnd, "open", "C:\help\helpme.pdf", 0, 0, SW_SHOWNORMAL

Meaning no need for acrord32, and pass full path

Hey, I am looking to open PDF files in my program and collect mouse co-ords from clicking on it, do you know if anyone has done this yet?

Farabi

Quote from: noxidsoft on May 02, 2010, 08:37:36 AM
Quote from: ramguru on December 18, 2006, 07:43:20 PM
actually:

    fn ShellExecute, hWnd, "open", "C:\help\helpme.pdf", 0, 0, SW_SHOWNORMAL

Meaning no need for acrord32, and pass full path

Hey, I am looking to open PDF files in my program and collect mouse co-ords from clicking on it, do you know if anyone has done this yet?

Just like E^Cube said, you will need a third party library.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

sysfce2

Quote from: noxidsoft on May 02, 2010, 08:37:36 AM

Hey, I am looking to open PDF files in my program and collect mouse co-ords from clicking on it, do you know if anyone has done this yet?

Do some searching for COM and OLE.  It is pretty challenging stuff though.

donkey

PDF document format (Portable Document Format) is a language based format that inherits from Postscript, it contains the instructions to render the document. You would first have to render the PDF document to a window then track the mouse position relative to Postscript tags in the script, not a simple task but obviously something that can be done with a bit of research. Most PDF viewers are fairly large and complex, you might try Sumatra which is a light weight open source viewer for examples of rendering PDF files.

http://blog.kowalczyk.info/software/sumatrapdf/index.html

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable