Beiträge von wpsupport

    By converting to a metafile you would also preserve the text - only a bitmap would remove the text information (and create a big PDF file)

    If you want the text to be not selectable but printable at high resolution, simply set the flag wpTextAsGlyphs in the property wPDF.Modes and export as usual.

    data und datalen spezifiziert einen Speicherbereich falls data nicht nil ist.

    Ansonsten wird aus dem angegebenen "filename" geladen.

    Falls filename angegeben ist, also nicht '' wird dieser zuerst geladen und dann die PDF daten aus dem speicherbereich data/datalen.

    Zur übergaben eignet sich ein memorystream, also

    memorystream.Memory, memorystream.Size für data, datalen.

    Ein Ausschnitt aus der Demo "PDFEdit"

    Hier wird ein Editor für den stamp text verwendet, man kann den Text von oben natürlich direkt zuweisen.

    Code
    var StampScript : String = '@cleartext' + #13 + 
    'PageNo=ALL' + #13 +
    '115,14=Hier steht eine Kopfzeile';
    
    WPViewPDF1.CommandStrEx(  COMPDF_StampText,  StampScript, 0  );

    wPDF will print text as text and not rasterize it. This can only happen on some text which was print using a font which cannot be found or embedded.

    Regular text will be exported "as text". It is also possible that the text is already rasterized (or outlined) in the input data - this can happen with GDI+.

    Rotated PDFs will not be printed rotated. The paper orientation will be adjusted according to the rotated flag.

    PDF rotation actually does not rotate anything, it just sets the display mode for a certain page.

    Um Überschriften zu drucken muss man das Dokument zunächst "stampen". Hierfür bietet sich das stamp script an.

    Dies ist in der Anleitung beschrieben unter

    Use stamping script (COMPDF_StampText)


    Der script könnte dann so aussehen:

    @cleartext

    PageNo=ALL

    115,14=Hier steht eine Kopfzeile

    COMPDF_SetPrintTitle muss vor BeginPrint aufgerufen werden. Es setzt aber nicht einen Titel über den Seiten sondern einzig und allein den Namen der im Druckertreiber verwendet wird.

    Wenn nicht gedruckt wird, liegt es vielleicht daran, dass das WPViewPDF (noch) nicht sichtbar ist.

    Bitte LoadFromFile verwenden, damit eine PDF geladen wird.

    Ich würde ansatt LoadFromString auf jeden Fall LoadFromStream nehmen da bei der umwandlung in einen string eine codepage umwandlung passieren kann. Offenbar handelt es sich um singly byte daten, da ist ein unicode string der falsche container.

    Sure, this would work like the export to a bitmap or EMF.

    *** WPTools 8.06.2 - 25.10.2018 ***

    - fix problem with TMMDataProvider (AV in IDE)

    * border-, color- and table dialogs have been updated for high-res support

    - fix problem that sometimes a row was broken into to pages

    - also display frame lines with borders smaller than 1pixel. (unless $DEFINE HIDE_SMALLBORDER)

    + DocX reader: support szCs

    * DocX reader: fix use of DocDefaults (now only applied if par-properties are not used)

    + StringToColor supports $BBGGRR

    * fix in DocX ZIP reader to solve problem with some images not beeing loaded.