Hello,
In my application, I need to transfer a PDF-document with several pages, to a Word-document.
I want to do that in the same way a report in RPREVIEW.PRG is exported to a Word-document.
The result has to be a image of every page in my PDF-document on a page in the new Word-document.
I did have a look at RPREVIEW.PDF, but the big difference is the fact that I start with an EMF-document, and not a PDF-document.
Anyone any suggestions?
Thank you very much in advance.
Combination of PDF and Word-document - rpreview
Combination of PDF and Word-document - rpreview
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Combination of PDF and Word-document - rpreview
I need to transfer a PDF-document with several pages, to a Word-document.
Code: Select all | Expand
function PdfToWord( cPdf )
local oWord
if !File( cPdf )
? cPdf + " not found"
return nil
endif
if ( oWord := WinWordObj() ) == nil
? "Word not loaded"
return nil
endif
oWord:Documents:Open( TrueName( cPdf ), .f. )
oWord:ScreenUpdating := .t.
oWord:Visible := .t.
return nil
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Combination of PDF and Word-document - rpreview
Mr. Rao,
Thank you for trying to help me.
I did a test with your suggestion. Unfortunately there are 2 problems
1. The layout of the document is completely wrong.
2. The PDF is converted to editable text. But I need to have it as an image.
Any idea?
Thanks.
Thank you for trying to help me.
I did a test with your suggestion. Unfortunately there are 2 problems
1. The layout of the document is completely wrong.
2. The PDF is converted to editable text. But I need to have it as an image.
Any idea?
Thanks.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
Re: Combination of PDF and Word-document - rpreview
Hello Michel,
In my DMS, I have solved it by monitoring the directory with a timer.
If a new file, such as a PDF, WORD, RTF, etc., is added to a directory,
a preview is created as a JPG.
The original file is opened, and a screenshot is automatically created, which is then saved as a JPG.
Best regards,
Otto
In my DMS, I have solved it by monitoring the directory with a timer.
If a new file, such as a PDF, WORD, RTF, etc., is added to a directory,
a preview is created as a JPG.
The original file is opened, and a screenshot is automatically created, which is then saved as a JPG.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************