AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

AcroPDF print in reverse order

Ein Thema von haidomingo · begonnen am 14. Okt 2009 · letzter Beitrag vom 14. Okt 2009
Antwort Antwort
haidomingo

Registriert seit: 22. Jul 2009
23 Beiträge
 
#1

AcroPDF print in reverse order

  Alt 14. Okt 2009, 10:44
Hi,
I use AcroPDF.dll : AcroPDF.printAll;
Now I want to print in reverse order.
I could use the function AcroPDF.printPages (LastPage, FirstPage).
How can I get the total number of pages in the PDF document? (lastPage?).
I found with google this dll
This Counts the total number of pages of pdf file.
Unfortunately the call to the DLL returns always -1.
The code of dll is: Titel der Webseite
The code is not compatible with Delphi 2010.
Is there another way to print in reverse order?

Thanks.
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: AcroPDF print in reverse order

  Alt 14. Okt 2009, 10:47
Try PAnsiChar instead of PChar in the call
Markus Kinzler
  Mit Zitat antworten Zitat
haidomingo

Registriert seit: 22. Jul 2009
23 Beiträge
 
#3

Re: AcroPDF print in reverse order

  Alt 14. Okt 2009, 10:59
Zitat von mkinzler:
Try PAnsiChar instead of PChar in the call
I changed:

function GetPdfPageCount(filename: pchar): integer; stdcall; external 'PdfPageCount.dll'; to
function GetPdfPageCount(filename: PAnsiChar): integer; stdcall; external 'PdfPageCount.dll'; and call:

..GetPdfPageCount(PAnsiChar('C:\Progetti\Totem\file.pdf'))...
and now it works perfectly.

Really simple (stupid me).

Thanks
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:17 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz