1
My question is this. I have a String with more than 6000 characters and need to put the contents of this variable in a file .pdf. only that saved to pdf the text is in a single line, it does not break the string to put on other lines.
I’m going through here the code of how to save the string in .pdf.
...
uses
  SynPdf;
{$R *.dfm}
...
procedure TForm2.SalvarPdfClick(Sender: TObject);
var
  PDF : TPdfDocumentGDI;
  Page: TPdfPage;
  FileName: string;
  I, J: Integer;
begin
  ...
  Descricao := JsonValue.Value;
  PDF  := TPdfDocumentGDI.Create();
  try
    PDF.Info.Author       := 'Autor';
    PDF.Info.CreationDate := Now;
    PDF.Info.Creator      := 'Criador';
    PDF.Info.Subject      := 'Assunto';
    PDF.Info.Title        := 'Título'
    Page := PDF.AddPage;
    Page.PageLandscape    := False;
    PDF.DefaultPaperSize  := psA4;
    PDF.VCLCanvas.TextOut(100,100, Descricao);
    PDF.SaveToFile('C:\MySysten\Pdf\Pdf_Publ.pdf');
  finally
    PDF.Free;
  end;
The text stays like this and does not break to the next lines 
I am used Synopse PDF engine to save in .pdf
I’ll take a look yes. It can only be with
RichEdithas a withMemo?– Edu Mendonça
Try to adapt...
– ProsTecnologia