0

I can't get many printers or PDF file to do a formfeed in C with \x0c or \f in printf

printf("\f");
printf("\x0c");

Just prints a strange character. Any way to get it to take ansi ascii?

rdarioduarte
  • 1,929
  • 2
  • 21
  • 29
  • Hmmm, try enclosing it within newlines: `putchar('\n'); putchar('\f'); putchar('\n');` – pmg Aug 06 '19 at 08:05
  • 2
    You might like https://stackoverflow.com/questions/3091524/what-are-carriage-return-linefeed-and-form-feed – pmg Aug 06 '19 at 08:05
  • you may need to look for the form feed character and insert a page break manually there https://www.reddit.com/r/learnpython/comments/6994n0/creating_a_new_page_in_a_pdf_from_a_formfeed/ https://forum.aspose.com/t/create-a-new-page-from-text-file-using-form-feed/176718/7 – phuclv Aug 11 '19 at 02:26

0 Answers0