Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
PDF shows blank page

all. I am writing the PDF from URL. But unfortunately, after writing, my new created pdf shows blank page.

var options = {
        'method': 'GET',
        'url': 'https://www2.tjal.jus.br/cdje/getPaginaDoDiario.do?conversationId=&cdVolume=13&nuDiario=2903&cdCaderno=3&nuSeqpagina=306&dtDiario=&uuidCaptcha=sajcaptcha_5f827d5b73d1462bb76f78128d065e81&g-recaptcha-response=03AGdBq26J0FlOSKcyUm3E3N5cbk0j80falN3MB89tdgpDaJtrUFMSFMUGzINykRXWY4uLwhXU6GPQTsQN7NXA7HkfiOkYyhuwBMzEYA0tz4g0HySP4KsLMVbNThOac0zcjIOTMh7XgiBj-QPYf_F_2w8YIMoj4hfRcdjqwmG9lMSXGjZ07B5OZu6x7x3llcrChyj-TDAZ5OExMRHMvpMS1ayaM2bosx22Z8sI_fGODpcYeVf2kMCf0t8DhoR1ttP_iLvk1stDRTv3PjehrEj2FInCAdw8BqwDZGKQaPDTHNf3yIjNVRnJXGIr2Ywg9gLj-E2kQQQdyPsDdxCYBJ8gS_sA1j9ifRtpw1wT0EzxbhICoHGhcnYcgLbN3XBH1BPPiRZMjrt9JOcbaGfRQlHBPu-WEPONuj6qEKxQSq2fgQoVJbxjqko0WFRIPM8btwRXLkKtvVNee_E88TJK5sb4SluJT3Jab2wenkorDQI_AhuhUoMRlOeZ4FF2IJyGhEN31zCh7-GFPfFcqC3DtLg6KIYIvLKByXwiUw',
        'headers': {
          'Connection': 'keep-alive',
          'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"',
          'sec-ch-ua-mobile': '?0',
          'sec-ch-ua-platform': '"Windows"',
          'Upgrade-Insecure-Requests': '1',
          'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36',
          'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
          'Sec-Fetch-Site': 'same-origin',
          'Sec-Fetch-Mode': 'navigate',
          'Sec-Fetch-User': '?1',
          'Sec-Fetch-Dest': 'frame',
          'Referer': 'https://www2.tjal.jus.br/cdje/getPaginaDoDiario.do?cdVolume=13&nuDiario=2903&cdCaderno=3&nuSeqpagina=306&uuidCaptcha=',
          'Accept-Language': 'en-US,en;q=0.9',
          'Cookie': cookie[0]
        }
      };
      request(options, async function (error, response) {
        if (error) throw new Error(error);
        fs.writeFileSync("a.pdf", response.body, 'binary')
      });

fs.writeFileSync I think, I receive the response.body correctly.

Anyone please help me. Thanks in advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!