Thanks, looking at the file right now
Beiträge von wpsupport
-
-
No, this was added much later. wPDF V2 is pretty old now.
-
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.
-
Sure, please send a sample metafile if possible.
-
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"
Code
Alles anzeigen// ----------------------------------------------------------------------------- // Stamping Demo - uses COMPDF_StampText. The text will also be written to PDF // ----------------------------------------------------------------------------- var StampScript : String = 'PageNo=ALL' + #13 + // Work on all pages '@ClearText' + #13 + // Clear pervious script 'Color=1 0 0' + #13 + // Set color - red 'Font=Arial' + #13 + // Set font - Arial // position measured in 72 dpi. Top/Left = 0,0! '250,30=Page [#]/[##]'; // Set the text. [#]/[##] are placehoders procedure TForm1.Applystampscript1Click(Sender: TObject); begin if (pdf<>nil) and ShowPopupEditor('Scripted Stamping', StampScript, true) then pdf.CommandStrEx( COMPDF_StampText, StampScript, 0 ); end;
Hier wird ein Editor für den stamp text verwendet, man kann den Text von oben natürlich direkt zuweisen.
-
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.
-
There is a misunderstanding pdfPrint does not print the loaded PDF file it internally creates a PDF engine, loads the file, prints it and destroy the PDF engine.
To print the PDF loaded in a WPViewPDF use a command or the Print procedure.
-
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.
-
Please put the $define in the file WPINC.INC. It should be there, but it it true, it was not, at least not for the STD version.
-
It is supported - but it is required that the provided DLL wp_type1ttf.dll also was copied to the directory of the executable.
-
-
-
wpZoomWithMouseWheel is a flag in EditOptionsEx
-
You can set the property Zooming to 500, no problem with that. I am using a trackbar for that. There is also the hot key implemented - Ctrl + Mousewheel.
-
Sure, this would work like the export to a bitmap or EMF.
Code
Alles anzeigenvar bit: TBitmap; w, h: Integer; const pagno = 0; begin bit := TBitmap.Create; w := MulDiv(WPRichText1.Header.PageWidth, WPScreenPixelsPerInch, 1440); h := MulDiv(WPRichText1.Header.PageHeight-5, WPScreenPixelsPerInch, 1440);; bit.Width := w; bit.Height := h; bit.Canvas.Brush.Color := clWhite; bit.Canvas.FillRect(Rect(0, 0, w, h)); WPRichText1.PrintPageOnCanvas(bit.Canvas, Rect(0, 0, w, h), pagno, [ppmPaintTransparent, // ppmPrintFrame, ppmStretchWidth, ppmStretchHeight, ppmIgnoreSelection, ppmUseEvents], 0); // Now assign that bitmap to a JPEG or PNG object to save compressed bit.Free; end;
-
*** 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.