Beiträge von wpsupport
-
-
With WPViewPDF PLUS you can merge several PDF file into a new one. During this process it is possible to skip pages in the source files. The method can be also called directly from the WPViewPDF PLUS DLL: pdfMerge()
-
Das geht nicht. Es gibt keine Eigenschaft die eine PDF derart spezifiziert.
Es lassen sich viele Drucker in SW umschalten. Man kann z.b. einen Alias auf den Treiber erstellen der so konfiguriert wird und dann über diesen Alias drucken.
-
WPTools standardizes text which is using the default font. This is because otherwise it would not be possible to change that default style later and see updated text.
If you do not want this use the compiler symbol
DONT_FIX_DEFSTYLE
Either in the options of your program or in WPINC.INC.
You can also use the option -DontFixAttr in the formatstr option of the Load...() function.
vWP.LoadFromStream(vMStream, 'RTF-DontFixAttr');
-
Please always tell me what problem you need to solve.
The options you are using are probably not intended to solve your problem but a completely different one.
-
f0 just means the font with index 0. It is always remapped to the fonts which are used in the editor.
So the loaded font does not necessarily get the index 0.
I also assume your text defines a font - so usually this font is loaded. You cannot expect that a font gets number 0, that happens dynamically.
I assume you want the loaded text to have the standard font of your text.
You can use -IgnoreFonts and -IgnoreFontSize
-
-
WPTools V9.2 will have the option wpfOnImageScaleUseMaximumRowHeight to limit the height of an image to the maximum row height, if one was defined. (Use CTRL+Drag to apply such a fixed row height)
-
Das Setup vom 22.6.2020 unterstützt Delphi 10.4
Ansonsten kann man, da der Quelltext beiliegt, natürlich die Standardversion mit höchsten minimalen Änderungen auf neueren Delphi Versionen kompilieren.
-
Zitat
Adjust the row height to cause the cell width to increase or decrease?
Currently there are no plans to keep aspect ratio when changing row height or cell width.
-
Mit dem command compdf_printusescaling kann man einstellen ob die seite auf das Papier verkleinert werden soll.
Default ist 2, man kann das mit dem Parameter 0 abschalten.
Eine Umschaltung von Farbe findet nicht statt.
-
in PDF the size is encoded into points - this is the reason for rounding issues.
-
Das geht - wenn man die PDF Seite als PNG abspeichert und mittels des PaintWatermarkEvents des TWPRichText in demH intergrund der Seite ausgibt.
-
In some cases such manipulations create more than one change - then there can be more undo steps necessary.
-
The TextObject is always created and reloaded. But I found that it is loaded at a different position in WPIOWPtools if there is text before it.
I checked the code to make sure the property "StreamName" is accessible in the BeforePasteImage event also then.
-
I do not want the new section to have a header/footer unless of course it contains its own header/footer.
function AppendAsSection(FromCollection: TWPRTFDataCollectionBase;
Options: TWPAppendAsSectionOptions = []): TWPRTFSectionProps;
The result object as a property named "select" which has the flag wpsec_SelectHeaderFooter. Did you set it?
-
Zitat
So it seems just copying and pasting a linked image by itself is not performing correctly.
A linked image is not pasted as bitmap but as text. The event is triggered after the text was loaded, the code which does it was recently updated on 20.6.. Do you use the latest 9.1?
-
I cannot reproduce this effect.
-
Binary data in RTF can contain the character #0 which causes truncation by some databases.
You can force ANSI data by using WriteObjectMode wobRTFNoBinary.
-
Sorry, I do not understand what problem you need to solved. Show Thumbnail?`
A linked image will trigger the OnRequestHTTPImage event, that should also happen when pasting not just loading.
CodeTWPRequestHTTPImageEvent = procedure(RTFData: TWPRTFDataCollectionBase; Reader: TWPCustomTextReader; const LoadPath, url: string; TextObject: TWPTextObj; var Ok: Boolean) of object;
There are other methods to detect if you are in the paste operation while processing this event, but checking WPRichText.Memo._InClipboardOP=true is probably the easiest.
ZitatActually, It would be even better if I could intercept the non-linked image being pasted and convert it into a linked image by pulling it into my database (this way I could scale it, add borders etc as the user configured it).
So you can use that event to avoid linked images if that is the purpose.