Jump to content

Vandrovnik

Members
  • Content Count

    584
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Vandrovnik


  1. 4 hours ago, Brian Evans said:

    Examining the PDFs I see they store the image using different filters: DCTDecode (fastreport) vs FlateDecode (SynPdf). The first is basically JPEG (larger and often has color shifts in parts)  while the second is like ZIP (smaller since the sample is a very uniform image). 

     

    Are you comparing colors between PDFs or with the source image?

    I have created and atteched another output using SynPdf - now I enforced JPG compression of the bitmap, so that it also uses filter DCTDecode. Problem remains, colors do not match.

    TestSynPdf-jpg.pdf


  2. 1 hour ago, Brian Evans said:

    Examining the PDFs I see they store the image using different filters: DCTDecode (fastreport) vs FlateDecode (SynPdf). The first is basically JPEG (larger and often has color shifts in parts)  while the second is like ZIP (smaller since the sample is a very uniform image). 

     

    Are you comparing colors between PDFs or with the source image?

    I do compare both - SynPdf x original bitmap and SynPdf x Fastreport.

    Later I tried to open the PDF in another tools (online PDF viewers, MS Edge, Libre Office) and there are colors from TestSynPdf.pdf OK. So may be it is just a bug in Adobe Acrobat Reader?


  3. Hello,

     

    I have noticed that in PDF exported using SynPdf, colors in PDF do not match original colors.

    I have created a test application, which displays colors on screen and allows to export them to PDF using SynPdf and using FastReport. Colors should be the same, but are not (RGB of the left bottom square should be 191, 0, 255, but is 223, 0, 255 using SynPdf).

    Is there something wrong in my export procedure, or is it a bug in SynPdf?

     

    Kind regards,

     

    Karel

     

     

    PdfColors.png

    PdfColors-source.zip

    TestSynPdf.pdf

    TestFastReport.pdf


  4. I would suggest to store "server" and "database folder" as separate fileds in your INI.

    Server=MySrv:

    Dir=C:\MyApp\Data\

     

    It is much easier than to properly split it later. (App installed on another drive than C : , database on linux server, embedded database with empty server name etc.) 


  5. 10 hours ago, Vincent Parrett said:

    One thing I would point out is do not get a certificate that is issued on a Yubikey - there is absolutely zero way to automate signing - the yubikey uses the windows smart card api and absolutely prompts on every file you sign!

     

    Where do you have to enter the password - on your computer, or directly on the device? On the computer, we could use AutoHotKey, which would enter the password instead of us 🙂


  6. 4 minutes ago, David Schwartz said:

    This was a holdover from CD-ROMs. It's actually a really hairy securitiy risk. You had to go into the ROM-BIOS of the machine and enable a setting to run it, but I'm not sure that even exists any more.

     

    At one point, I was looking at something that did that predictably and found a company in Japan or S. Korea that made thumb drives that registered themselves with Windows as CD-ROM drives, thereby enabling the autorun.inf to be called. I got some demo devices for testing and they worked as advertised, but that project ended up not proceeding. A year or so later I happened to check back with the company and they were no longer selling those devices.

     

    I've been in many places where their IT Dept literally disables the ability to mount any sort of external memory device via USB to their computers. That does not keep you from transferring files, it just makes it a bit more convoluted. (This is where being a Windows programmer comes in handy!)

    In my opinion, Autorun.inf is just the ability of Windows to automatically start something from CD, DVD, USB etc.

    In BIOS, you can enable booting from CD, DVD or USB drive etc., but it has nothing to do with Autorun.inf.


  7. 17 hours ago, aleber said:

    Hello everyone,
    we are having problems with Delphi 11.2 on Windows 10. The IDE doesn't crash, but in fact doesn't respond to commands (save, compile, close windows, ...) In the Windows event log we see quite incomprehensible / unhandled .NET errors. We also restored a backup of the entire machine, without success. The only thing that intervenes is the automatic setup (by Windows Update) of "Microsoft 365 Apps for enterprise", "Microsoft Edge", and especially "Microsoft Edge WebView2 Runtime".

    Has anyone else experienced this problem? Any suggestions on how to solve it (possibly without reinstalling the IDE)?

    Thank you,

    AB

    Hello, after update to Delphi 11.2, it has happened to me a few times (IDE did not respond, so I killed it from Task Manager). Last time it happened when I tried to edit lines between $IFDEF ... $ENDIF.


  8. 3 hours ago, Attila Kovacs said:
    
    Unit1.pas.20: begin
    0041A868 55               push ebp
    0041A869 8BEC             mov ebp,esp
    0041A86B 6A00             push $00
    0041A86D 6A00             push $00
    0041A86F 6A00             push $00
    0041A871 53               push ebx
    0041A872 8B5D08           mov ebx,[ebp+$08]
    0041A875 8B5B0C           mov ebx,[ebx+$0c]

     

    ebx is very well initialized

     

    You have probably changed the unit; in my environment, access violation occurs, too.

     

    image.thumb.png.f4e718e2bb8ee4884067216a574b0138.png


  9. 40 minutes ago, Fabian1648 said:

    When the user clicks on the object to be edited, I call an input screen consisting of a display area and keyboard keys. Advantages of the approach: 100% compatible with any Android device and keys big enough to avoid taking a magnifying glass to write something.

     

    But then you should support national keyboards, too? (ie. Czech keyboard has different layout than US keyboard, contains letters like "č" etc.) And what about users, which do prefer their Android virtual keyboard?


  10. 4 hours ago, Fabian1648 said:

    Here is my problem:

     

    Why the default TFormatSettings.ShortDateformat displays the year with 4 characters under Windows, but only with 2 characters under Android?

     

    Isn't there a way to notify Android that you want the year with 4 characters instead of 2 without changing the regional settings?

     

    You can still use:
     

     var MyFormat: TFormatSettings;
     MyFormat:=TFormatSettings.Create; // obtains default settings
    
     if pos('yyyy', MyFormat.ShortDateFormat)<=0
      then MyFormat.ShortDateFormat:=StringReplace(MyFormat.ShortDateFormat, 'yy', 'yyyy', []);
    
     ... DateToStr(now, MyFormat);

     

     

    • Like 1

  11. On 3/8/2022 at 5:47 PM, Vandrovnik said:

    Hello,

     

    I am not able to start 1 Android app of 3 apps since migration to Delphi 11.

    I did the "Revert system files to default" on Libraries.

     

     

    I have upgraded to Delphi 11.1. I have deleted folders Android\Debug, Android\Release, Android64\Debug, Android64\Release. Now it works 🙂

    • Like 1

  12. Hello,

     

    Please is it possible to use Android 12 emulator with Delphi 11.1? When I create and try to run it, I get this message in idea.log: "PANIC: Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host."

    Or is there a better way of testing the application with Android 12, but without physical Android 12 device?

     

    Kind regards,

     

    Karel

     

×